VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
DtDebugDrawTerrainOutputInterface Class Reference

Class interface to query terrain polygon. More...

Inheritance diagram for DtDebugDrawTerrainOutputInterface:
Inheritance graph
[legend]

Public Types

typedef std::vector
< DtTerrainTriangleStruct
terrainTriangleStructList
 Triangles structure/calls/list. More...
 
typedef std::vector
< makVrf::DtLine
terrainLineList
 Lines structure/calls/list. More...
 

Public Member Functions

 DtDebugDrawTerrainOutputInterface (const std::string &name)
 CTOR. More...
 
virtual ~DtDebugDrawTerrainOutputInterface ()
 CTOR. More...
 
virtual bool processTriangles () const
 Will only call processTriangle(const DtTerrainTriangleStruct& triangle) if this returns true. More...
 
virtual void setprocessTriangles (bool value)
 enable or disable processTriangles More...
 
virtual void processTriangle (const DtTerrainTriangleStruct &triangle)
 Called on each triangle. More...
 
virtual bool processAABBs () const
 AABB functions will only be called if this returns true. More...
 
virtual void setProcessAABBs (bool value)
 enable or disable processAABBs More...
 
virtual bool processQueryAABBs () const
 QueryAABB functions will only be called if this returns true. More...
 
virtual void setProcessQueryAABBs (bool value)
 enable or disable processQueryAABBs More...
 
virtual void queryAABB (const DtVector &min, const DtVector &max, const DtCoordTransform &toLocal)
 Called with the axis-aligned bounding box values computed for the query. More...
 
virtual bool objectAABB (const DtVector &min, const DtVector &max, const DtCoordTransform &toLocal)
 Called with the axis-aligned bounding box of each object processed. More...
 
virtual bool processElevationTiles () const
 elevationTile() functions will only be called if this returns true. More...
 
virtual void setProcessElevationTiles (bool value)
 enable or disable processElevationTiles() More...
 
virtual bool elevationTile (const DtVector &p1, const DtVector &p2, const DtVector &p3, const DtVector &p4)
 Corner points of an elevation tile. More...
 
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. More...
 
virtual void setForcePaging (bool value)
 enable or disable forcePaging() More...
 
virtual bool shouldExit () const
 Called by implementation to allow early exit. More...
 
virtual unsigned triangleCount () const
 Return the number or triangle found. More...
 
virtual terrainTriangleStructListtriangleList ()
 
virtual size_t numberOfTriangles () const
 
virtual void clearTriangleList ()
 
virtual terrainLineListlineList ()
 
virtual size_t numberOfLines () const
 
virtual void clearLineList ()
 
- Public Member Functions inherited from DtTriangleOutputInterface
virtual void setFailure (const std::string &reason)
 Called by implementation if there is an error. More...
 
virtual void setName (const std::string &name)
 Set terrain area name. More...
 
virtual std::string & name ()
 Return the terrain area name. More...
 

Protected Member Functions

virtual void addLine (const DtString &name, const DtVector &p1, const DtVector &p2, unsigned red, unsigned green, unsigned blue)
 Add a line to draw. More...
 
virtual bool processObjectAABB (unsigned index, const DtVector &min, const DtVector &max, const DtCoordTransform &toLocal)
 Process collision object. More...
 
virtual bool processElevationTile (unsigned index, const DtVector &p1, const DtVector &p2, const DtVector &p3, const DtVector &p4)
 Process the elevation tile. More...
 
void processQueryAABB (const DtVector &min, const DtVector &max, const DtCoordTransform &toLocal)
 Process query boundary. More...
 

Protected Attributes

unsigned myTriangleCount
 
unsigned myLineCount
 
boost::unordered_set
< boost::shared_ptr
< makVrv::DtDynamicTerrainFeature > > 
myFeatures
 
bool myStopDrawFlag
 
bool myProcessAABBs
 
bool myProcessQueryAABBs
 
bool myProcessElevation
 
bool myProcessTriangles
 
bool myForcePaging
 
terrainTriangleStructList myTriangleList
 Triangles list to draw. More...
 
terrainLineList myLineList
 Lines list to draw. More...
 
- Protected Attributes inherited from DtTriangleOutputInterface
std::string myTerrainAreaName
 

Detailed Description

Class interface to query terrain polygon.

Member Typedef Documentation

Triangles structure/calls/list.

Lines structure/calls/list.

Constructor & Destructor Documentation

DtDebugDrawTerrainOutputInterface::DtDebugDrawTerrainOutputInterface ( const std::string &  name)

CTOR.

virtual DtDebugDrawTerrainOutputInterface::~DtDebugDrawTerrainOutputInterface ( )
virtual

CTOR.

Member Function Documentation

virtual bool DtDebugDrawTerrainOutputInterface::processTriangles ( ) const
virtual

Will only call processTriangle(const DtTerrainTriangleStruct& triangle) if this returns true.

Reimplemented from DtTriangleOutputInterface.

virtual void DtDebugDrawTerrainOutputInterface::setprocessTriangles ( bool  value)
virtual

enable or disable processTriangles

virtual void DtDebugDrawTerrainOutputInterface::processTriangle ( const DtTerrainTriangleStruct triangle)
virtual

Called on each triangle.

Implements DtTriangleOutputInterface.

virtual bool DtDebugDrawTerrainOutputInterface::processAABBs ( ) const
virtual

AABB functions will only be called if this returns true.

Returns false by default.

Reimplemented from DtTriangleOutputInterface.

virtual void DtDebugDrawTerrainOutputInterface::setProcessAABBs ( bool  value)
virtual

enable or disable processAABBs

virtual bool DtDebugDrawTerrainOutputInterface::processQueryAABBs ( ) const
virtual

QueryAABB functions will only be called if this returns true.

Returns false by default.

virtual void DtDebugDrawTerrainOutputInterface::setProcessQueryAABBs ( bool  value)
virtual

enable or disable processQueryAABBs

virtual void DtDebugDrawTerrainOutputInterface::queryAABB ( const DtVector min,
const DtVector max,
const DtCoordTransform &  toLocal 
)
virtual

Called with the axis-aligned bounding box values computed for the query.

Reimplemented from DtTriangleOutputInterface.

virtual bool DtDebugDrawTerrainOutputInterface::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 from DtTriangleOutputInterface.

virtual bool DtDebugDrawTerrainOutputInterface::processElevationTiles ( ) const
virtual

elevationTile() functions will only be called if this returns true.

Reimplemented from DtTriangleOutputInterface.

virtual void DtDebugDrawTerrainOutputInterface::setProcessElevationTiles ( bool  value)
virtual

enable or disable processElevationTiles()

virtual bool DtDebugDrawTerrainOutputInterface::elevationTile ( const DtVector p1,
const DtVector p2,
const DtVector p3,
const DtVector p4 
)
virtual

Corner points of an elevation tile.

Returns
Can reject tiles from further processing by returning false.

Reimplemented from DtTriangleOutputInterface.

virtual bool DtDebugDrawTerrainOutputInterface::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 from DtTriangleOutputInterface.

virtual void DtDebugDrawTerrainOutputInterface::setForcePaging ( bool  value)
virtual

enable or disable forcePaging()

virtual bool DtDebugDrawTerrainOutputInterface::shouldExit ( ) const
virtual

Called by implementation to allow early exit.

Functions will return as soon as possible if this returns true.

Reimplemented from DtTriangleOutputInterface.

virtual unsigned DtDebugDrawTerrainOutputInterface::triangleCount ( ) const
virtual

Return the number or triangle found.

virtual terrainTriangleStructList& DtDebugDrawTerrainOutputInterface::triangleList ( )
virtual
virtual size_t DtDebugDrawTerrainOutputInterface::numberOfTriangles ( ) const
virtual
virtual void DtDebugDrawTerrainOutputInterface::clearTriangleList ( )
virtual
virtual terrainLineList& DtDebugDrawTerrainOutputInterface::lineList ( )
virtual
virtual size_t DtDebugDrawTerrainOutputInterface::numberOfLines ( ) const
virtual
virtual void DtDebugDrawTerrainOutputInterface::clearLineList ( )
virtual
virtual void DtDebugDrawTerrainOutputInterface::addLine ( const DtString name,
const DtVector p1,
const DtVector p2,
unsigned  red,
unsigned  green,
unsigned  blue 
)
protectedvirtual

Add a line to draw.

virtual bool DtDebugDrawTerrainOutputInterface::processObjectAABB ( unsigned  index,
const DtVector min,
const DtVector max,
const DtCoordTransform &  toLocal 
)
protectedvirtual

Process collision object.

virtual bool DtDebugDrawTerrainOutputInterface::processElevationTile ( unsigned  index,
const DtVector p1,
const DtVector p2,
const DtVector p3,
const DtVector p4 
)
protectedvirtual

Process the elevation tile.

void DtDebugDrawTerrainOutputInterface::processQueryAABB ( const DtVector min,
const DtVector max,
const DtCoordTransform &  toLocal 
)
protected

Process query boundary.

Member Data Documentation

unsigned DtDebugDrawTerrainOutputInterface::myTriangleCount
protected
unsigned DtDebugDrawTerrainOutputInterface::myLineCount
protected
boost::unordered_set< boost::shared_ptr<makVrv::DtDynamicTerrainFeature> > DtDebugDrawTerrainOutputInterface::myFeatures
protected
bool DtDebugDrawTerrainOutputInterface::myStopDrawFlag
protected
bool DtDebugDrawTerrainOutputInterface::myProcessAABBs
protected
bool DtDebugDrawTerrainOutputInterface::myProcessQueryAABBs
protected
bool DtDebugDrawTerrainOutputInterface::myProcessElevation
protected
bool DtDebugDrawTerrainOutputInterface::myProcessTriangles
protected
bool DtDebugDrawTerrainOutputInterface::myForcePaging
protected
terrainTriangleStructList DtDebugDrawTerrainOutputInterface::myTriangleList
protected

Triangles list to draw.

terrainLineList DtDebugDrawTerrainOutputInterface::myLineList
protected

Lines list to draw.


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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)