The DtCachedIntersectorManager class manages instances of cached inter sectors.
More...
Detailed Description
The DtCachedIntersectorManager class manages instances of cached inter sectors.
Member Typedef Documentation
Constructor & Destructor Documentation
| virtual makVrv::DtCachedIntersectorManager::~DtCachedIntersectorManager |
( |
| ) |
|
|
virtual |
| makVrv::DtCachedIntersectorManager::DtCachedIntersectorManager |
( |
DtDe & |
de | ) |
|
|
protected |
Member Function Documentation
Get the creator instance for this IG object.
- Exceptions
-
| DtCorruptedState | if it is unable to get the instance. |
Register the creator instance with an IG.
Get a intersector for a particular model set.
| virtual void makVrv::DtCachedIntersectorManager::setShareIntersectionResults |
( |
bool |
| ) |
|
|
virtual |
Set to have results shared or specific for model set.
If shared will use a pointer allocated and managed by this class. If by specific model set, each model set will have it's own cache. The default is to share
| bool makVrv::DtCachedIntersectorManager::shareIntersectionResults |
( |
| ) |
const |
| virtual void makVrv::DtCachedIntersectorManager::setCacheIsPermanent |
( |
bool |
| ) |
|
|
virtual |
Sets whether or not cache is permanent.
If it is, can optionally set the size of the cache (default is 1000 points). If not permanent, then the time to clear out can be set (default is every tick). Enter time in number of milliseconds
| bool makVrv::DtCachedIntersectorManager::cacheIsPermanent |
( |
| ) |
const |
Returns whether or not cache is permenant.
| virtual void makVrv::DtCachedIntersectorManager::setCacheLimit |
( |
int |
| ) |
|
|
virtual |
Sets the limit on the number of items that can be in the cache.
| int makVrv::DtCachedIntersectorManager::cacheLimit |
( |
| ) |
const |
Returns the limit on the cache.
| virtual void makVrv::DtCachedIntersectorManager::setCacheClearTime |
( |
double |
| ) |
|
|
virtual |
Sets the time (in milliseconds) to clear out the cache. Default is to clear each tick.
| double makVrv::DtCachedIntersectorManager::cacheClearTime |
( |
| ) |
const |
Returns the cache clear time.
| virtual void makVrv::DtCachedIntersectorManager::onPostTick |
( |
| ) |
|
|
protectedvirtual |
Will check to see if cache needs to be cleared.
Member Data Documentation
| DtDe& makVrv::DtCachedIntersectorManager::myDe |
|
protected |
| bool makVrv::DtCachedIntersectorManager::myCacheIsPermanent |
|
protected |
| double makVrv::DtCachedIntersectorManager::myClearTime |
|
protected |
| double makVrv::DtCachedIntersectorManager::myLastClearTime |
|
protected |
| int makVrv::DtCachedIntersectorManager::myCacheLimit |
|
protected |
The documentation for this class was generated from the following file: