VTK
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 LoadModelMetaDataFromFile (std::string &FileName, std::vector< std::string > &usedExtensions)
 Reset internal Model struct, and serialize glTF metadata (all json information) into it. More...
 
bool LoadBuffers (bool firstBufferIsGLB)
 Reads the model's buffer metadata, then uses it to load all buffers into the model. More...
 

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 32 of file vtkGLTFDocumentLoaderInternals.h.

Constructor & Destructor Documentation

◆ vtkGLTFDocumentLoaderInternals()

vtkGLTFDocumentLoaderInternals::vtkGLTFDocumentLoaderInternals ( )
default

Member Function Documentation

◆ LoadModelMetaDataFromFile()

bool vtkGLTFDocumentLoaderInternals::LoadModelMetaDataFromFile ( std::string &  FileName,
std::vector< std::string > &  usedExtensions 
)

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 43 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_POINTS

const unsigned short vtkGLTFDocumentLoaderInternals::GL_POINTS = 0x0000
static

Definition at line 50 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_LINES

const unsigned short vtkGLTFDocumentLoaderInternals::GL_LINES = 0x0001
static

Definition at line 51 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_LINE_LOOP

const unsigned short vtkGLTFDocumentLoaderInternals::GL_LINE_LOOP = 0x0002
static

Definition at line 52 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_LINE_STRIP

const unsigned short vtkGLTFDocumentLoaderInternals::GL_LINE_STRIP = 0x0003
static

Definition at line 53 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_TRIANGLES

const unsigned short vtkGLTFDocumentLoaderInternals::GL_TRIANGLES = 0x0004
static

Definition at line 54 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_TRIANGLE_STRIP

const unsigned short vtkGLTFDocumentLoaderInternals::GL_TRIANGLE_STRIP = 0x0005
static

Definition at line 55 of file vtkGLTFDocumentLoaderInternals.h.

◆ GL_TRIANGLE_FAN

const unsigned short vtkGLTFDocumentLoaderInternals::GL_TRIANGLE_FAN = 0x0006
static

Definition at line 56 of file vtkGLTFDocumentLoaderInternals.h.


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