52 #ifndef vtkGLTFReader_h
53 #define vtkGLTFReader_h
55 #include "vtkIOGeometryModule.h"
64 VTK_ABI_NAMESPACE_BEGIN
95 vtkSetFilePathMacro(FileName);
96 vtkGetFilePathMacro(FileName);
114 vtkSetMacro(GLBStart, vtkTypeInt64);
115 vtkGetMacro(GLBStart, vtkTypeInt64);
135 void SetApplyDeformationsToGeometry(
bool flag);
136 vtkGetMacro(ApplyDeformationsToGeometry,
bool);
137 vtkBooleanMacro(ApplyDeformationsToGeometry,
bool);
147 vtkGetMacro(NumberOfAnimations,
vtkIdType);
149 float GetAnimationDuration(
vtkIdType animationIndex);
158 void EnableAnimation(
vtkIdType animationIndex);
159 void DisableAnimation(
vtkIdType animationIndex);
160 bool IsAnimationEnabled(
vtkIdType animationIndex);
191 vtkGetMacro(FrameRate,
unsigned int);
192 vtkSetMacro(FrameRate,
unsigned int);
203 vtkSetMacro(OutputPointsPrecision,
int);
204 vtkGetMacro(OutputPointsPrecision,
int);
227 std::vector<vtkSmartPointer<vtkGLTFTexture>>
Textures;
232 void StoreTextureData();
238 virtual void InitializeLoader();
240 char* FileName =
nullptr;
242 vtkTypeInt64 GLBStart = 0;
247 unsigned int FrameRate = 60;
251 bool IsModelLoaded =
false;
252 bool IsMetaDataLoaded =
false;
254 bool ApplyDeformationsToGeometry =
true;
269 void CreateSceneNamesArray();
275 void CreateAnimationSelection();
282 VTK_ABI_NAMESPACE_END
std::vector< vtkSmartPointer< vtkGLTFTexture > > Textures
Abstract class used for custom streams.
vtkTypeUInt32 vtkMTimeType
vtkSmartPointer< vtkGLTFDocumentLoader > Loader
a vtkAbstractArray subclass for strings
Hold a reference to a vtkObjectBase instance.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkSmartPointer< vtkURILoader > URILoader
static vtkMultiBlockDataSetAlgorithm * New()
vtkSmartPointer< vtkMultiBlockDataSet > OutputDataSet
vtkSmartPointer< vtkStringArray > SceneNames
vtkSmartPointer< vtkDataArraySelection > AnimationSelection
a simple class to control print indentation
topologically and geometrically regular array of data
Store on/off settings for data arrays, etc.
handles properties associated with a texture map
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer< vtkDataArraySelection > PreviousAnimationSelection
Helper class for readers and importer that need to load more than one resource.
Deserialize a GLTF model file.
Represents and manipulates a collection of data arrays.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkSmartPointer< vtkResourceStream > Stream