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

#include <boundsCache.h>

+ Inheritance diagram for GusdBoundsCache:

Public Member Functions

 GusdBoundsCache ()
 
 ~GusdBoundsCache () override
 
bool ComputeWorldBound (const UsdPrim &prim, UsdTimeCode time, const TfTokenVector &includedPurposes, UT_BoundingBox &bounds)
 
bool ComputeUntransformedBound (const UsdPrim &prim, UsdTimeCode time, const TfTokenVector &includedPurposes, UT_BoundingBox &bounds)
 
void Clear () override
 Clear all caches. More...
 
int64 Clear (const UT_StringSet &stageNames) 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 GusdBoundsCacheGetInstance ()
 
- 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

A wrapper arround UsdGeomBBoxCache.

This singleton class keeps a cache per stage and per purpose. It will be flushed when the stage cache is flushed.

Unfortunaly UsdGeomBBoxCaches only store a single frame at a time. I considered creating a cache per frame but I thought that would defeat optimizations for non animated geometry.

Definition at line 51 of file boundsCache.h.

Constructor & Destructor Documentation

GusdBoundsCache::GusdBoundsCache ( )
GusdBoundsCache::~GusdBoundsCache ( )
override

Member Function Documentation

void GusdBoundsCache::Clear ( )
overridevirtual

Clear all caches.

Reimplemented from GusdUSD_DataCache.

int64 GusdBoundsCache::Clear ( const UT_StringSet stagePaths)
overridevirtual

Clear caches for a set of stages by path.

Reimplemented from GusdUSD_DataCache.

bool GusdBoundsCache::ComputeUntransformedBound ( const UsdPrim prim,
UsdTimeCode  time,
const TfTokenVector includedPurposes,
UT_BoundingBox bounds 
)
bool GusdBoundsCache::ComputeWorldBound ( const UsdPrim prim,
UsdTimeCode  time,
const TfTokenVector includedPurposes,
UT_BoundingBox bounds 
)
static GusdBoundsCache& GusdBoundsCache::GetInstance ( )
static

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