![]() |
VR-Forces 4.0.4 Class Documentation
|
This terrain implementation is an algorithmic representation of the world as a bald ellipsoid defined by WGS84. More...

Public Member Functions | |
| DtEllipsoidTerrainImplementation (DtConsoleCommandManager *cmdMgr) | |
| virtual | ~DtEllipsoidTerrainImplementation () |
| virtual bool | loadTerrain (const makArchives::DtGenericTerrainRecord &record, 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 DtVectorNetwork * | vectorNetwork () const |
| virtual bool | intersectVectorNetwork (const DtChord &chord, DtVectorNetworkRecord *vectorRecord, DtVectorNetworkIntersectionRecord *vectorIntersectionRecord) const |
| User passes in the chord to intersect the vector network and the vectorRecord defining the desired search parameters like the kind of features to be searched. | |
| virtual const DtTerrainCapabilities * | terrainCapabilities () const |
| virtual void | processTrianglesInArea (DtTriangleCallbackFcn func, DtTriangleCallbackFinalizeFcn finalize, const DtTerrainProcessPolygonsBox &box, void *usr) |
Static Public Member Functions | |
| static DtTerrainImplementation * | create (DtConsoleCommandManager *cmdMgr) |
Protected Member Functions | |
| void | fillHitRecord (DtChordIntersectionRecord &rec, const DtChord &chord, const DtPoint &chordNormal, double intersectTime, DtIntersectionRecord::DtIntersectionType irtFlag) const |
| bool | chordEllipsoidIntersect (const DtChord &chord, DtChordIntersectionRecord &hit1, DtChordIntersectionRecord &hit2, DtIntersectionRecord::DtIntersectionType irtFlag) const |
Protected Attributes | |
| Coordinate_System * | myCoordinateSystem |
| DtVectorNetwork * | myVectorNetwork |
| DtTerrainCapabilities | myCapabilities |
This terrain implementation is an algorithmic representation of the world as a bald ellipsoid defined by WGS84.
All soil types are returned as the undefined soil type.
| DtEllipsoidTerrainImplementation::DtEllipsoidTerrainImplementation | ( | DtConsoleCommandManager * | cmdMgr | ) |
| virtual DtEllipsoidTerrainImplementation::~DtEllipsoidTerrainImplementation | ( | ) | [virtual] |
| static DtTerrainImplementation* DtEllipsoidTerrainImplementation::create | ( | DtConsoleCommandManager * | cmdMgr | ) | [static] |
| virtual bool DtEllipsoidTerrainImplementation::loadTerrain | ( | const makArchives::DtGenericTerrainRecord & | rec, |
| 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* DtEllipsoidTerrainImplementation::coordinateSystem | ( | ) | const [virtual] |
Implements DtTerrainImplementation.
| virtual bool DtEllipsoidTerrainImplementation::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 DtEllipsoidTerrainImplementation::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 DtEllipsoidTerrainImplementation::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 DtVectorNetwork* DtEllipsoidTerrainImplementation::vectorNetwork | ( | ) | const [virtual] |
Implements DtTerrainImplementation.
| virtual bool DtEllipsoidTerrainImplementation::intersectVectorNetwork | ( | const DtChord & | chord, |
| DtVectorNetworkRecord * | vectorRecord, | ||
| DtVectorNetworkIntersectionRecord * | vectorIntersectionRecord | ||
| ) | const [virtual] |
User passes in the chord to intersect the vector network and the vectorRecord defining the desired search parameters like the kind of features to be searched.
Returns the best feature intersection and associated data in the vectorIntersectionRecord if there is an intersection. Returns false if there is no intersection.
Implements DtTerrainImplementation.
| virtual const DtTerrainCapabilities* DtEllipsoidTerrainImplementation::terrainCapabilities | ( | ) | const [virtual] |
Implements DtTerrainImplementation.
| virtual void DtEllipsoidTerrainImplementation::processTrianglesInArea | ( | DtTriangleCallbackFcn | func, |
| DtTriangleCallbackFinalizeFcn | finalize, | ||
| const DtTerrainProcessPolygonsBox & | box, | ||
| void * | usr | ||
| ) | [virtual] |
| void DtEllipsoidTerrainImplementation::fillHitRecord | ( | DtChordIntersectionRecord & | rec, |
| const DtChord & | chord, | ||
| const DtPoint & | chordNormal, | ||
| double | intersectTime, | ||
| DtIntersectionRecord::DtIntersectionType | irtFlag | ||
| ) | const [protected] |
| bool DtEllipsoidTerrainImplementation::chordEllipsoidIntersect | ( | const DtChord & | chord, |
| DtChordIntersectionRecord & | hit1, | ||
| DtChordIntersectionRecord & | hit2, | ||
| DtIntersectionRecord::DtIntersectionType | irtFlag | ||
| ) | const [protected] |