![]() |
VR-Forces 4.0.4 Class Documentation
|
The DtCachedIntersectorManager class manages instances of cached inter sectors. More...

Public Member Functions | |
| virtual | ~DtCachedIntersectorManager () |
| DtCachedIntersector & | modelSetIntersector (int modelSet) |
| Get a intersector for a particular model set. | |
| virtual void | setShareIntersectionResults (bool) |
| Set to have results shared or specific for model set. | |
| bool | shareIntersectionResults () const |
| virtual void | setCacheIsPermanent (bool) |
| Sets whether or not cache is permanent. | |
| bool | cacheIsPermanent () const |
| Returns whether or not cache is permenant. | |
| virtual void | setCacheLimit (int) |
| Sets the limit on the number of items that can be in the cache. | |
| int | cacheLimit () const |
| Returns the limit on the cache. | |
| virtual void | setCacheClearTime (double) |
| Sets the time (in milliseconds) to clear out the cache. Default is to clear each tick. | |
| double | cacheClearTime () const |
| Returns the cache clear time. | |
Static Public Member Functions | |
| static DtCachedIntersectorManager & | instance (DtDe &de) |
| Get the creator instance for this IG object. | |
| static void | registerInstance (DtDe &de, DtCachedIntersectorManager *anInstance) |
| Register the creator instance with an IG. | |
Protected Types | |
| typedef boost::unordered_map < int, DtCachedIntersector * > | IntersectorMap |
Protected Member Functions | |
| virtual void | onPostTick () |
| Will check to see if cache needs to be cleared. | |
| DtCachedIntersectorManager (DtDe &de) | |
Protected Attributes | |
| DtDe & | myDe |
| IntersectorMap | myIntersectors |
| bool | myCacheIsPermanent |
| double | myClearTime |
| double | myLastClearTime |
| int | myCacheLimit |
| DtIntersectorCache * | myCache |
The DtCachedIntersectorManager class manages instances of cached inter sectors.
typedef boost::unordered_map<int, DtCachedIntersector*> makVrv::DtCachedIntersectorManager::IntersectorMap [protected] |
| virtual makVrv::DtCachedIntersectorManager::~DtCachedIntersectorManager | ( | ) | [virtual] |
| makVrv::DtCachedIntersectorManager::DtCachedIntersectorManager | ( | DtDe & | de | ) | [protected] |
| static DtCachedIntersectorManager& makVrv::DtCachedIntersectorManager::instance | ( | DtDe & | de | ) | [static] |
Get the creator instance for this IG object.
| DtCorruptedState | if it is unable to get the instance. |
| static void makVrv::DtCachedIntersectorManager::registerInstance | ( | DtDe & | de, |
| DtCachedIntersectorManager * | anInstance | ||
| ) | [static] |
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
| 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
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 | ( | ) | [protected, virtual] |
Will check to see if cache needs to be cleared.
DtDe& makVrv::DtCachedIntersectorManager::myDe [protected] |
double makVrv::DtCachedIntersectorManager::myClearTime [protected] |
double makVrv::DtCachedIntersectorManager::myLastClearTime [protected] |
int makVrv::DtCachedIntersectorManager::myCacheLimit [protected] |