VTK  9.2.6
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 
42 class VTKIOMOTIONFX_EXPORT vtkMotionFXCFGReader : public vtkMultiBlockDataSetAlgorithm
43 {
44 public:
45  static vtkMotionFXCFGReader* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
53  void SetFileName(VTK_FILEPATH const char* fname);
54  VTK_FILEPATH const char* GetFileName() const
55  {
56  return this->FileName.empty() ? nullptr : this->FileName.c_str();
57  }
59 
61 
64  vtkSetClampMacro(TimeResolution, int, 1, VTK_INT_MAX);
65  vtkGetMacro(TimeResolution, int);
67 
68 protected:
70  ~vtkMotionFXCFGReader() override;
71 
74 
78  bool ReadMetaData();
79 
84 
85 private:
87  void operator=(const vtkMotionFXCFGReader&) = delete;
88 
89  class vtkInternals;
90  vtkInternals* Internals;
91 };
92 
93 #endif
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:155
record modification and/or execution time
Definition: vtkTimeStamp.h:35
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkMultiBlockDataSetAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
VTK_FILEPATH const char * GetFileName() const
Get/Set the filename.
#define VTK_FILEPATH
reader for MotionFX motion definitions cfg files.
Store zero or more vtkInformation instances.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.