VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | 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]

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.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

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

Constructor & Destructor Documentation

virtual makVrv::DtCachedIntersectorManager::~DtCachedIntersectorManager ( )
virtual
makVrv::DtCachedIntersectorManager::DtCachedIntersectorManager ( DtDe de)
protected

Member Function Documentation

static DtCachedIntersectorManager& makVrv::DtCachedIntersectorManager::instance ( DtDe de)
static

Get the creator instance for this IG object.

Exceptions
DtCorruptedStateif it is unable to get the instance.
static void makVrv::DtCachedIntersectorManager::registerInstance ( DtDe de,
DtCachedIntersectorManager anInstance 
)
static

Register the creator instance with an IG.

DtCachedIntersector& makVrv::DtCachedIntersectorManager::modelSetIntersector ( int  modelSet)

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
IntersectorMap makVrv::DtCachedIntersectorManager::myIntersectors
protected
bool makVrv::DtCachedIntersectorManager::myCacheIsPermanent
protected
double makVrv::DtCachedIntersectorManager::myClearTime
protected
double makVrv::DtCachedIntersectorManager::myLastClearTime
protected
int makVrv::DtCachedIntersectorManager::myCacheLimit
protected
DtIntersectorCache* makVrv::DtCachedIntersectorManager::myCache
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)