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

This terrain implementation is a polygonal terrain representation. More...

Inheritance diagram for DtGdbTerrainImplementation:
Inheritance graph
[legend]

Public Member Functions

 DtGdbTerrainImplementation (DtConsoleCommandManager *cmdMgr)
virtual ~DtGdbTerrainImplementation ()
virtual bool loadTerrain (const makArchives::DtGenericTerrainRecord &record, MAKVRinTerra::DtFeatureLoader &, const TerrainSettings &settings=TerrainSettings())
 Loads a terrain given the terrain record and a key/value pair of settings.
virtual const Coordinate_System * coordinateSystem () const
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 processTrianglesInArea (DtTriangleCallbackFcn func, DtTriangleCallbackFinalizeFcn finalize, DtTerrainProcessPolygonsBox &box, void *usr) const
virtual void consumeNode (DtGdbNode *gdbNode, DtTerrainProcessPolygonsBox &box, DtTriangleCallbackFcn func, void *usr) const
- Public Member Functions inherited from DtTerrainImplementation
 DtTerrainImplementation (DtConsoleCommandManager *cmdManager)
virtual ~DtTerrainImplementation ()
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 void setIntersectDataLoadExpireTime (const double &expireTime)
 No-op.
virtual void expireDataLoadRequestsBeforeTime (const double &currentTime)
 No-op.
virtual void breakUpChords (const MAKVRinTerra::DtProj &, const DtChord &chord, std::vector< DtChord > &chords)
const TerrainSettingssettings ()
 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.

Static Public Member Functions

static DtTerrainImplementationcreate (DtConsoleCommandManager *cmdMgr)

Protected Attributes

DtTdbManager * myTdbManager
DtTerrainCapabilities myCapabilities
- 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.
MAKVRinTerra::DtFeatureContextmyFeatureContext
 Used for featutre lookups.

Additional Inherited Members

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

Detailed Description

This terrain implementation is a polygonal terrain representation.

Polygons can have a soiltype defined and an associated color. It is in the GDB format which holds both the polygons and any associated vector features.

Constructor & Destructor Documentation

DtGdbTerrainImplementation::DtGdbTerrainImplementation ( DtConsoleCommandManager cmdMgr)
virtual DtGdbTerrainImplementation::~DtGdbTerrainImplementation ( )
virtual

Member Function Documentation

static DtTerrainImplementation* DtGdbTerrainImplementation::create ( DtConsoleCommandManager cmdMgr)
static
virtual bool DtGdbTerrainImplementation::loadTerrain ( const makArchives::DtGenericTerrainRecord &  rec,
MAKVRinTerra::DtFeatureLoader featureLoader,
const TerrainSettings settings = TerrainSettings() 
)
virtual

Loads a terrain given the terrain record and a key/value pair of settings.

These settings are interpreted (or not) by the implementation

Implements DtTerrainImplementation.

virtual const Coordinate_System* DtGdbTerrainImplementation::coordinateSystem ( ) const
virtual
virtual bool DtGdbTerrainImplementation::chordIntersect ( const DtChord &  chord,
DtChordIntersectionRecord &  record,
DtIntersectionRecord::DtIntersectionType  irtFlag = DtIntersectionRecord::INT_ALL_DATA,
bool dataAvailable = 0,
bool  overrideBlockingAssert = false 
) const
virtual

Returns topmost intersection of chord with terrain in record.

irtFlag specifies what intersection data should be filled in for the record.

Implements DtTerrainImplementation.

virtual bool DtGdbTerrainImplementation::allIntersectsAlongChord ( const DtChord &  chord,
DtChordIntersectRecordList &  intList,
DtIntersectionRecord::DtIntersectionType  irtFlag = DtIntersectionRecord::INT_ALL_DATA,
bool dataAvailable = 0,
bool  overrideBlockingAssert = false 
) const
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.

virtual bool DtGdbTerrainImplementation::sphereIntersect ( const DtSphere &  sphere,
DtSphereIntersectionRecord &  record,
DtIntersectionRecord::DtIntersectionType  irtFlag = DtIntersectionRecord::INT_ALL_DATA,
bool dataAvailable = 0,
bool  overrideBlockingAssert = false 
) const
virtual

Returns intersection of sphere with the terrain in the record irtFlag specifies what intersection data should be filled in for the record.

Implements DtTerrainImplementation.

virtual const DtTerrainCapabilities* DtGdbTerrainImplementation::terrainCapabilities ( ) const
virtual
Returns
A DtTerrainCapabilites structure that describes the capabilities of the currently loaded terrain.

Implements DtTerrainImplementation.

virtual void DtGdbTerrainImplementation::processTrianglesInArea ( DtTriangleCallbackFcn  func,
DtTriangleCallbackFinalizeFcn  finalize,
DtTerrainProcessPolygonsBox box,
void *  usr 
) const
virtual

Reimplemented from DtTerrainImplementation.

virtual void DtGdbTerrainImplementation::consumeNode ( DtGdbNode *  gdbNode,
DtTerrainProcessPolygonsBox box,
DtTriangleCallbackFcn  func,
void *  usr 
) const
virtual

Member Data Documentation

DtTdbManager* DtGdbTerrainImplementation::myTdbManager
protected
DtTerrainCapabilities DtGdbTerrainImplementation::myCapabilities
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)