HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GusdUSD_XformCache Class Referencefinal

#include <USD_XformCache.h>

+ Inheritance diagram for GusdUSD_XformCache:

Classes

struct  XformInfo
 

Public Types

typedef UT_IntrusivePtr< const
XformInfo
XformInfoHandle
 

Public Member Functions

 GusdUSD_XformCache (GusdStageCache &cache)
 
 GusdUSD_XformCache ()
 
 ~GusdUSD_XformCache () override
 
bool GetLocalTransformation (const UsdPrim &prim, UsdTimeCode time, UT_Matrix4D &xform)
 
bool GetLocalToWorldTransform (const UsdPrim &prim, UsdTimeCode time, UT_Matrix4D &xform)
 
bool GetLocalTransformations (const UT_Array< UsdPrim > &prims, const GusdDefaultArray< UsdTimeCode > &times, UT_Matrix4D *xfroms)
 
bool GetLocalToWorldTransforms (const UT_Array< UsdPrim > &prims, const GusdDefaultArray< UsdTimeCode > &times, UT_Matrix4D *xforms)
 
bool GetConstraintTransforms (const TfToken &constraint, const UT_Array< UsdPrim > &prims, const GusdDefaultArray< UsdTimeCode > &times, UT_Matrix4D *xforms)
 
bool GetConstraintTransforms (const UT_Array< TfToken > &constraints, const UT_Array< UsdPrim > &prims, const GusdDefaultArray< UsdTimeCode > &times, UT_Matrix4D *xforms)
 
GUSD_API XformInfoHandle GetXformInfo (const UsdPrim &prim)
 
GUSD_API void Clear () override
 Clear all caches. More...
 
GUSD_API int64 Clear (const UT_StringSet &paths) override
 Clear caches for a set of stages by path. More...
 
- Public Member Functions inherited from GusdUSD_DataCache
 GusdUSD_DataCache (GusdStageCache &cache)
 
 GusdUSD_DataCache ()
 
virtual ~GusdUSD_DataCache ()
 

Static Public Member Functions

static GUSD_API
GusdUSD_XformCache
GetInstance ()
 
- Static Public Member Functions inherited from GusdUSD_DataCache
static bool ShouldClearPrim (const UsdPrim &prim, const UT_StringSet &stagesToClear)
 

Additional Inherited Members

- Protected Attributes inherited from GusdUSD_DataCache
GusdStageCache_stageCache
 

Detailed Description

Concurrent memory-capped cache for primitive transforms.

Definition at line 40 of file USD_XformCache.h.

Member Typedef Documentation

Constructor & Destructor Documentation

GusdUSD_XformCache::GusdUSD_XformCache ( GusdStageCache cache)
GusdUSD_XformCache::GusdUSD_XformCache ( )
GusdUSD_XformCache::~GusdUSD_XformCache ( )
inlineoverride

Definition at line 50 of file USD_XformCache.h.

Member Function Documentation

GUSD_API void GusdUSD_XformCache::Clear ( )
overridevirtual

Clear all caches.

Reimplemented from GusdUSD_DataCache.

GUSD_API int64 GusdUSD_XformCache::Clear ( const UT_StringSet stagePaths)
overridevirtual

Clear caches for a set of stages by path.

Reimplemented from GusdUSD_DataCache.

bool GusdUSD_XformCache::GetConstraintTransforms ( const TfToken constraint,
const UT_Array< UsdPrim > &  prims,
const GusdDefaultArray< UsdTimeCode > &  times,
UT_Matrix4D xforms 
)
bool GusdUSD_XformCache::GetConstraintTransforms ( const UT_Array< TfToken > &  constraints,
const UT_Array< UsdPrim > &  prims,
const GusdDefaultArray< UsdTimeCode > &  times,
UT_Matrix4D xforms 
)
static GUSD_API GusdUSD_XformCache& GusdUSD_XformCache::GetInstance ( )
static
bool GusdUSD_XformCache::GetLocalToWorldTransform ( const UsdPrim prim,
UsdTimeCode  time,
UT_Matrix4D xform 
)
bool GusdUSD_XformCache::GetLocalToWorldTransforms ( const UT_Array< UsdPrim > &  prims,
const GusdDefaultArray< UsdTimeCode > &  times,
UT_Matrix4D xforms 
)

Compute multiple world transforms in parallel.

bool GusdUSD_XformCache::GetLocalTransformation ( const UsdPrim prim,
UsdTimeCode  time,
UT_Matrix4D xform 
)
bool GusdUSD_XformCache::GetLocalTransformations ( const UT_Array< UsdPrim > &  prims,
const GusdDefaultArray< UsdTimeCode > &  times,
UT_Matrix4D xfroms 
)

Compute multiple local transforms in parallel.

GUSD_API XformInfoHandle GusdUSD_XformCache::GetXformInfo ( const UsdPrim prim)

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