#include <SIG_GeometryIterator.h>
Public Methods | |
SIG_GeometryIterator (SIG_Geometry const *over) | |
Constructor. More... | |
~SIG_GeometryIterator (void) | |
Destructor. More... | |
bool | valid (void) const |
Is there another polygon? More... | |
operator bool (void) const | |
Convenient version of the valid() function. More... | |
SIG_Polygon const& | current (void) const |
Returns the current polygon. More... | |
void | next (void) |
This will make the iterator move over to the next polygon. More... | |
SIG_Polygon const& | iterate (void) |
Returns the current polygon and moves over to the next. More... | |
Private Attributes | |
SIG_Geometry const* | iterating |
int | iteration |
Simply create the object saying which geometry you want to iterate over, then you can say "iterate()" while "valid()" returns true. Each time you say "iterate()" you will get another polygon.
You will find an example of how to use the iterator in the header file.
Definition at line 21 of file SIG_GeometryIterator.h.
|
Constructor.
Definition at line 4 of file SIG_GeometryIterator.cpp. |
|
Destructor.
Definition at line 9 of file SIG_GeometryIterator.cpp. |
|
Returns the current polygon.
Definition at line 17 of file SIG_GeometryIterator.cpp. Referenced by SIGEL_Visualisation::SIG_RobotRenderer::buildDisplayLists(). |
|
Returns the current polygon and moves over to the next.
Definition at line 58 of file SIG_GeometryIterator.h. |
|
This will make the iterator move over to the next polygon.
Definition at line 22 of file SIG_GeometryIterator.cpp. Referenced by SIGEL_Visualisation::SIG_RobotRenderer::buildDisplayLists(). |
|
Convenient version of the valid() function.
Definition at line 46 of file SIG_GeometryIterator.h. |
|
Is there another polygon?
Definition at line 12 of file SIG_GeometryIterator.cpp. Referenced by SIGEL_Visualisation::SIG_RobotRenderer::buildDisplayLists(). |
|
Definition at line 23 of file SIG_GeometryIterator.h. |
|
Definition at line 24 of file SIG_GeometryIterator.h. |