 |
VTK
9.0.1
|
Go to the documentation of this file.
59 #ifndef vtkGLTFReader_h
60 #define vtkGLTFReader_h
62 #include "vtkIOGeometryModule.h"
105 vtkSetStringMacro(FileName);
106 vtkGetStringMacro(FileName);
117 vtkGetMacro(ApplyDeformationsToGeometry,
bool);
118 vtkBooleanMacro(ApplyDeformationsToGeometry,
bool);
171 vtkGetMacro(FrameRate,
unsigned int);
172 vtkSetMacro(FrameRate,
unsigned int);
202 char* FileName =
nullptr;
205 unsigned int FrameRate = 60;
209 bool IsModelLoaded =
false;
210 bool IsMetaDataLoaded =
false;
212 bool ApplyDeformationsToGeometry =
true;
bool IsAnimationEnabled(vtkIdType animationIndex)
vtkSmartPointer< vtkDataArraySelection > AnimationSelection
std::string GetSceneName(vtkIdType sceneIndex)
glTF models can contain multiple scene descriptions.
void SetScene(const std::string &scene)
vtkSmartPointer< vtkStringArray > SceneNames
represent and manipulate fields of data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store on/off settings for data arrays for a vtkSource.
unsigned short WrapTValue
vtkStringArray * GetAllSceneNames()
Get a list all scenes names as a vtkStringArray, with duplicate names numbered and empty names replac...
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
float GetAnimationDuration(vtkIdType animationIndex)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
unsigned short MinFilterValue
topologically and geometrically regular array of data
a simple class to control print indentation
vtkSmartPointer< vtkMultiBlockDataSet > OutputDataSet
vtkIdType GetNumberOfTextures()
void SetApplyDeformationsToGeometry(bool flag)
The model's skinning transforms are computed and added to the different vtkPolyData objects' field da...
void StoreTextureData()
Create and store GLTFTexture struct for each image present in the model.
vtkSmartPointer< vtkImageData > Image
static vtkGLTFReader * New()
Deserialize a GLTF model file.
void CreateAnimationSelection()
Fill the AnimationSelection vtkDataArraySelection with animation names.
vtkSmartPointer< vtkGLTFDocumentLoader > Loader
vtkSmartPointer< vtkDataArraySelection > PreviousAnimationSelection
a vtkAbstractArray subclass for strings
unsigned short MaxFilterValue
Materials are not directly applied to this reader's output.
vtkDataArraySelection * GetAnimationSelection()
Get the vtkDataArraySelection object to enable/disable animations.
void CreateSceneNamesArray()
Create the SceneNames array, generate unique identifiers for each scene based on their glTF name,...
std::vector< GLTFTexture > Textures
std::string GetAnimationName(vtkIdType animationIndex)
unsigned short WrapSValue
~vtkGLTFReader() override
GLTFTexture GetGLTFTexture(vtkIdType textureIndex)
void DisableAnimation(vtkIdType animationIndex)
void EnableAnimation(vtkIdType animationIndex)
Enable/Disable an animation.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.