VR-Forces 4.1 Class Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtIntersectTimerPassThroughLayer Class Reference

This is a DtTerrainPassThroughLayer which times the intersection functions and provides average intersection time values for the contained implementation. More...

Inheritance diagram for DtIntersectTimerPassThroughLayer:
Inheritance graph
[legend]

Public Member Functions

 DtIntersectTimerPassThroughLayer (DtTerrainImplementation *implementation, DtConsoleCommandManager *cmdMgr)
virtual ~DtIntersectTimerPassThroughLayer ()
virtual bool chordIntersect (const DtChord &chord, DtChordIntersectionRecord &record, DtIntersectionRecord::DtIntersectionType irtFlag=DtIntersectionRecord::INT_ALL_DATA, bool *dataAvailable=0, bool overrideBlockingAssert=false) const
 Times the call to the contained terrain implementation.
virtual bool allIntersectsAlongChord (const DtChord &chord, DtChordIntersectRecordList &intList, DtIntersectionRecord::DtIntersectionType irtFlag=DtIntersectionRecord::INT_ALL_DATA, bool *dataAvailable=0, bool overrideBlockingAssert=false) const
 Times the call to the contained terrain implementation.
virtual void resetStatistics ()
virtual void printStatistics ()
- Public Member Functions inherited from DtTerrainPassThroughLayer
 DtTerrainPassThroughLayer (DtTerrainImplementation *terrainImplementation, DtConsoleCommandManager *cmdMgr)
 The implementation that this layer is wrapping must be passed in within the constructor.
virtual ~DtTerrainPassThroughLayer ()
virtual bool loadTerrain (const makArchives::DtGenericTerrainRecord &rec, MAKVRinTerra::DtFeatureLoader &, const std::map< std::string, std::string > &settings=(std::map< std::string, std::string >()))
 Loads a terrain given the terrain record and a key/value pair of settings.
virtual const Coordinate_SystemcoordinateSystem () const
virtual void preloadTerrainAreas (const DtTerrainPagingGeometryList &preloadGeometry)
 Specifies a list of terrain areas that should be preloaded by the terrain implementation, in the case of a paging or streaming terrain source.
virtual bool sphereIntersect (const DtSphere &sphere, DtSphereIntersectionRecord &record, DtIntersectionRecord::DtIntersectionType irtFlag=DtIntersectionRecord::INT_ALL_DATA, bool *dataAvailable=0, bool overrideBlockingAssert=false) const
 Returns intersection of sphere with the terrain in the record irtFlag specifies what intersection data should be filled in for the record.
virtual const
DtTerrainCapabilities
terrainCapabilities () const
virtual void setIntersectDataLoadExpireTime (const double &expireTime)
 No-op.
virtual void expireDataLoadRequestsBeforeTime (const double &currentTime)
 No-op.
- Public Member Functions inherited from DtTerrainImplementation
 DtTerrainImplementation (DtConsoleCommandManager *cmdManager)
virtual ~DtTerrainImplementation ()
virtual void processTrianglesInArea (DtTriangleCallbackFcn func, DtTriangleCallbackFinalizeFcn finalize, DtTerrainProcessPolygonsBox &box, void *usr) const
virtual void breakUpChords (const MAKVRinTerra::DtProj &, const DtChord &chord, std::vector< DtChord > &chords)
virtual void setAssertOnBlockingTerrainCalls (bool assertBlock)
 Determines if an exception should be thrown if a blocking terrain call is made.
virtual bool assertOnBlockingTerrainCalls () const
 Determines if an exception should be thrown if a blocking terrain call is made.

Static Public Member Functions

static DtTerrainPassThroughLayercreate (DtCreatorParam createParam)

Protected Member Functions

virtual void printStatistic (int statId)

Protected Attributes

DtConsoleCommandManagermyCommandMgr
std::list< DtConsoleCommand * > myCommandList
DtPerformanceStats myDataAvailableIntersectionStats
DtPerformanceStats myDataUnavailableIntersectionStats
std::map< unsigned int,
unsigned int > 
myDataAvailableIntersectCount
std::map< unsigned int,
unsigned int > 
myDataUnavailableIntersectCount
- Protected Attributes inherited from DtTerrainPassThroughLayer
DtTerrainImplementationmyTerrainImplementation
- Protected Attributes inherited from DtTerrainImplementation
bool myAssertOnBlockingTerrainCalls
 Determines if an exception should be thrown if a blocking terrain call is made.
TerrainSettings mySettings
 Settings used for this implementation.

Additional Inherited Members

- Public Types inherited from DtTerrainImplementation
typedef std::map< std::string,
std::string > 
TerrainSettings

Detailed Description

This is a DtTerrainPassThroughLayer which times the intersection functions and provides average intersection time values for the contained implementation.

Constructor & Destructor Documentation

DtIntersectTimerPassThroughLayer::DtIntersectTimerPassThroughLayer ( DtTerrainImplementation implementation,
DtConsoleCommandManager cmdMgr 
)
virtual DtIntersectTimerPassThroughLayer::~DtIntersectTimerPassThroughLayer ( )
virtual

Member Function Documentation

virtual bool DtIntersectTimerPassThroughLayer::chordIntersect ( const DtChord chord,
DtChordIntersectionRecord record,
DtIntersectionRecord::DtIntersectionType  irtFlag = DtIntersectionRecord::INT_ALL_DATA,
bool dataAvailable = 0,
bool  overrideBlockingAssert = false 
) const
virtual

Times the call to the contained terrain implementation.

Reimplemented from DtTerrainPassThroughLayer.

virtual bool DtIntersectTimerPassThroughLayer::allIntersectsAlongChord ( const DtChord chord,
DtChordIntersectRecordList intList,
DtIntersectionRecord::DtIntersectionType  irtFlag = DtIntersectionRecord::INT_ALL_DATA,
bool dataAvailable = 0,
bool  overrideBlockingAssert = false 
) const
virtual

Times the call to the contained terrain implementation.

Reimplemented from DtTerrainPassThroughLayer.

virtual void DtIntersectTimerPassThroughLayer::resetStatistics ( )
virtual
virtual void DtIntersectTimerPassThroughLayer::printStatistics ( )
virtual
static DtTerrainPassThroughLayer* DtIntersectTimerPassThroughLayer::create ( DtCreatorParam  createParam)
static
virtual void DtIntersectTimerPassThroughLayer::printStatistic ( int  statId)
protectedvirtual

Member Data Documentation

DtConsoleCommandManager* DtIntersectTimerPassThroughLayer::myCommandMgr
protected
std::list<DtConsoleCommand*> DtIntersectTimerPassThroughLayer::myCommandList
protected
DtPerformanceStats DtIntersectTimerPassThroughLayer::myDataAvailableIntersectionStats
mutableprotected
DtPerformanceStats DtIntersectTimerPassThroughLayer::myDataUnavailableIntersectionStats
mutableprotected
std::map<unsigned int, unsigned int> DtIntersectTimerPassThroughLayer::myDataAvailableIntersectCount
mutableprotected
std::map<unsigned int, unsigned int> DtIntersectTimerPassThroughLayer::myDataUnavailableIntersectCount
mutableprotected

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

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)