VTK  9.3.1
vtkMotionFXCFGReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef vtkMotionFXCFGReader_h
4 #define vtkMotionFXCFGReader_h
5 
6 #include "vtkIOMotionFXModule.h" // for export macro
8 
9 #include <string> // for std::string
10 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKIOMOTIONFX_EXPORT vtkMotionFXCFGReader : public vtkMultiBlockDataSetAlgorithm
32 {
33 public:
34  static vtkMotionFXCFGReader* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  void SetFileName(VTK_FILEPATH const char* fname);
43  VTK_FILEPATH const char* GetFileName() const
44  {
45  return this->FileName.empty() ? nullptr : this->FileName.c_str();
46  }
48 
50 
53  vtkSetClampMacro(TimeResolution, int, 1, VTK_INT_MAX);
54  vtkGetMacro(TimeResolution, int);
56 
57 protected:
59  ~vtkMotionFXCFGReader() override;
60 
63 
67  bool ReadMetaData();
68 
73 
74 private:
76  void operator=(const vtkMotionFXCFGReader&) = delete;
77 
78  class vtkInternals;
79  vtkInternals* Internals;
80 };
81 
82 VTK_ABI_NAMESPACE_END
83 #endif
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:144
record modification and/or execution time
Definition: vtkTimeStamp.h:24
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:28
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.