VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtCachedIntersectorManager Class Reference

The DtCachedIntersectorManager class manages instances of cached inter sectors. More...

Inheritance diagram for makVrv::DtCachedIntersectorManager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~DtCachedIntersectorManager ()
DtCachedIntersectormodelSetIntersector (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 DtCachedIntersectorManagerinstance (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

DtDemyDe
IntersectorMap myIntersectors
bool myCacheIsPermanent
double myClearTime
double myLastClearTime
int myCacheLimit
DtIntersectorCachemyCache

Detailed Description

The DtCachedIntersectorManager class manages instances of cached inter sectors.


Member Typedef Documentation

typedef boost::unordered_map<int, DtCachedIntersector*> makVrv::DtCachedIntersectorManager::IntersectorMap [protected]

Constructor & Destructor Documentation


Member Function Documentation

Get the creator instance for this IG object.

Exceptions:
DtCorruptedStateif it is unable to get the instance.

Register the creator instance with an IG.

Get a intersector for a particular model set.

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

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.

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.

Returns the cache clear time.

virtual void makVrv::DtCachedIntersectorManager::onPostTick ( ) [protected, virtual]

Will check to see if cache needs to be cleared.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)