VTK
vtkMotionFXCFGReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMotionFXCFGReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 #ifndef vtkMotionFXCFGReader_h
16 #define vtkMotionFXCFGReader_h
17 
18 #include "vtkIOMotionFXModule.h" // for export macro
20 
21 #include <string> // for std::string
22 
39 class VTKIOMOTIONFX_EXPORT vtkMotionFXCFGReader : public vtkMultiBlockDataSetAlgorithm
40 {
41 public:
42  static vtkMotionFXCFGReader* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
50  void SetFileName(const char* fname);
51  const char* GetFileName() const
52  {
53  return this->FileName.empty() ? nullptr : this->FileName.c_str();
54  }
56 
58 
61  vtkSetClampMacro(TimeResolution, int, 1, VTK_INT_MAX);
62  vtkGetMacro(TimeResolution, int);
64 
65 protected:
67  ~vtkMotionFXCFGReader() override;
68 
71 
75  bool ReadMetaData();
76 
81 
82 private:
84  void operator=(const vtkMotionFXCFGReader&) = delete;
85 
86  class vtkInternals;
87  vtkInternals* Internals;
88 };
89 
90 #endif
vtkMotionFXCFGReader::FileNameMTime
vtkTimeStamp FileNameMTime
Definition: vtkMotionFXCFGReader.h:79
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:159
vtkMotionFXCFGReader
reader for MotionFX motion definitions cfg files.
Definition: vtkMotionFXCFGReader.h:39
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkMultiBlockDataSetAlgorithm::New
static vtkMultiBlockDataSetAlgorithm * New()
vtkMultiBlockDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiBlockDataSetAlgorithm.h:91
vtkMotionFXCFGReader::TimeResolution
int TimeResolution
Definition: vtkMotionFXCFGReader.h:78
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMultiBlockDataSetAlgorithm.h
vtkMultiBlockDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::string
Definition: vtkX3D.h:490
vtkMotionFXCFGReader::MetaDataMTime
vtkTimeStamp MetaDataMTime
Definition: vtkMotionFXCFGReader.h:80
vtkMotionFXCFGReader::GetFileName
const char * GetFileName() const
Definition: vtkMotionFXCFGReader.h:51
vtkMotionFXCFGReader::FileName
std::string FileName
Definition: vtkMotionFXCFGReader.h:77
vtkMultiBlockDataSetAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkMultiBlockDataSetAlgorithm.h:83
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:35