VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtTerrainProcessPolygonsBox Class Reference

Represents an area query which can be used to extract triangles from DtTerrainInterface. The box points are in local but the box is always projected against the local topo at the center point of the box.

Public Member Functions

 DtTerrainProcessPolygonsBox (const Coordinate_System &local)
 
 DtTerrainProcessPolygonsBox (const Coordinate_System &local, const DtPoint &nw, const DtPoint &ne, const DtPoint &sw, const DtPoint &se)
 
virtual ~DtTerrainProcessPolygonsBox ()
 
virtual bool isUseAllTerrain () const
 
virtual void setIsUseAllTerrain (bool useAllTerrain)
 
virtual bool doesTriangleIntersectBox (const DtTerrainTriangleStruct &polygon) const
 
virtual bool isPointInsideBox (const DtPoint &point) const
 
virtual DtPoint centerOfBox () const
 
virtual DtPoint northeast (bool inLocal=true) const
 
virtual DtPoint northwest (bool inLocal=true) const
 
virtual DtPoint southeast (bool inLocal=true) const
 
virtual DtPoint southwest (bool inLocal=true) const
 
virtual void setNewNW (const DtPoint &nw)
 
virtual void setNewNE (const DtPoint &ne)
 
virtual void setNewSW (const DtPoint &sw)
 
virtual void setNewSE (const DtPoint &se)
 
virtual double minAltitude () const
 
virtual double maxAltitude () const
 
virtual void setMinAltitude (double)
 
virtual void setMaxAltitude (double)
 

Protected Member Functions

virtual DtCoordTransform transform () const
 
virtual void clearTopoData ()
 

Protected Attributes

const Coordinate_SystemmyLocal
 
bool myIsUseAllTerrain
 
DtPoint myNorthwest
 
DtPoint myNortheast
 
DtPoint mySouthwest
 
DtPoint mySoutheast
 
double myMinAltitude
 
double myMaxAltitude
 
boost::optional< DtPointmyNorthwestTopo
 
boost::optional< DtPointmyNortheastTopo
 
boost::optional< DtPointmySouthwestTopo
 
boost::optional< DtPointmySoutheastTopo
 
boost::optional< DtPointmyTopoAABBMin
 
boost::optional< DtPointmyTopoAABBMax
 
boost::optional< DtCoordTransform > myTransform
 

Constructor & Destructor Documentation

DtTerrainProcessPolygonsBox::DtTerrainProcessPolygonsBox ( const Coordinate_System local)
explicit
DtTerrainProcessPolygonsBox::DtTerrainProcessPolygonsBox ( const Coordinate_System local,
const DtPoint nw,
const DtPoint ne,
const DtPoint sw,
const DtPoint se 
)
explicit
virtual DtTerrainProcessPolygonsBox::~DtTerrainProcessPolygonsBox ( )
virtual

Member Function Documentation

virtual DtPoint DtTerrainProcessPolygonsBox::northeast ( bool  inLocal = true) const
virtual

Corner point accessors. If inlocal is true then the points will be passed back in the local coordinate system. If inLocal is false then the points will be transformed into a local topo coordinate system centered at the center of the box.

virtual DtPoint DtTerrainProcessPolygonsBox::northwest ( bool  inLocal = true) const
virtual

Corner point accessors. If inlocal is true then the points will be passed back in the local coordinate system. If inLocal is false then the points will be transformed into a local topo coordinate system centered at the center of the box.

virtual DtPoint DtTerrainProcessPolygonsBox::southeast ( bool  inLocal = true) const
virtual

Corner point accessors. If inlocal is true then the points will be passed back in the local coordinate system. If inLocal is false then the points will be transformed into a local topo coordinate system centered at the center of the box.

virtual DtPoint DtTerrainProcessPolygonsBox::southwest ( bool  inLocal = true) const
virtual

Corner point accessors. If inlocal is true then the points will be passed back in the local coordinate system. If inLocal is false then the points will be transformed into a local topo coordinate system centered at the center of the box.

virtual void DtTerrainProcessPolygonsBox::setNewNW ( const DtPoint nw)
virtual

Corner points of box in local coordinate system.

virtual void DtTerrainProcessPolygonsBox::setNewNE ( const DtPoint ne)
virtual

Corner points of box in local coordinate system.

virtual void DtTerrainProcessPolygonsBox::setNewSW ( const DtPoint sw)
virtual

Corner points of box in local coordinate system.

virtual void DtTerrainProcessPolygonsBox::setNewSE ( const DtPoint se)
virtual

Corner points of box in local coordinate system.

virtual double DtTerrainProcessPolygonsBox::minAltitude ( ) const
virtual

Min/Max altitude of triangles generated. These values will be used regardless of the altitude of the points that define the box This is generally used to increase performance since finding all the triangles above and below a certain area can be very slow if you don't need them all. Defaults to -100000 to 100000.

virtual double DtTerrainProcessPolygonsBox::maxAltitude ( ) const
virtual

Min/Max altitude of triangles generated. These values will be used regardless of the altitude of the points that define the box This is generally used to increase performance since finding all the triangles above and below a certain area can be very slow if you don't need them all. Defaults to -100000 to 100000.

virtual void DtTerrainProcessPolygonsBox::setMinAltitude ( double  )
virtual

Min/Max altitude of triangles generated. These values will be used regardless of the altitude of the points that define the box This is generally used to increase performance since finding all the triangles above and below a certain area can be very slow if you don't need them all. Defaults to -100000 to 100000.

virtual void DtTerrainProcessPolygonsBox::setMaxAltitude ( double  )
virtual

Min/Max altitude of triangles generated. These values will be used regardless of the altitude of the points that define the box This is generally used to increase performance since finding all the triangles above and below a certain area can be very slow if you don't need them all. Defaults to -100000 to 100000.

virtual bool DtTerrainProcessPolygonsBox::isUseAllTerrain ( ) const
virtual
virtual void DtTerrainProcessPolygonsBox::setIsUseAllTerrain ( bool  useAllTerrain)
virtual
virtual bool DtTerrainProcessPolygonsBox::doesTriangleIntersectBox ( const DtTerrainTriangleStruct polygon) const
virtual
virtual bool DtTerrainProcessPolygonsBox::isPointInsideBox ( const DtPoint point) const
virtual
virtual DtPoint DtTerrainProcessPolygonsBox::centerOfBox ( ) const
virtual
virtual DtCoordTransform DtTerrainProcessPolygonsBox::transform ( ) const
protectedvirtual
virtual void DtTerrainProcessPolygonsBox::clearTopoData ( )
protectedvirtual

Member Data Documentation

const Coordinate_System& DtTerrainProcessPolygonsBox::myLocal
protected
bool DtTerrainProcessPolygonsBox::myIsUseAllTerrain
protected
DtPoint DtTerrainProcessPolygonsBox::myNorthwest
protected
DtPoint DtTerrainProcessPolygonsBox::myNortheast
protected
DtPoint DtTerrainProcessPolygonsBox::mySouthwest
protected
DtPoint DtTerrainProcessPolygonsBox::mySoutheast
protected
double DtTerrainProcessPolygonsBox::myMinAltitude
protected
double DtTerrainProcessPolygonsBox::myMaxAltitude
protected
boost::optional<DtPoint> DtTerrainProcessPolygonsBox::myNorthwestTopo
mutableprotected
boost::optional<DtPoint> DtTerrainProcessPolygonsBox::myNortheastTopo
mutableprotected
boost::optional<DtPoint> DtTerrainProcessPolygonsBox::mySouthwestTopo
mutableprotected
boost::optional<DtPoint> DtTerrainProcessPolygonsBox::mySoutheastTopo
mutableprotected
boost::optional<DtPoint> DtTerrainProcessPolygonsBox::myTopoAABBMin
mutableprotected
boost::optional<DtPoint> DtTerrainProcessPolygonsBox::myTopoAABBMax
mutableprotected
boost::optional<DtCoordTransform> DtTerrainProcessPolygonsBox::myTransform
mutableprotected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)