![]() |
VR-Forces Developer's Guide
|
vrf includes
third party includes std lib includes Class interface to query terrain polygon

Public Types | |
| typedef std::vector < DtTerrainTriangleStruct > | terrainTriangleStructList |
| typedef std::vector < makVrf::DtLine > | terrainLineList |
| typedef std::vector < makVrf::DtColorPoint > | terrainPointList |
Public Member Functions | |
| DtDebugDrawTerrainOutputInterface (const std::string &name) | |
| virtual | ~DtDebugDrawTerrainOutputInterface () |
| virtual bool | processTriangles () const override |
| virtual void | setprocessTriangles (bool value) |
| virtual void | processTriangle (const DtTerrainTriangleStruct &triangle) override |
| virtual bool | processAABBs () const override |
| virtual void | setProcessAABBs (bool value) |
| virtual bool | processQueryAABBs () const |
| virtual void | setProcessQueryAABBs (bool value) |
| virtual void | queryAABB (const DtVector &min, const DtVector &max, const DtCoordTransform &toLocal) override |
| virtual bool | objectAABB (const DtVector &min, const DtVector &max, const DtCoordTransform &toLocal) override |
| virtual bool | processElevationTiles () const override |
| virtual void | setProcessElevationTiles (bool value) |
| virtual bool | elevationTile (const DtVector &p1, const DtVector &p2, const DtVector &p3, const DtVector &p4) override |
| virtual bool | processElevationPosts () const override |
| virtual void | setElevationPosts (bool value) |
| virtual bool | elevationPost (std::vector< DtPoint > &postArray) override |
| virtual bool | forcePaging () const override |
| virtual void | setForcePaging (bool value) |
| virtual bool | shouldExit () const override |
| virtual unsigned | triangleCount () const |
| virtual terrainTriangleStructList & | triangleList () |
| virtual size_t | numberOfTriangles () const |
| virtual void | clearTriangleList () |
| virtual terrainLineList & | lineList () |
| virtual size_t | numberOfLines () const |
| virtual void | clearLineList () |
| virtual terrainPointList & | pointList () |
| virtual size_t | numberOfPoints () const |
| virtual void | clearPointList () |
Public Member Functions inherited from DtTriangleOutputInterface | |
| virtual void | processTerrainInstance (const DtTerrainInstance &instanceStruct) |
| virtual bool | enableTerrainInstanceProcessing () const |
| virtual void | setFailure (const std::string &reason) |
| virtual void | setName (const std::string &name) |
| virtual std::string & | name () |
Protected Member Functions | |
| virtual void | addLine (const DtString &name, const DtVector &p1, const DtVector &p2, unsigned red, unsigned green, unsigned blue) |
| virtual bool | processObjectAABB (unsigned index, const DtVector &min, const DtVector &max, const DtCoordTransform &toLocal) |
| virtual bool | processElevationTile (unsigned index, const DtVector &p1, const DtVector &p2, const DtVector &p3, const DtVector &p4) |
| void | processQueryAABB (const DtVector &min, const DtVector &max, const DtCoordTransform &toLocal) |
Protected Attributes | |
| unsigned | myTriangleCount |
| unsigned | myLineCount |
| std::unordered_set < std::shared_ptr < makVrv::DtDynamicTerrainFeature > > | myFeatures |
| bool | myStopDrawFlag |
| bool | myProcessAABBs |
| bool | myProcessQueryAABBs |
| bool | myProcessElevation |
| bool | myProcessElevationPost |
| bool | myProcessTriangles |
| bool | myForcePaging |
| terrainTriangleStructList | myTriangleList |
| terrainLineList | myLineList |
| terrainPointList | myPointList |
| tbb::spin_mutex | myProcessTriangleMutex |
| tbb::spin_mutex | myProcessLineMutex |
| tbb::spin_mutex | myProcessPointMutex |
Protected Attributes inherited from DtTriangleOutputInterface | |
| std::string | myTerrainAreaName |
| typedef std::vector<DtTerrainTriangleStruct> DtDebugDrawTerrainOutputInterface::terrainTriangleStructList |
Triangles structure/calls/list.
| typedef std::vector<makVrf::DtLine> DtDebugDrawTerrainOutputInterface::terrainLineList |
Lines structure/calls/list.
| typedef std::vector<makVrf::DtColorPoint> DtDebugDrawTerrainOutputInterface::terrainPointList |
Points structure/calls/list.
| DtDebugDrawTerrainOutputInterface::DtDebugDrawTerrainOutputInterface | ( | const std::string & | name | ) |
CTOR.
|
virtual |
CTOR.
|
overridevirtual |
Will only call processTriangle(const DtTerrainTriangleStruct& triangle) if this returns true.
Reimplemented from DtTriangleOutputInterface.
|
virtual |
enable or disable processTriangles
|
overridevirtual |
Called on each triangle.
Implements DtTriangleOutputInterface.
|
overridevirtual |
AABB functions will only be called if this returns true. Returns false by default.
Reimplemented from DtTriangleOutputInterface.
|
virtual |
enable or disable processAABBs
|
virtual |
QueryAABB functions will only be called if this returns true. Returns false by default.
|
virtual |
enable or disable processQueryAABBs
|
overridevirtual |
Called with the axis-aligned bounding box values computed for the query.
Reimplemented from DtTriangleOutputInterface.
|
overridevirtual |
Called with the axis-aligned bounding box of each object processed. These AABBs are calculated in the coordinate system in which the query is done.
Reimplemented from DtTriangleOutputInterface.
|
overridevirtual |
elevationTile() functions will only be called if this returns true.
Reimplemented from DtTriangleOutputInterface.
|
virtual |
enable or disable processElevationTiles()
|
overridevirtual |
Corner points of an elevation tile.
Reimplemented from DtTriangleOutputInterface.
|
overridevirtual |
elevationPosts() functions will only be called if this returns true.
Reimplemented from DtTriangleOutputInterface.
|
virtual |
enable or disable processElevationPosts()
|
overridevirtual |
set the list of grid post
Reimplemented from DtTriangleOutputInterface.
|
overridevirtual |
This will force paging in of all terrain within the box, which may take a significant amount of time and may also consume large amounts of memory. Default returns true.
Reimplemented from DtTriangleOutputInterface.
|
virtual |
enable or disable forcePaging()
|
overridevirtual |
Called by implementation to allow early exit. Functions will return as soon as possible if this returns true.
Reimplemented from DtTriangleOutputInterface.
|
virtual |
Return the number or triangle found.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
Add a line to draw.
|
protectedvirtual |
Process collision object.
|
protectedvirtual |
Process the elevation tile.
|
protected |
Process query boundary.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Triangles list to draw.
|
protected |
Lines list to draw.
|
protected |
Points list to draw.
|
protected |
|
protected |
|
protected |