|
HDK
|
#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 GusdBoundsCache & | 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 |
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 52 of file boundsCache.h.
| GusdBoundsCache::GusdBoundsCache | ( | ) |
|
override |
|
overridevirtual |
Clear all caches.
Reimplemented from GusdUSD_DataCache.
|
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 |