This class is the base class for creating a "pass-though" layer in the terrain interface.
More...
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, 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_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 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 ¤tTime) |
| | No-op.
|
| | 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) |
| const TerrainSettings & | settings () |
| | Returns settings.
|
| void | setFeatureContext (const boost::scoped_ptr< MAKVRinTerra::DtFeatureContext > &fc) |
| | Sets the feature context for use in lookups.
|
| 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.
|
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.
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.
- Parameters
-
| preloadGeometry | A list of the geometric areas that should be preloaded. They can be specified using any of the subclasses of DtTerrainPagingGeometry. |
- Note
- The geometry set with this call completely replaces any geometry previously set using this call.
-
The default implementation for this is a noop.
Reimplemented from DtTerrainImplementation.