VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
DtVertexList Class Reference

class DtVertexList: More...

Inheritance diagram for DtVertexList:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtVertexList ()
 default constructor
 DtVertexList (const DtString &name, DtReaderWriterRegistry *parentRegistry=0)
 constructor
virtual ~DtVertexList ()
 destructor
virtual DtRwVectoroperator[] (unsigned index) const
virtual int index (const DtListItem *entry) const
virtual const DtRwVectorIteratorwiterator () const
virtual double distSquaredTo (const DtVector &point) const
 Returns the squared distance to this.
virtual bool getClosestVertex (const DtVector &point, DtVector &vertex) const
 Sets vertex to be the vertex closest to point in this object geometry.
virtual DtListItem * getClosestVertex (const DtVector &point) const
 Returns a pointer to the item in this list which is closestto point.
virtual bool getClosestLine (const DtVector &point, DtVector &linePt1, DtVector &linePt2) const
 Sets linePt1 and linePt2 to be the vertices of the line closest to point in this object geometry.
virtual void translate (const DtVector &offset)
 Adds the given offset vector to each vertex in the list.
virtual void copyList (const DtVertexList &)
 Deep copy of target list. Appends to existing list items.

Static Public Member Functions

static double distanceSquaredPointToLine (const DtVector &point, const DtVector &linePt1, const DtVector &linePt2)
 Returns the distance^2 from point to linePt1-linePt2.
static double distanceSquaredPointToPoint (const DtVector &point1, const DtVector &point2)
 Returns the distance^2 from point1 to point2.

Protected Member Functions

virtual DtlObjPtr getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings)
 Constructs a DtTreeNode item, and then retrieves it from the stream.

Protected Attributes

DtRwVectorIteratormyVertexIterator

Private Member Functions

 DtVertexList (const DtVertexList &orig)
 copy constructor Not implemented.
DtVertexListoperator= (const DtVertexList &orig)
 assignment operator Not implemented.

Detailed Description

class DtVertexList:

Instances of DtVertexList are lists of RwVector vertices.


Constructor & Destructor Documentation

default constructor

DtVertexList::DtVertexList ( const DtString name,
DtReaderWriterRegistry parentRegistry = 0 
)

constructor

virtual DtVertexList::~DtVertexList ( ) [virtual]

destructor

DtVertexList::DtVertexList ( const DtVertexList orig) [private]

copy constructor Not implemented.

Do not call.


Member Function Documentation

virtual DtRwVector& DtVertexList::operator[] ( unsigned  index) const [virtual]
virtual int DtVertexList::index ( const DtListItem *  entry) const [virtual]
virtual const DtRwVectorIterator& DtVertexList::witerator ( ) const [virtual]
virtual double DtVertexList::distSquaredTo ( const DtVector point) const [virtual]

Returns the squared distance to this.

if this has more than two vertices (ie. more than one line segment), acts on the closest line segment.

virtual bool DtVertexList::getClosestVertex ( const DtVector point,
DtVector vertex 
) const [virtual]

Sets vertex to be the vertex closest to point in this object geometry.

Referenced by DtLocalVectorIterator::setToClosest(), and DtRwVectorIterator::setToClosest().

virtual DtListItem* DtVertexList::getClosestVertex ( const DtVector point) const [virtual]

Returns a pointer to the item in this list which is closestto point.

virtual bool DtVertexList::getClosestLine ( const DtVector point,
DtVector linePt1,
DtVector linePt2 
) const [virtual]

Sets linePt1 and linePt2 to be the vertices of the line closest to point in this object geometry.

virtual void DtVertexList::translate ( const DtVector offset) [virtual]

Adds the given offset vector to each vertex in the list.

virtual void DtVertexList::copyList ( const DtVertexList ) [virtual]

Deep copy of target list. Appends to existing list items.

static double DtVertexList::distanceSquaredPointToLine ( const DtVector point,
const DtVector linePt1,
const DtVector linePt2 
) [static]

Returns the distance^2 from point to linePt1-linePt2.

static double DtVertexList::distanceSquaredPointToPoint ( const DtVector point1,
const DtVector point2 
) [static]

Returns the distance^2 from point1 to point2.

virtual DtlObjPtr DtVertexList::getData ( DtlObjPtr  args,
const DtFilename &  searchPath,
const DtVariableBindingsList variableBindings 
) [protected, virtual]

Constructs a DtTreeNode item, and then retrieves it from the stream.

Implements DtRwList.

DtVertexList& DtVertexList::operator= ( const DtVertexList orig) [private]

assignment operator Not implemented.

Do not call.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)