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
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 bool | loadTerrain (const makArchives::DtGenericTerrainRecord &rec) |
| | Loads a terrain given the terrain record.
|
| virtual const Coordinate_System * | coordinateSystem () const |
| virtual void | shutdown (bool block) |
| | Shutdown the terrain.
|
| 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 (DtTerrainIntersectStatus &status, const DtChord &chord, DtVrfChordIntersectionRecord &record, const DtTerrainIntersectOptions &options) const |
| | Returns topmost intersection of chord with terrain in record.
|
| virtual bool | allIntersectsAlongChord (DtTerrainIntersectStatus &status, const DtChord &chord, DtVrfChordIntersectRecordList &intList, const DtTerrainIntersectOptions &options) const |
| | Returns all intersections of chord with terrain.
|
| virtual void | cacheInformationForTerrainArea (unsigned minLOD, unsigned maxLOD, const DtExtent &cacheArea, double &estimatedTime, double &estimatedSize, std::vector< std::string > &elevationLayers, std::vector< std::string > &modelLayers, std::vector< std::string > &featureLayers) const |
| | Passed through to terrain implementation.
|
| virtual void | cacheTerrainArea (int requestId, unsigned minLOD, unsigned maxLOD, const DtExtent &cacheArea, DtCacheProgressCallbackFunction fcn=0, void *usr=0) |
| | Passed through to terrain implementation.
|
| virtual void | cancelCacheTerrainArea (int requestId) |
| | Passed through to terrain implementation.
|
virtual const
DtTerrainCapabilities * | terrainCapabilities () const |
| virtual void | setIntersectDataLoadExpireTime (const double &expireTime) |
| | No-op.
|
| virtual void | expireDataLoadRequestsBeforeTime (const double ¤tTime) |
| | No-op.
|
| virtual void | processTrianglesInArea (DtTriangleOutputInterface &, const DtTerrainProcessPolygonsBox &box) const |
| | DtTerrainImplementation (DtConsoleCommandManager *cmdManager) |
| virtual | ~DtTerrainImplementation () |
| virtual void | init () |
| | Called immediately after creation.
|
| virtual void | finishedLoading (const MAKVRinTerra::DtProj &proj) |
| | Called after terrain loaded successfully.
|
| virtual double | modelHeightDifferencesFromAppearances (int oldApp, int newApp) const |
| | If supported by the implementation, return the height difference from the currently loaded model as a transition from the old appearance to the new appearance.
|
| virtual bool | createFromExtent (const Dt3dBoundingVolume &) |
| | Creates an extent from the given extent. Not all implementations will support this.
|
| virtual bool | loadModel (const DtFilename &, const DtEntityType &t=DtEntityType()) |
| | Defaults to loading terrain for gdb.
|
| virtual DtTerrainInterfaceConfig & | configurationOptions () |
virtual const
DtTerrainInterfaceConfig & | configurationOptions () const |
| virtual bool | dataAvailable (const DtTerrainPagingGeometryList &geometry, DtTerrainIntersectOptions::Fidelity=DtTerrainIntersectOptions::MAX_FIDELITY) |
| | Returns true if all of the terrain which intersects the geometry list is paged in.
|
| virtual void | breakUpChords (const MAKVRinTerra::DtProj &, const DtChord &chord, std::vector< DtChord > &chords) |
| virtual bool | hasFeatureContext () const |
| | Returns true if there is an active feature context.
|
| virtual DtTerrainGeometryHandle * | createEntityGeometry (const DtFilename &file) |
| | Create geometry in the terrain which represents the entity.
|
virtual
DtDynamicTerrainRequestHandle | addDynamicTerrainChangeRequest (double time, makVrv::DtDynamicTerrainChange *command) |
| | Add a dynamic terrain change request to the system.
|
| virtual DtDynamicTerrainQueryHandle | queryDynamicTerrainFeatures (const DtDynamicTerrainQueryCallback &callback, makVrv::DtDynamicTerrainGeometry *geometry=0, bool useOriginalGeometry=false) |
| | Install a query which will call the supplied callback on matching dynamic terrain features as they are paged in.
|
| virtual void | queryCurrentDynamicTerrainFeatures (const DtDynamicTerrainQueryCallback &callback, makVrv::DtDynamicTerrainGeometry *geometry=0, bool useOriginalGeometry=false) |
| virtual void | writeTerrainIndex (const DtString &name) |
| | Write terrain index.
|
| virtual void | setAssertOnBlockingTerrainCalls (bool assertBlock) |
| | Determines if an exception should be thrown if a blocking terrain call is made.
|
| virtual bool | assertOnBlockingTerrainCalls () const |
| virtual void | setWarnOnBlockingTerrainCalls (bool warnBlock) |
| | Determines if a warning should be printed out if a blocking terrain call is made.
|
| virtual bool | warnOnBlockingTerrainCalls () const |
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.