Interface for getting terrain triangle data out of DtTerrainInterface::trianglesInArea.
More...
Public Member Functions |
| virtual bool | processTriangles () const |
| | Will only process triangles if this returns true.
|
| virtual void | processTriangle (const DtTerrainTriangleStruct &triangle)=0 |
| | Called on each triangle.
|
| virtual bool | processAABBs () const |
| | AABB functions will only be called if this returns true.
|
| virtual void | queryAABB (const DtVector &min, const DtVector &max, const DtCoordTransform &toLocal) |
| | Called with the axis-aligned bounding box values computed for the query.
|
| virtual bool | objectAABB (const DtVector &min, const DtVector &max, const DtCoordTransform &toLocal) |
| | Called with the axis-aligned bounding box of each object processed.
|
| virtual bool | elevationTile (const DtVector &p1, const DtVector &p2, const DtVector &p3, const DtVector &p4) |
| | Corner points of an elevation tile.
|
| virtual bool | forcePaging () const |
| | 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.
|
| virtual void | setFailure (const std::string &reason) |
| | Called by implementation if there is an error.
|
| virtual bool | shouldExit () const |
| | Called by implementation to allow early exit.
|
Detailed Description
Interface for getting terrain triangle data out of DtTerrainInterface::trianglesInArea.
This object should always be created on the stack.
Member Function Documentation
| virtual bool DtTriangleOutputInterface::processTriangles |
( |
| ) |
const |
|
virtual |
Will only process triangles if this returns true.
| virtual bool DtTriangleOutputInterface::processAABBs |
( |
| ) |
const |
|
virtual |
AABB functions will only be called if this returns true.
Returns false by default.
| virtual void DtTriangleOutputInterface::queryAABB |
( |
const DtVector & |
min, |
|
|
const DtVector & |
max, |
|
|
const DtCoordTransform & |
toLocal |
|
) |
| |
|
virtual |
Called with the axis-aligned bounding box values computed for the query.
| virtual bool DtTriangleOutputInterface::objectAABB |
( |
const DtVector & |
min, |
|
|
const DtVector & |
max, |
|
|
const DtCoordTransform & |
toLocal |
|
) |
| |
|
virtual |
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.
- Returns
- Can reject objects from further processing by returning false.
Corner points of an elevation tile.
- Returns
- Can reject tiles from further processing by returning false.
| virtual bool DtTriangleOutputInterface::forcePaging |
( |
| ) |
const |
|
virtual |
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.
| virtual void DtTriangleOutputInterface::setFailure |
( |
const std::string & |
reason | ) |
|
|
virtual |
Called by implementation if there is an error.
| virtual bool DtTriangleOutputInterface::shouldExit |
( |
| ) |
const |
|
virtual |
Called by implementation to allow early exit.
Functions will return as soon as possible if this returns true.
The documentation for this class was generated from the following file: