HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GLTF_CgltfUtils Namespace Reference

Classes

struct  AccessorMinMax
 

Functions

UT_StringHolder getHoudiniAttributeName (cgltf_attribute_type type)
 
UT_StringHolder getHoudiniAttributeName (const cgltf_attribute &attrib)
 
UT_StringHolder getGltfAttributeName (const GLTF_AttributeType type, const char *suffix="")
 
UT_StringHolder getCgltfResultMessage (const cgltf_result &res)
 
cgltf_primitivegetPrimitive (const cgltf_data &data, const GLTF_Index mesh_id, const GLTF_Index prim_id)
 
UT_StringHolder getAnimationName (const cgltf_data &data, const cgltf_animation &anim)
 
UT_StringHolder getNodeName (const cgltf_data &data, const cgltf_node &node)
 
UT_StringHolder getMeshName (const cgltf_data &data, const cgltf_mesh &mesh)
 
UT_StringHolder getSceneName (const cgltf_data &data, const cgltf_scene &scene)
 
UT_StringHolder getSkinName (const cgltf_data &data, const cgltf_skin &skin)
 
void getAnimationNames (const cgltf_data &data, UT_StringArray &names)
 
UT_StringHolder getCameraName (const cgltf_data &data, const cgltf_camera &camera)
 
UT_StringHolder getMaterialName (const cgltf_data &data, const cgltf_material &mat)
 
bool hasDiffuseTexture (const cgltf_material &mat)
 
bool hasMetallicRoughnessTexture (const cgltf_material &mat)
 
bool hasNormalTexture (const cgltf_material &mat)
 
bool hasOcclusionTexture (const cgltf_material &mat)
 
bool hasEmissiveTexture (const cgltf_material &mat)
 
bool hasSpecularColorTexture (const cgltf_material &mat)
 
bool hasTransmissionTexture (const cgltf_material &mat)
 
cgltf_imagegetTextureImage (const cgltf_texture_view &tv)
 
GLTF_TextureTransform getTextureTransform (const cgltf_texture_view &tv)
 
UT_StringHolder getImageFilePath (const char *gltf_filepath, const cgltf_image &image)
 
UT_Matrix4F getMatrix4F (cgltf_float *gltf_mat)
 
GLTFZ_API void setNodeName (const GLTF_Index node_id, GLTF_Writer &writer, const char *name)
 
void setNodeTransform (OBJ_Node *object, const GLTF_Index node_id, GLTF_Writer &writer, fpreal time)
 
GLTFZ_API void setMeshName (const GLTF_Index mesh_id, GLTF_Writer &writer, const char *name)
 
GLTFZ_API UT_Matrix4F getAnimatedTransformLocal (const GLTF_SceneData::Node &node, const float time, const GLTF_AnimationData &anim_data)
 
GLTFZ_API UT_Matrix4F getAnimatedTransformWorld (const GLTF_SceneData &scene, const GLTF_SceneData::Node &node, const float time, const GLTF_AnimationData &anim_data)
 
GLTFZ_API GLTF_Index findRootNode (const cgltf_data &data, const GLTF_Index node_id)
 
UT_Matrix4F getAnimatedTransformLocal (const GLTF_Translator::Node &node, const UT_Array< GLTF_Channel > &channels, float time)
 
UT_StringHolder buildNodePath (const cgltf_data &data, const cgltf_node &node)
 
UT_StringArray getUnsupportedImporterExtensions (const GLTF_Reader &reader, const cgltf_size extensions_count, char **extensions)
 
void addChildNodeToNode (GLTF_Writer &writer, cgltf_data &data, GLTF_Index parent_id, GLTF_Index child_id)
 
bool isDefault (const cgltf_texture_view &tv)
 
bool isDefault (const cgltf_pbr_metallic_roughness &pbr)
 
bool isDefault (const cgltf_ior &ior)
 
bool isDefault (const cgltf_specular &specular)
 

Function Documentation

void GLTF_CgltfUtils::addChildNodeToNode ( GLTF_Writer writer,
cgltf_data data,
GLTF_Index  parent_id,
GLTF_Index  child_id 
)
UT_StringHolder GLTF_CgltfUtils::buildNodePath ( const cgltf_data data,
const cgltf_node node 
)
GLTFZ_API GLTF_Index GLTF_CgltfUtils::findRootNode ( const cgltf_data data,
const GLTF_Index  node_id 
)
GLTFZ_API UT_Matrix4F GLTF_CgltfUtils::getAnimatedTransformLocal ( const GLTF_SceneData::Node node,
const float  time,
const GLTF_AnimationData anim_data 
)
UT_Matrix4F GLTF_CgltfUtils::getAnimatedTransformLocal ( const GLTF_Translator::Node node,
const UT_Array< GLTF_Channel > &  channels,
float  time 
)
GLTFZ_API UT_Matrix4F GLTF_CgltfUtils::getAnimatedTransformWorld ( const GLTF_SceneData scene,
const GLTF_SceneData::Node node,
const float  time,
const GLTF_AnimationData anim_data 
)
UT_StringHolder GLTF_CgltfUtils::getAnimationName ( const cgltf_data data,
const cgltf_animation anim 
)
void GLTF_CgltfUtils::getAnimationNames ( const cgltf_data data,
UT_StringArray names 
)
UT_StringHolder GLTF_CgltfUtils::getCameraName ( const cgltf_data data,
const cgltf_camera camera 
)
UT_StringHolder GLTF_CgltfUtils::getCgltfResultMessage ( const cgltf_result res)
UT_StringHolder GLTF_CgltfUtils::getGltfAttributeName ( const GLTF_AttributeType  type,
const char *  suffix = "" 
)
UT_StringHolder GLTF_CgltfUtils::getHoudiniAttributeName ( cgltf_attribute_type  type)
UT_StringHolder GLTF_CgltfUtils::getHoudiniAttributeName ( const cgltf_attribute attrib)
UT_StringHolder GLTF_CgltfUtils::getImageFilePath ( const char *  gltf_filepath,
const cgltf_image image 
)
UT_StringHolder GLTF_CgltfUtils::getMaterialName ( const cgltf_data data,
const cgltf_material mat 
)
UT_Matrix4F GLTF_CgltfUtils::getMatrix4F ( cgltf_float gltf_mat)
inline

Definition at line 115 of file GLTF_CgltfUtils.h.

UT_StringHolder GLTF_CgltfUtils::getMeshName ( const cgltf_data data,
const cgltf_mesh mesh 
)
UT_StringHolder GLTF_CgltfUtils::getNodeName ( const cgltf_data data,
const cgltf_node node 
)
cgltf_primitive* GLTF_CgltfUtils::getPrimitive ( const cgltf_data data,
const GLTF_Index  mesh_id,
const GLTF_Index  prim_id 
)
UT_StringHolder GLTF_CgltfUtils::getSceneName ( const cgltf_data data,
const cgltf_scene scene 
)
UT_StringHolder GLTF_CgltfUtils::getSkinName ( const cgltf_data data,
const cgltf_skin skin 
)
cgltf_image* GLTF_CgltfUtils::getTextureImage ( const cgltf_texture_view tv)
GLTF_TextureTransform GLTF_CgltfUtils::getTextureTransform ( const cgltf_texture_view tv)
UT_StringArray GLTF_CgltfUtils::getUnsupportedImporterExtensions ( const GLTF_Reader reader,
const cgltf_size  extensions_count,
char **  extensions 
)
bool GLTF_CgltfUtils::hasDiffuseTexture ( const cgltf_material mat)
bool GLTF_CgltfUtils::hasEmissiveTexture ( const cgltf_material mat)
bool GLTF_CgltfUtils::hasMetallicRoughnessTexture ( const cgltf_material mat)
bool GLTF_CgltfUtils::hasNormalTexture ( const cgltf_material mat)
bool GLTF_CgltfUtils::hasOcclusionTexture ( const cgltf_material mat)
bool GLTF_CgltfUtils::hasSpecularColorTexture ( const cgltf_material mat)
bool GLTF_CgltfUtils::hasTransmissionTexture ( const cgltf_material mat)
bool GLTF_CgltfUtils::isDefault ( const cgltf_texture_view tv)
bool GLTF_CgltfUtils::isDefault ( const cgltf_pbr_metallic_roughness pbr)
bool GLTF_CgltfUtils::isDefault ( const cgltf_ior ior)
bool GLTF_CgltfUtils::isDefault ( const cgltf_specular specular)
GLTFZ_API void GLTF_CgltfUtils::setMeshName ( const GLTF_Index  mesh_id,
GLTF_Writer writer,
const char *  name 
)
GLTFZ_API void GLTF_CgltfUtils::setNodeName ( const GLTF_Index  node_id,
GLTF_Writer writer,
const char *  name 
)
void GLTF_CgltfUtils::setNodeTransform ( OBJ_Node object,
const GLTF_Index  node_id,
GLTF_Writer writer,
fpreal  time 
)