Interface for getting terrain triangle data out of DtTerrainInterface::trianglesInArea. This object should always be created on the stack.
| virtual bool DtTriangleOutputInterface::processTriangles |
( |
| ) |
const |
|
virtual |
Called on each triangle.
- Note
- This function may be called simultaneously from multiple threads. Implementation must be reentrant.
Implemented in DtDebugDrawTerrainOutputInterface.
| virtual void DtTriangleOutputInterface::processTerrainInstance |
( |
const DtTerrainInstance & |
instanceStruct | ) |
|
|
virtual |
| virtual bool DtTriangleOutputInterface::processAABBs |
( |
| ) |
const |
|
virtual |
| virtual void DtTriangleOutputInterface::queryAABB |
( |
const DtVector & |
min, |
|
|
const DtVector & |
max, |
|
|
const DtCoordTransform & |
toLocal |
|
) |
| |
|
virtual |
| 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.
Reimplemented in DtDebugDrawTerrainOutputInterface.
| virtual bool DtTriangleOutputInterface::enableTerrainInstanceProcessing |
( |
| ) |
const |
|
virtual |
If this returns true, processTerrainInstance() will be called for each instance geometry encountered in the terrain. If this is false, instance geometries will be unrolled into triangles, and processTriange() will be called for each triangle in each instance. Default implementation returns false.
Reimplemented in DtDebugDrawTerrainWithInstancesOutputInterface.
| virtual bool DtTriangleOutputInterface::processElevationTiles |
( |
| ) |
const |
|
virtual |
| virtual bool DtTriangleOutputInterface::elevationTile |
( |
const DtVector & |
p1, |
|
|
const DtVector & |
p2, |
|
|
const DtVector & |
p3, |
|
|
const DtVector & |
p4 |
|
) |
| |
|
virtual |
| virtual bool DtTriangleOutputInterface::processElevationPosts |
( |
| ) |
const |
|
virtual |
| virtual bool DtTriangleOutputInterface::elevationPost |
( |
std::vector< DtPoint > & |
postArray | ) |
|
|
virtual |
| 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.
Reimplemented in DtDebugDrawTerrainOutputInterface.
| virtual void DtTriangleOutputInterface::setFailure |
( |
const std::string & |
reason | ) |
|
|
virtual |
Called by implementation if there is an error.
| virtual bool DtTriangleOutputInterface::shouldExit |
( |
| ) |
const |
|
virtual |
| virtual void DtTriangleOutputInterface::setName |
( |
const std::string & |
name | ) |
|
|
virtual |
| virtual std::string& DtTriangleOutputInterface::name |
( |
| ) |
|
|
virtual |
Return the terrain area name.
| std::string DtTriangleOutputInterface::myTerrainAreaName |
|
protected |
The documentation for this class was generated from the following file: