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

Functions

HUSD_API void buildAttribMap (HdSceneDelegate *scene_del, SdfPath const &path, UT_StringMap< UT_Tuple< GT_Owner, int, bool, void * > > &map, const UT_Map< GT_Owner, GT_Owner > *remap=nullptr)
 
HUSD_API UT_Matrix4D fullTransform (HdSceneDelegate *scene_del, const SdfPath &prim_path)
 
template<typename T >
HUSD_API bool eval (VtValue &val, T &ret_val)
 
template<typename T >
HUSD_API bool evalAttrib (T &val, HdSceneDelegate *scene_del, const SdfPath &prim_path, const TfToken &attrib_name)
 
template<typename T >
HUSD_API bool evalMaterialAttrib (T &val, HdSceneDelegate *scene_del, const SdfPath &prim_path, const TfToken &attrib_name)
 
template<typename T >
HUSD_API bool evalCameraAttrib (T &val, HdSceneDelegate *scene_del, const SdfPath &prim_path, const TfToken &attrib_name)
 
template<typename T >
HUSD_API bool evalLightAttrib (T &val, HdSceneDelegate *scene_del, const SdfPath &prim_path, const TfToken &attrib_name)
 
HUSD_API void getMaterialParms (UT_StringArray &parms, HdSceneDelegate *scene_del, const SdfPath &prim_path)
 
HUSD_API GT_TransformArrayHandle createTransformArray (const VtMatrix4dArray &insts)
 
template<typename A_TYPE >
GT_DataArrayHandle createGTArray (const A_TYPE &usd, GT_Type tinfo=GT_TYPE_NONE, int64 data_id=-1)
 
HUSD_API GT_DataArrayHandle attribGT (const VtValue &value, GT_Type tinfo=GT_TYPE_NONE, int64 data_id=-1)
 
HUSD_API int64 newDataId ()
 
HUSD_API void processSubdivTags (const PxOsdSubdivTags &subdivTags, UT_Array< GT_PrimSubdivisionMesh::Tag > &subd_tags)
 

Function Documentation

HUSD_API GT_DataArrayHandle XUSD_HydraUtils::attribGT ( const VtValue value,
GT_Type  tinfo = GT_TYPE_NONE,
int64  data_id = -1 
)
HUSD_API void XUSD_HydraUtils::buildAttribMap ( HdSceneDelegate scene_del,
SdfPath const path,
UT_StringMap< UT_Tuple< GT_Owner, int, bool, void * > > &  map,
const UT_Map< GT_Owner, GT_Owner > *  remap = nullptr 
)
template<typename A_TYPE >
GT_DataArrayHandle XUSD_HydraUtils::createGTArray ( const A_TYPE &  usd,
GT_Type  tinfo = GT_TYPE_NONE,
int64  data_id = -1 
)
HUSD_API GT_TransformArrayHandle XUSD_HydraUtils::createTransformArray ( const VtMatrix4dArray &  insts)
template<typename T >
HUSD_API bool XUSD_HydraUtils::eval ( VtValue val,
T &  ret_val 
)
template<typename T >
HUSD_API bool XUSD_HydraUtils::evalAttrib ( T &  val,
HdSceneDelegate scene_del,
const SdfPath prim_path,
const TfToken attrib_name 
)
template<typename T >
HUSD_API bool XUSD_HydraUtils::evalCameraAttrib ( T &  val,
HdSceneDelegate scene_del,
const SdfPath prim_path,
const TfToken attrib_name 
)
template<typename T >
HUSD_API bool XUSD_HydraUtils::evalLightAttrib ( T &  val,
HdSceneDelegate scene_del,
const SdfPath prim_path,
const TfToken attrib_name 
)
template<typename T >
HUSD_API bool XUSD_HydraUtils::evalMaterialAttrib ( T &  val,
HdSceneDelegate scene_del,
const SdfPath prim_path,
const TfToken attrib_name 
)
HUSD_API UT_Matrix4D XUSD_HydraUtils::fullTransform ( HdSceneDelegate scene_del,
const SdfPath prim_path 
)
HUSD_API void XUSD_HydraUtils::getMaterialParms ( UT_StringArray parms,
HdSceneDelegate scene_del,
const SdfPath prim_path 
)
HUSD_API int64 XUSD_HydraUtils::newDataId ( )
HUSD_API void XUSD_HydraUtils::processSubdivTags ( const PxOsdSubdivTags subdivTags,
UT_Array< GT_PrimSubdivisionMesh::Tag > &  subd_tags 
)