HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GLTF_Translator Class Reference

#include <GLTF_Translator.h>

Classes

struct  ImportOptions
 
struct  Joint
 
struct  MaterialImportOptions
 
struct  MeshImportOptions
 

Public Types

enum  NodeFilter { ALL, SKINNED_MESH }
 

Static Public Member Functions

static bool importSkeleton (GU_Detail *gdp, GLTF_Reader *gltf_reader, const GLTF_Index root_node, UT_Map< GLTF_Index, Joint > &joints, GLTF_ErrorManager &errors)
 
static bool importMesh (GU_Detail *gdp, GLTF_Reader *gltf_reader, const GLTF_Index mesh_idx, const ImportOptions &options, GLTF_ErrorManager &errors)
 
static bool importSkinnedMesh (GU_Detail *gdp, GLTF_Reader *gltf_reader, const GLTF_Index node_idx, const ImportOptions &options, GLTF_ErrorManager &errors)
 
static bool getAnimationNames (const GLTF_Reader &gltf_reader, UT_StringArray &names, GLTF_ErrorManager &errors)
 
static bool getNodes (const GLTF_Reader &gltf_reader, UT_StringArray &names, UT_Array< GLTF_Index > &ids, GLTF_ErrorManager &errors, NodeFilter filter=NodeFilter::ALL)
 
static bool createCapturePoseAttributes (GU_Detail *gdp, const GLTF_Reader &gltf_reader, const GLTF_Index node_idx, GLTF_ErrorManager &errors)
 
static bool getNodeIndexFromName (const GLTF_Reader *gltf_reader, const char *node_name, GLTF_Index &node_idx, GLTF_ErrorManager &errors)
 
static bool getMeshIndexFromName (const GLTF_Reader *gltf_reader, const char *mesh_name, GLTF_Index &mesh_idx, GLTF_ErrorManager &errors)
 
static bool getNodeTransform (const GLTF_Reader &gltf_reader, const GLTF_Index node_idx, UT_Matrix4 &transform, GLTF_ErrorManager &errors)
 
static bool importMaterial (GU_Detail *gdp, const GLTF_Reader *gltf_reader, const GLTF_Index mat_idx, const ImportOptions &options, GLTF_ErrorManager &errors)
 
static bool addGltfDetailAttrib (GU_Detail *gdp, GLTF_Reader &gltf_reader, const UT_StringHolder &attrib_name, const UT_StringHolder &value, GLTF_ErrorManager &errors)
 

Detailed Description

Definition at line 21 of file GLTF_Translator.h.

Member Enumeration Documentation

Enumerator
ALL 
SKINNED_MESH 

Definition at line 40 of file GLTF_Translator.h.

Member Function Documentation

static bool GLTF_Translator::addGltfDetailAttrib ( GU_Detail gdp,
GLTF_Reader gltf_reader,
const UT_StringHolder attrib_name,
const UT_StringHolder value,
GLTF_ErrorManager errors 
)
static
static bool GLTF_Translator::createCapturePoseAttributes ( GU_Detail gdp,
const GLTF_Reader gltf_reader,
const GLTF_Index  node_idx,
GLTF_ErrorManager errors 
)
static
static bool GLTF_Translator::getAnimationNames ( const GLTF_Reader gltf_reader,
UT_StringArray names,
GLTF_ErrorManager errors 
)
static
static bool GLTF_Translator::getMeshIndexFromName ( const GLTF_Reader gltf_reader,
const char *  mesh_name,
GLTF_Index mesh_idx,
GLTF_ErrorManager errors 
)
static
static bool GLTF_Translator::getNodeIndexFromName ( const GLTF_Reader gltf_reader,
const char *  node_name,
GLTF_Index node_idx,
GLTF_ErrorManager errors 
)
static
static bool GLTF_Translator::getNodes ( const GLTF_Reader gltf_reader,
UT_StringArray names,
UT_Array< GLTF_Index > &  ids,
GLTF_ErrorManager errors,
NodeFilter  filter = NodeFilter::ALL 
)
static
static bool GLTF_Translator::getNodeTransform ( const GLTF_Reader gltf_reader,
const GLTF_Index  node_idx,
UT_Matrix4 transform,
GLTF_ErrorManager errors 
)
static
static bool GLTF_Translator::importMaterial ( GU_Detail gdp,
const GLTF_Reader gltf_reader,
const GLTF_Index  mat_idx,
const ImportOptions options,
GLTF_ErrorManager errors 
)
static
static bool GLTF_Translator::importMesh ( GU_Detail gdp,
GLTF_Reader gltf_reader,
const GLTF_Index  mesh_idx,
const ImportOptions options,
GLTF_ErrorManager errors 
)
static
static bool GLTF_Translator::importSkeleton ( GU_Detail gdp,
GLTF_Reader gltf_reader,
const GLTF_Index  root_node,
UT_Map< GLTF_Index, Joint > &  joints,
GLTF_ErrorManager errors 
)
static
static bool GLTF_Translator::importSkinnedMesh ( GU_Detail gdp,
GLTF_Reader gltf_reader,
const GLTF_Index  node_idx,
const ImportOptions options,
GLTF_ErrorManager errors 
)
static

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