|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   40 #ifndef vtkGLTFDocumentLoader_h 
   41 #define vtkGLTFDocumentLoader_h 
   43 #include "vtkIOGeometryModule.h"  
   75     ELEMENT_ARRAY_BUFFER = 34963
 
  101     UNSIGNED_BYTE = 5121,
 
  103     UNSIGNED_SHORT = 5123,
 
  249     void UpdateTransform();
 
  352       NEAREST_MIPMAP_NEAREST = 9984,
 
  353       LINEAR_MIPMAP_NEAREST = 9985,
 
  354       NEAREST_MIPMAP_LINEAR = 9986,
 
  355       LINEAR_MIPMAP_LINEAR = 9987
 
  359       CLAMP_TO_EDGE = 33071,
 
  360       MIRRORED_REPEAT = 33648,
 
  422       void GetInterpolatedData(
float t, 
size_t numberOfComponents, std::vector<float>* output,
 
  423         bool forceStep = 
false, 
bool isRotation = 
false) 
const;
 
  532   bool ApplyAnimation(
float t, 
int animationId, 
bool forceStep = 
false);
 
  537   void ResetAnimation(
int animationId);
 
  543   bool LoadFileBuffer(
const std::string& fileName, std::vector<char>& glbBuffer);
 
  549   bool LoadModelMetaDataFromFile(
std::string FileName);
 
  554   bool LoadModelData(
const std::vector<char>& glbBuffer);
 
  559   bool BuildModelVTKGeometry();
 
  564   std::shared_ptr<Model> GetInternalModel();
 
  574   const std::vector<std::string>& GetSupportedExtensions();
 
  579   const std::vector<std::string>& GetUsedExtensions();
 
  586   struct AccessorLoadingWorker;
 
  588   struct SparseAccessorLoadingWorker;
 
  590   template <
typename Type>
 
  591   struct BufferDataExtractionWorker;
 
  599   bool LoadSkinMatrixData();
 
  605   bool ExtractPrimitiveAttributes(
Primitive& primitive);
 
  613   bool ExtractPrimitiveAccessorData(
Primitive& primitive);
 
  619   bool BuildPolyDataFromPrimitive(
Primitive& primitive);
 
  624   bool LoadAnimationData();
 
  629   bool LoadImageData();
 
  639   std::shared_ptr<Model> InternalModel;
 
  641   static const std::vector<std::string> SupportedExtensions;
 
  642   std::vector<std::string> UsedExtensions;
 
  
represent and manipulate 3D points
std::vector< float > InitialScale
std::vector< float > Translation
std::vector< Image > Images
std::vector< Light > Lights
std::vector< unsigned int > Nodes
Node::Extensions ExtensionMetaData
std::vector< Animation > Animations
std::vector< Texture > Textures
vtkSmartPointer< vtkFloatArray > InputData
vtkSmartPointer< vtkTransform > Transform
This struct describes a glTF animation object.
vtkSmartPointer< vtkTransform > GlobalTransform
std::vector< float > Weights
This struct describes a glTF asset.
double SpotInnerConeAngle
std::vector< double > Color
std::vector< Animation::Sampler > Samplers
dynamic, self-adjusting array of unsigned short
InterpolationMode Interpolation
dynamic, self-adjusting array of float
This struct describes a glTF scene object.
std::vector< Camera > Cameras
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
std::vector< Animation::Channel > Channels
vtkSmartPointer< vtkMatrix4x4 > Matrix
This struct describes a glTF textureInfo object, mostly used in material descriptions They contain tw...
std::vector< float > InitialTranslation
vtkSmartPointer< vtkPolyData > Geometry
TextureInfo OcclusionTexture
abstract base class for most VTK objects
std::vector< Scene > Scenes
std::vector< MorphTarget > Targets
std::vector< int > Joints
abstract superclass for arrays of numeric data
vtkSmartPointer< vtkImageData > ImageData
TextureInfo EmissiveTexture
std::vector< std::vector< char > > Buffers
vtkSmartPointer< vtkCellArray > Indices
std::vector< Material > Materials
This struct contains extension metadata.
unsigned int NumberOfComponents
std::vector< float > InitialWeights
double OcclusionTextureStrength
std::vector< int > Children
This struct contains all data from a gltf asset.
std::map< std::string, int > AttributeIndices
std::vector< float > Rotation
std::map< std::string, vtkSmartPointer< vtkDataArray > > AttributeValues
std::string BufferMetaData
Target
Define an openGL draw target.
std::vector< BufferView > BufferViews
Node::Extensions::KHRLightsPunctual KHRLightsPunctualMetaData
ComponentType ComponentTypeValue
This struct describes a glTF texture object.
This struct describes a glTF material object.
std::vector< float > InitialRotation
std::vector< struct Primitive > Primitives
std::vector< Accessor > Accessors
std::vector< float > Scale
vtkSmartPointer< vtkFloatArray > OutputData
topologically and geometrically regular array of data
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
object to represent cell connectivity
This struct describes an accessor glTF object.
std::map< std::string, int > AttributeIndices
This struct describes a glTF bufferView object.
std::vector< Skin > Skins
std::vector< Mesh > Meshes
This struct describes a glTF image object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
This struct describes a glTF Morph Target object.
std::vector< double > Min
double SpotOuterConeAngle
This struct describes an accessor.sparse glTF object.
ComponentType IndicesComponentType
std::map< std::string, vtkSmartPointer< vtkFloatArray > > AttributeValues
Extensions ExtensionMetaData
AccessorType
Defines an accessor's type.
std::vector< float > Weights
This struct describes a glTF node object.
This struct describes a glTF camera object.
PbrMetallicRoughness PbrMetallicRoughness
Deserialize a GLTF model file.
KHRLightsPunctual KHRLightsPunctualMetaData
This struct describes a glTF mesh object.
concrete dataset represents vertices, lines, polygons, and triangle strips
This struct describes a glTF sampler object.
TextureInfo NormalTexture
std::vector< Node > Nodes
This struct describes a glTF primitive object.
ComponentType
Define a type for different data components.
std::vector< double > Max
std::vector< double > EmissiveFactor
std::vector< Sampler > Samplers
int InverseBindMatricesAccessorId
std::vector< vtkSmartPointer< vtkMatrix4x4 > > InverseBindMatrices
double NormalTextureScale