VTK  9.4.20241225
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
vtkGLTFDocumentLoaderInternals Class Reference

Internal class for vtkGLTFDocumentLoader. More...

#include <vtkGLTFDocumentLoaderInternals.h>

Collaboration diagram for vtkGLTFDocumentLoaderInternals:
[legend]

Public Member Functions

 vtkGLTFDocumentLoaderInternals ()=default
 
bool LoadModelMetaData (std::vector< std::string > &extensionsUsedByLoader)
 Reset internal Model struct, and serialize glTF metadata (all json information) into it.
 
bool LoadBuffers (bool firstBufferIsGLB)
 Reads the model's buffer metadata, then uses it to load all buffers into the model.
 

Public Attributes

vtkGLTFDocumentLoaderSelf = nullptr
 

Static Public Attributes

static const unsigned short GL_POINTS = 0x0000
 
static const unsigned short GL_LINES = 0x0001
 
static const unsigned short GL_LINE_LOOP = 0x0002
 
static const unsigned short GL_LINE_STRIP = 0x0003
 
static const unsigned short GL_TRIANGLES = 0x0004
 
static const unsigned short GL_TRIANGLE_STRIP = 0x0005
 
static const unsigned short GL_TRIANGLE_FAN = 0x0006
 

Detailed Description

Internal class for vtkGLTFDocumentLoader.

This class provides json-related methods for vtkGLTFDocumentLoader

Definition at line 23 of file vtkGLTFDocumentLoaderInternals.h.

Constructor & Destructor Documentation

◆ vtkGLTFDocumentLoaderInternals()

vtkGLTFDocumentLoaderInternals::vtkGLTFDocumentLoaderInternals ( )
default

Member Function Documentation

◆ LoadModelMetaData()

bool vtkGLTFDocumentLoaderInternals::LoadModelMetaData ( std::vector< std::string > &  extensionsUsedByLoader)

Reset internal Model struct, and serialize glTF metadata (all json information) into it.

Fill usedExtensions vector with the list of used and supported extensions in the glTF file. To load buffers, use LoadModelData

◆ LoadBuffers()

bool vtkGLTFDocumentLoaderInternals::LoadBuffers ( bool  firstBufferIsGLB)

Reads the model's buffer metadata, then uses it to load all buffers into the model.

Member Data Documentation

◆ Self

vtkGLTFDocumentLoader* vtkGLTFDocumentLoaderInternals::Self = nullptr

Definition at line 40 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_POINTS

const unsigned short vtkGLTFDocumentLoaderInternals::GL_POINTS = 0x0000
static

Definition at line 42 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_LINES

const unsigned short vtkGLTFDocumentLoaderInternals::GL_LINES = 0x0001
static

Definition at line 43 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_LINE_LOOP

const unsigned short vtkGLTFDocumentLoaderInternals::GL_LINE_LOOP = 0x0002
static

Definition at line 44 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_LINE_STRIP

const unsigned short vtkGLTFDocumentLoaderInternals::GL_LINE_STRIP = 0x0003
static

Definition at line 45 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_TRIANGLES

const unsigned short vtkGLTFDocumentLoaderInternals::GL_TRIANGLES = 0x0004
static

Definition at line 46 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_TRIANGLE_STRIP

const unsigned short vtkGLTFDocumentLoaderInternals::GL_TRIANGLE_STRIP = 0x0005
static

Definition at line 47 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_TRIANGLE_FAN

const unsigned short vtkGLTFDocumentLoaderInternals::GL_TRIANGLE_FAN = 0x0006
static

Definition at line 48 of file vtkGLTFDocumentLoaderInternals.h.


The documentation for this class was generated from the following file: