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:
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:
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:40
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:36
vtkMotionFXCFGReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkMotionFXCFGReader::ReadMetaData
bool ReadMetaData()
Reads meta-data.
vtkMotionFXCFGReader::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkMotionFXCFGReader::TimeResolution
int TimeResolution
Definition: vtkMotionFXCFGReader.h:78
vtkMotionFXCFGReader::vtkMotionFXCFGReader
vtkMotionFXCFGReader()
vtkMotionFXCFGReader::SetFileName
void SetFileName(const char *fname)
Get/Set the filename.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkMultiBlockDataSetAlgorithm.h
vtkMotionFXCFGReader::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:87
vtkX3D::string
@ string
Definition: vtkX3D.h:490
vtkMotionFXCFGReader::MetaDataMTime
vtkTimeStamp MetaDataMTime
Definition: vtkMotionFXCFGReader.h:80
vtkMotionFXCFGReader::GetFileName
const char * GetFileName() const
Definition: vtkMotionFXCFGReader.h:51
vtkMotionFXCFGReader::New
static vtkMotionFXCFGReader * New()
vtkMotionFXCFGReader::FileName
std::string FileName
Definition: vtkMotionFXCFGReader.h:77
vtkMotionFXCFGReader::~vtkMotionFXCFGReader
~vtkMotionFXCFGReader() override
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:36