h o m e | d o c u m e n t a t i o n | c l a s s h i e r a r c h y |
#include <ChainingIterators.h>
Inheritance diagram for ChainingIterator:
Public Member Functions | |
ChainingIterator (bool iRestrictToSelection=true, bool iRestrictToUnvisited=true, ViewEdge *begin=0, bool orientation=true) | |
ChainingIterator (const ChainingIterator &brother) | |
virtual string | getExactTypeName () const |
virtual void | init () |
virtual ViewEdge * | traverse (const AdjacencyIterator &it) |
ViewVertex * | getVertex () |
bool | isIncrementing () const |
virtual void | increment () |
virtual void | decrement () |
ChainingIterator | ( | bool | iRestrictToSelection = true , |
|
bool | iRestrictToUnvisited = true , |
|||
ViewEdge * | begin = 0 , |
|||
bool | orientation = true | |||
) | [inline] |
Builds a Chaining Iterator from the first ViewEdge used for iteration and its orientation.
iRestrictToSelection | Indicates whether to force the chaining to stay within the set of selected ViewEdges or not. | |
iRestrictToUnvisited | Indicates whether a ViewEdge that has already been chained must be ignored ot not. | |
begin | The ViewEdge from which to start the chain. | |
orientation | The direction to follow to explore the graph. If true, the direction indicated by the first ViewEdge is used. |
ChainingIterator | ( | const ChainingIterator & | brother | ) | [inline] |
Copy constructor
virtual string getExactTypeName | ( | ) | const [inline, virtual] |
Returns the string "ChainingIterator"
Reimplemented from ViewEdgeIterator.
Reimplemented in ChainSilhouetteIterator, and ChainPredicateIterator.
virtual void init | ( | ) | [inline, virtual] |
Inits the iterator context. This method is called each time a new chain is started. It can be used to reset some history information that you might want to keep.
virtual ViewEdge* traverse | ( | const AdjacencyIterator & | it | ) | [inline, virtual] |
This method iterates over the potential next ViewEdges and returns the one that will be followed next. returns the next ViewEdge to follow or 0 when the end of the chain is reached.
it | The iterator over the ViewEdges adjacent to the end vertex of the current ViewEdge. The Adjacency iterator reflects the restriction rules by only iterating over the valid ViewEdges. |
Reimplemented in ChainSilhouetteIterator, and ChainPredicateIterator.
ViewVertex* getVertex | ( | ) | [inline] |
Returns the vertex which is the next crossing
bool isIncrementing | ( | ) | const [inline] |
Returns true if the current iteration is an incrementation
virtual void increment | ( | ) | [virtual] |
increments.
Reimplemented from ViewEdgeIterator.
virtual void decrement | ( | ) | [virtual] |
decrements.
Reimplemented from ViewEdgeIterator.