VTK  9.3.20240416
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:
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:
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
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
reader for MotionFX motion definitions cfg files.
void SetFileName(VTK_FILEPATH const char *fname)
Get/Set the filename.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkMotionFXCFGReader() override
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkMotionFXCFGReader * New()
bool ReadMetaData()
Reads meta-data.
VTK_FILEPATH const char * GetFileName() const
Get/Set the filename.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
record modification and/or execution time
Definition: vtkTimeStamp.h:44
@ string
Definition: vtkX3D.h:490
#define VTK_INT_MAX
Definition: vtkType.h:144
#define VTK_FILEPATH