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

#include <GT_Utils.h>

Classes

struct  StorageByType
 
struct  StorageByType< bool >
 
struct  StorageByType< fpreal16 >
 
struct  StorageByType< fpreal32 >
 
struct  StorageByType< fpreal64 >
 
struct  StorageByType< GfHalf >
 
struct  StorageByType< int16 >
 
struct  StorageByType< int32 >
 
struct  StorageByType< int64 >
 
struct  StorageByType< int8 >
 
struct  StorageByType< uint8 >
 

Public Types

enum  TransformLevel { TransformLevelObject, TransformLevelIntrinsic, TransformLevelCount }
 

Static Public Member Functions

static GT_Type getType (const SdfValueTypeName &typeName)
 Returns the GT_Type corresponding to a USD type. More...
 
static TfToken getRole (GT_Type type)
 Returns the USD role name corresponding to the given GT type. More...
 
static bool setUsdAttribute (const UsdAttribute &destAttr, const GT_DataArrayHandle &sourceAttr, UsdTimeCode time=UsdTimeCode::Default())
 
static GT_DataArrayHandle getExtentsArray (const GT_PrimitiveHandle &gtPrim)
 
static bool setPrimvarSample (const UsdGeomImageable &usdPrim, const TfToken &name, const GT_DataArrayHandle &data, const TfToken &interpolation, UsdTimeCode time)
 
static bool isDataConstant (const GT_DataArrayHandle &data)
 
static void setCustomAttributesFromGTPrim (const UsdGeomImageable &usdGeomPrim, const GT_AttributeListHandle &gtAttrs, std::set< std::string > &excludeSet, UsdTimeCode time=UsdTimeCode::Default())
 
static bool setTransformFromGTArray (const UsdGeomXformable &usdGeom, const GT_DataArrayHandle &xform, const TransformLevel transformLevel, UsdTimeCode time=UsdTimeCode::Default())
 
static GT_DataArrayHandle getTransformArray (const GT_PrimitiveHandle &gtPrim)
 
static GT_DataArrayHandle getPackedTransformArray (const GT_PrimitiveHandle &gtPrim)
 
static GfMatrix4d getMatrixFromGTArray (const GT_DataArrayHandle &xform)
 
static GT_DataArrayHandle transformPoints (GT_DataArrayHandle pts, const GfMatrix4d &objXform)
 
static GT_DataArrayHandle transformPoints (GT_DataArrayHandle pts, const UT_Matrix4D &objXform)
 
static GT_AttributeListHandle getAttributesFromPrim (const GEO_Primitive *prim)
 
static std::string makeValidIdentifier (const TfToken &usdFilePath, const SdfPath &nodePath)
 

Detailed Description

Definition at line 92 of file GT_Utils.h.

Member Enumeration Documentation

Enumerator
TransformLevelObject 
TransformLevelIntrinsic 
TransformLevelCount 

Definition at line 95 of file GT_Utils.h.

Member Function Documentation

static GT_AttributeListHandle GusdGT_Utils::getAttributesFromPrim ( const GEO_Primitive prim)
static
static GT_DataArrayHandle GusdGT_Utils::getExtentsArray ( const GT_PrimitiveHandle gtPrim)
static
static GfMatrix4d GusdGT_Utils::getMatrixFromGTArray ( const GT_DataArrayHandle xform)
static
static GT_DataArrayHandle GusdGT_Utils::getPackedTransformArray ( const GT_PrimitiveHandle gtPrim)
static
static TfToken GusdGT_Utils::getRole ( GT_Type  type)
static

Returns the USD role name corresponding to the given GT type.

static GT_DataArrayHandle GusdGT_Utils::getTransformArray ( const GT_PrimitiveHandle gtPrim)
static
static GT_Type GusdGT_Utils::getType ( const SdfValueTypeName typeName)
static

Returns the GT_Type corresponding to a USD type.

static bool GusdGT_Utils::isDataConstant ( const GT_DataArrayHandle data)
static
static std::string GusdGT_Utils::makeValidIdentifier ( const TfToken usdFilePath,
const SdfPath nodePath 
)
static
static void GusdGT_Utils::setCustomAttributesFromGTPrim ( const UsdGeomImageable usdGeomPrim,
const GT_AttributeListHandle gtAttrs,
std::set< std::string > &  excludeSet,
UsdTimeCode  time = UsdTimeCode::Default() 
)
static
static bool GusdGT_Utils::setPrimvarSample ( const UsdGeomImageable usdPrim,
const TfToken name,
const GT_DataArrayHandle data,
const TfToken interpolation,
UsdTimeCode  time 
)
static
static bool GusdGT_Utils::setTransformFromGTArray ( const UsdGeomXformable usdGeom,
const GT_DataArrayHandle xform,
const TransformLevel  transformLevel,
UsdTimeCode  time = UsdTimeCode::Default() 
)
static
static bool GusdGT_Utils::setUsdAttribute ( const UsdAttribute destAttr,
const GT_DataArrayHandle sourceAttr,
UsdTimeCode  time = UsdTimeCode::Default() 
)
static
static GT_DataArrayHandle GusdGT_Utils::transformPoints ( GT_DataArrayHandle  pts,
const GfMatrix4d objXform 
)
static
static GT_DataArrayHandle GusdGT_Utils::transformPoints ( GT_DataArrayHandle  pts,
const UT_Matrix4D objXform 
)
static

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