![]() |
VR-Forces 4.3 Class Documentation
|
This class is the base class for creating a "pass-though" layer in the terrain interface. More...

Classes | |
| struct | DtCreatorParam |
Public Member Functions | |
| 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) |
| Loads a terrain given the terrain record. | |
| virtual const Coordinate_System * | coordinateSystem () 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 | chordIntersect (const DtChord &chord, DtChordIntersectionRecord &record, DtIntersectionRecord::DtIntersectionType irtFlag=DtIntersectionRecord::INT_ALL_DATA, bool *dataAvailable=0, bool overrideBlockingAssert=false) const |
| Returns topmost intersection of chord with terrain in record. | |
| virtual bool | allIntersectsAlongChord (const DtChord &chord, DtChordIntersectRecordList &intList, DtIntersectionRecord::DtIntersectionType irtFlag=DtIntersectionRecord::INT_ALL_DATA, bool *dataAvailable=0, bool overrideBlockingAssert=false) const |
| Returns all intersections of chord with terrain. | |
| virtual const DtTerrainCapabilities * | terrainCapabilities () const |
| virtual void | setIntersectDataLoadExpireTime (const double &expireTime) |
| No-op. | |
| virtual void | expireDataLoadRequestsBeforeTime (const double ¤tTime) |
| No-op. | |
Public Member Functions inherited from DtTerrainImplementation | |
| DtTerrainImplementation (DtConsoleCommandManager *cmdManager) | |
| virtual | ~DtTerrainImplementation () |
| virtual MAKVRinTerra::DtFeatureDatabase & | featureDatabase () |
| Access feature database. | |
| virtual const MAKVRinTerra::DtFeatureDatabase & | featureDatabase () const |
| virtual MAKVRinTerra::DtFeatureContext & | featureContext () |
| Access feature context. | |
| virtual const MAKVRinTerra::DtFeatureContext & | featureContext () const |
| virtual void | init () |
| Called immediately after creation. | |
| virtual void | finishedLoading (const MAKVRinTerra::DtProj &proj) |
| Called after terrain loaded successfully. | |
| virtual void | shutdown (bool block=true) |
| Shutdown the terrain. | |
| virtual DtTerrainInterfaceConfig & | configurationOptions () |
| virtual const DtTerrainInterfaceConfig & | configurationOptions () const |
| 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. | |
Protected Attributes | |
| DtTerrainImplementation * | myTerrainImplementation |
Protected Attributes inherited from DtTerrainImplementation | |
| DtTerrainInterfaceConfig | myConfig |
| bool | myAssertOnBlockingTerrainCalls |
| Determines if an exception should be thrown if a blocking terrain call is made. | |
| const boost::scoped_ptr < MAKVRinTerra::DtFeatureDatabase > | myFeatureDatabase |
| boost::scoped_ptr < MAKVRinTerra::DtFeatureContext > | myFeatureContext |
Private Member Functions | |
| DtTerrainPassThroughLayer () | |
| Not implemented. | |
| DtTerrainPassThroughLayer (const DtTerrainPassThroughLayer &orig) | |
| Not implemented. | |
| DtTerrainPassThroughLayer & | operator= (const DtTerrainPassThroughLayer &orig) |
| Not implemented. | |
This class is the base class for creating a "pass-though" layer in the terrain interface.
A pass-though layer contains a real terrain implementation but it wraps all the functions in pass-though functions, which may perform operations in addition to the calls being made to the real terrain implementation. This may be used for logging intersections, gathering statistics, or doing performance analysis.
|
private |
Not implemented.
|
private |
Not implemented.
| DtTerrainPassThroughLayer::DtTerrainPassThroughLayer | ( | DtTerrainImplementation * | terrainImplementation, |
| DtConsoleCommandManager * | cmdMgr | ||
| ) |
The implementation that this layer is wrapping must be passed in within the constructor.
|
virtual |
|
private |
Not implemented.
|
virtual |
Loads a terrain given the terrain record.
Implements DtTerrainImplementation.
|
virtual |
Implements DtTerrainImplementation.
|
virtual |
Specifies a list of terrain areas that should be preloaded by the terrain implementation, in the case of a paging or streaming terrain source.
The typical use of this is to specify parts of the terrain that are expected to be needed in the near future.
The terrain may not be loaded immediately upon making this call, and there is no guarantee that the terrain areas will be available for intersection immediately after making this call.
| preloadGeometry | A list of the geometric areas that should be preloaded. They can be specified using any of the subclasses of DtTerrainPagingGeometry. |
Reimplemented from DtTerrainImplementation.
|
virtual |
Returns topmost intersection of chord with terrain in record.
irtFlag specifies what intersection data should be filled in for the record.
Implements DtTerrainImplementation.
Reimplemented in DtIntersectTimerPassThroughLayer.
|
virtual |
Returns all intersections of chord with terrain.
intList is the list of each intersection record. irtFlag specifies what intersection data should be filled in for the record.
Implements DtTerrainImplementation.
Reimplemented in DtIntersectTimerPassThroughLayer.
|
virtual |
Implements DtTerrainImplementation.
|
virtual |
No-op.
Override to set the default expiration time for data load requests generated by intersect calls that require data that has not yet been loaded (paged-in).
| expireTime | The expiration time to be assigned to load data requests generated by intersect calls on the terrain implementation. |
Reimplemented from DtTerrainImplementation.
|
virtual |
No-op.
Override to expire data load requests generated before the given time. See comment for #setIntersectLoadDataExpireTime.
| currentTime | The time to compare to data load requests to determine if they should be expired rather than executed. |
Reimplemented from DtTerrainImplementation.
|
protected |