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

Classes

struct  AttribInfo
 

Functions

HUSD_API void buildAttribMap (HdSceneDelegate *scene_del, SdfPath const &path, UT_StringMap< AttribInfo > &map, GT_Owner varying_class=GT_OWNER_POINT, 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 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 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 bool addToOptions (UT_Options &options, const VtValue &value, const UT_StringRef &name)
 
HUSD_API int64 newDataId ()
 
HUSD_API void processSubdivTags (const PxOsdSubdivTags &subdivTags, UT_Array< GT_PrimSubdivisionMesh::Tag > &subd_tags)
 
HUSD_API void processSubdivTags (const PxOsdSubdivTags &subdivTags, const VtIntArray &hole_indices, UT_Array< GT_PrimSubdivisionMesh::Tag > &subd_tags)
 
HUSD_API void processSubdivTags (UT_Array< GT_PrimSubdivisionMesh::Tag > &subd_tags, const VtIntArray &crease_indices, const VtIntArray &crease_lengths, const VtFloatArray &crease_weights, const VtIntArray &corner_indices, const VtFloatArray &corner_weights, const VtIntArray &hole_indices, const TfToken &vtx_InterpolationRule, const TfToken &fvar_InterpolationRule)
 

Function Documentation

HUSD_API bool XUSD_HydraUtils::addToOptions ( UT_Options options,
const VtValue value,
const UT_StringRef name 
)
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< AttribInfo > &  map,
GT_Owner  varying_class = GT_OWNER_POINT,
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 
)
HUSD_API UT_Matrix4D XUSD_HydraUtils::fullTransform ( 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 
)
HUSD_API void XUSD_HydraUtils::processSubdivTags ( const PxOsdSubdivTags subdivTags,
const VtIntArray &  hole_indices,
UT_Array< GT_PrimSubdivisionMesh::Tag > &  subd_tags 
)
HUSD_API void XUSD_HydraUtils::processSubdivTags ( UT_Array< GT_PrimSubdivisionMesh::Tag > &  subd_tags,
const VtIntArray &  crease_indices,
const VtIntArray &  crease_lengths,
const VtFloatArray &  crease_weights,
const VtIntArray &  corner_indices,
const VtFloatArray &  corner_weights,
const VtIntArray &  hole_indices,
const TfToken vtx_InterpolationRule,
const TfToken fvar_InterpolationRule 
)