![]() |
VR-Forces 4.1.1 Class Documentation
|
File: rwVecIterator.h. More...

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 DtRwVector * | internalFirst (bool move=true) |
| Returns the first vertex in the list if going DtIteratorForward, and the last vertex if going DtIteratorReverse. | |
| virtual DtRwVector * | internalCurrent () const |
| Returns the current vertex. The cursor is not moved. | |
| virtual DtListItem * | cursor () const |
| Returns the current cursor. Use with caution. | |
| virtual DtRwVector * | itemToObject (DtListItem *item, bool move) |
| virtual DtRwVector * | internalNext (bool move=true) |
| virtual DtRwVector * | internalLast (bool move=true) |
| Returns the last vertex in the list if going DtIteratorForward, and the first vertex if going DtIteratorReverse. | |
| virtual DtRwVector * | internalWrapNext (bool move=true) |
| If the cursor is 0, returns 0 (move is ignored in this case). | |
| virtual DtRwVector * | internalPrev (bool move=true) |
| If the cursor is 0, returns 0 (move is ignored in this case). | |
| virtual DtRwVector * | internalWrapPrev (bool move=true) |
| virtual DtRwVector * | current () |
| virtual DtRwVector * | first (bool move=true) |
| virtual DtRwVector * | next (bool move=true) |
| virtual DtRwVector * | prev (bool move=true) |
| virtual DtRwVector * | last (bool move=true) |
| virtual DtRwVector * | wrapNext (bool move=true) |
| virtual DtRwVector * | wrapPrev (bool move=true) |
| DtRwVector * | operator++ () |
| DtRwVector * | operator-- () |
Private Member Functions | |
| DtRwVectorIterator () | |
| Default Constructor. Do not use. | |
| const DtRwVectorIterator & | operator= (const DtRwVectorIterator &orig) |
| Assignment Operator. | |
Additional Inherited Members | |
Protected Attributes inherited from DtIteratorBase< DtRwVector > | |
| const DtList & | myList |
| DtListItem * | myCursor |
| DtIteratorDirection | myDirection |
File: rwVecIterator.h.
Class: DtRwVectorIterator Description: DtRwVectorIterator is an iterator for iterating over a DtList of DtRwVector pointers (as in a DtVertexList).
|
private |
Default Constructor. Do not use.
|
inline |
Constructor. Supply the DtList to be iterated over.
|
inline |
Copy constructor.
|
inlinevirtual |
|
private |
Assignment Operator.
Set this iterator to point to the vertex closest in 2D to point.
Returns true unless the list is empty.
References DtVertexList::getClosestVertex().