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

DtDynamicTerrainLine is used to represent a collection of vertices for a linear dynamic terrain object. More...

Inheritance diagram for makVrv::DtDynamicTerrainLine:
Inheritance graph
[legend]

Classes

class  Intersector
 This class is used by the DtDynamicTerrainWorld to determine intersections with this geometry type. More...
 

Public Member Functions

 DtDynamicTerrainLine (const std::vector< DtVector > &vertices)
 CTOR. More...
 
virtual ~DtDynamicTerrainLine ()
 DTOR. More...
 
 DtDynamicTerrainLine ()=delete
 
 DtDynamicTerrainLine (const DtDynamicTerrainLine &copy)=delete
 
DtDynamicTerrainLineoperator= (const DtDynamicTerrainLine &copy)=delete
 
const DtVectoroperator[] (std::size_t index) const
 Get the indexth vertex for this line. More...
 
virtual DtDynamicTerrainGeometryclone () const
 Make a copy of this geometry. More...
 
virtual const std::vector
< DtVector > & 
vertices () const
 Get the vector of all the vertices. More...
 
virtual bool intersects (const DtDynamicTerrainGeometry &geometry) const
 Determine if this line intersects the specified geometry. More...
 
virtual double distanceTo (const DtVector &point) const
 Return the distance from the point to this line (currently returns 0) More...
 
virtual bool isFinite () const
 Check to see that all the vertices are finite numbers. More...
 
virtual void accept (Visitor &visitor) const
 Calls the visitLine() method of the provided visitor. More...
 
- Public Member Functions inherited from makVrv::DtDynamicTerrainGeometry
 DtDynamicTerrainGeometry ()
 Constructor. More...
 
virtual ~DtDynamicTerrainGeometry ()
 Virtual destructor. More...
 
 DtDynamicTerrainGeometry (const DtDynamicTerrainGeometry &copy)=delete
 
DtDynamicTerrainGeometryoperator= (const DtDynamicTerrainGeometry &copy)=delete
 

Protected Attributes

std::vector< DtVectormyVertices
 

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtDynamicTerrainGeometry
static DtDynamicTerrainGeometryUnion (DtDynamicTerrainGeometry *, DtDynamicTerrainGeometry *)
 Factory functions. More...
 
static DtDynamicTerrainGeometryIntersection (DtDynamicTerrainGeometry *, DtDynamicTerrainGeometry *)
 
static DtDynamicTerrainGeometrySphere (const DtVector &center, double radius)
 
static DtDynamicTerrainGeometryPoint (const DtVector &center)
 
static DtDynamicTerrainGeometryLine (const std::vector< DtVector > &vertices)
 

Detailed Description

DtDynamicTerrainLine is used to represent a collection of vertices for a linear dynamic terrain object.

Currently this is used for persistent vehicle tracks. Note that the distance / intersection code is not implemented at this time, since we are currently only using the geometry to interact with the entire terrain object.

Constructor & Destructor Documentation

makVrv::DtDynamicTerrainLine::DtDynamicTerrainLine ( const std::vector< DtVector > &  vertices)

CTOR.

virtual makVrv::DtDynamicTerrainLine::~DtDynamicTerrainLine ( )
virtual

DTOR.

makVrv::DtDynamicTerrainLine::DtDynamicTerrainLine ( )
delete
makVrv::DtDynamicTerrainLine::DtDynamicTerrainLine ( const DtDynamicTerrainLine copy)
delete

Member Function Documentation

DtDynamicTerrainLine& makVrv::DtDynamicTerrainLine::operator= ( const DtDynamicTerrainLine copy)
delete
const DtVector& makVrv::DtDynamicTerrainLine::operator[] ( std::size_t  index) const

Get the indexth vertex for this line.

virtual DtDynamicTerrainGeometry* makVrv::DtDynamicTerrainLine::clone ( ) const
virtual

Make a copy of this geometry.

Implements makVrv::DtDynamicTerrainGeometry.

virtual const std::vector<DtVector>& makVrv::DtDynamicTerrainLine::vertices ( ) const
virtual

Get the vector of all the vertices.

virtual bool makVrv::DtDynamicTerrainLine::intersects ( const DtDynamicTerrainGeometry geometry) const
virtual

Determine if this line intersects the specified geometry.

Implements makVrv::DtDynamicTerrainGeometry.

virtual double makVrv::DtDynamicTerrainLine::distanceTo ( const DtVector point) const
virtual

Return the distance from the point to this line (currently returns 0)

Implements makVrv::DtDynamicTerrainGeometry.

virtual bool makVrv::DtDynamicTerrainLine::isFinite ( ) const
virtual

Check to see that all the vertices are finite numbers.

Implements makVrv::DtDynamicTerrainGeometry.

virtual void makVrv::DtDynamicTerrainLine::accept ( Visitor visitor) const
virtual

Calls the visitLine() method of the provided visitor.

Implements makVrv::DtDynamicTerrainGeometry.

Member Data Documentation

std::vector<DtVector> makVrv::DtDynamicTerrainLine::myVertices
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)