VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Private Member Functions
DtRwVectorIterator Class Reference

File: rwVecIterator.h. More...

Inheritance diagram for DtRwVectorIterator:
Inheritance graph
[legend]

Public Member Functions

 DtRwVectorIterator (const DtList &list)
 Constructor. Supply the DtList to be iterated over.
 DtRwVectorIterator (const DtRwVectorIterator &orig)
 Copy constructor.
virtual ~DtRwVectorIterator ()
bool setToClosest (DtVector point)
 Set this iterator to point to the vertex closest in 2D to point.
- Public Member Functions inherited from DtIteratorBase< DtRwVector >
 DtIteratorBase (const DtList &list)
 Constructor. Supply the DtList to be iterated over.
 DtIteratorBase (const DtIteratorBase &orig)
 Copy constructor.
virtual ~DtIteratorBase ()
virtual unsigned int size () const
virtual bool empty () const
virtual const DtList & list ()
virtual bool reset (bool reverse=false)
 Sets the cursor and the direction of this iterator over the list.
virtual bool reset (DtIteratorLocation location, DtIteratorDirection direction=DtIteratorForward)
 Sets the cursor and the direction of this iterator over the list.
virtual void reverse ()
 Reverses the direction if this iterator. The cursor is not moved.
virtual void setDirection (DtIteratorDirection direction)
 Sets the direction of this iterator. The cursor is not moved.
virtual DtIteratorDirection direction ()
 Returns the current direction of the iterator.
virtual int cursorIndex () const
 Returns current cursor index in list.
virtual void setCursorIndex (int i)
virtual DtRwVectorinternalFirst (bool move=true)
 Returns the first vertex in the list if going DtIteratorForward, and the last vertex if going DtIteratorReverse.
virtual DtRwVectorinternalCurrent () const
 Returns the current vertex. The cursor is not moved.
virtual DtListItem * cursor () const
 Returns the current cursor. Use with caution.
virtual DtRwVectoritemToObject (DtListItem *item, bool move)
virtual DtRwVectorinternalNext (bool move=true)
virtual DtRwVectorinternalLast (bool move=true)
 Returns the last vertex in the list if going DtIteratorForward, and the first vertex if going DtIteratorReverse.
virtual DtRwVectorinternalWrapNext (bool move=true)
 If the cursor is 0, returns 0 (move is ignored in this case).
virtual DtRwVectorinternalPrev (bool move=true)
 If the cursor is 0, returns 0 (move is ignored in this case).
virtual DtRwVectorinternalWrapPrev (bool move=true)
virtual DtRwVectorcurrent ()
virtual DtRwVectorfirst (bool move=true)
virtual DtRwVectornext (bool move=true)
virtual DtRwVectorprev (bool move=true)
virtual DtRwVectorlast (bool move=true)
virtual DtRwVectorwrapNext (bool move=true)
virtual DtRwVectorwrapPrev (bool move=true)
DtRwVectoroperator++ ()
DtRwVectoroperator-- ()

Private Member Functions

 DtRwVectorIterator ()
 Default Constructor. Do not use.
const DtRwVectorIteratoroperator= (const DtRwVectorIterator &orig)
 Assignment Operator.

Additional Inherited Members

- Protected Attributes inherited from DtIteratorBase< DtRwVector >
const DtList & myList
DtListItem * myCursor
DtIteratorDirection myDirection

Detailed Description

File: rwVecIterator.h.

Class: DtRwVectorIterator Description: DtRwVectorIterator is an iterator for iterating over a DtList of DtRwVector pointers (as in a DtVertexList).

Constructor & Destructor Documentation

DtRwVectorIterator::DtRwVectorIterator ( )
private

Default Constructor. Do not use.

DtRwVectorIterator::DtRwVectorIterator ( const DtList &  list)
inline

Constructor. Supply the DtList to be iterated over.

DtRwVectorIterator::DtRwVectorIterator ( const DtRwVectorIterator orig)
inline

Copy constructor.

virtual DtRwVectorIterator::~DtRwVectorIterator ( )
inlinevirtual

Member Function Documentation

const DtRwVectorIterator& DtRwVectorIterator::operator= ( const DtRwVectorIterator orig)
private

Assignment Operator.

bool DtRwVectorIterator::setToClosest ( DtVector  point)
inline

Set this iterator to point to the vertex closest in 2D to point.

Returns true unless the list is empty.

References DtVertexList::getClosestVertex().


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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)