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
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:159
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.
const char * GetFileName() const
Get/Set the filename.
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.