Mantid
|
#include <ConvexPolygon.h>
Public Member Functions | |
PolygonEdge | edge () const |
Create a directed edge between this and the next point. More... | |
Iterator (const ConvexPolygon &polygon) | |
Constructor. More... | |
const Kernel::V2D & | operator* () const |
Dereference operator. More... | |
void | operator++ () |
Prefix increment operator. More... | |
Private Member Functions | |
size_t | nextIndex () const |
Compute the next index. More... | |
Private Attributes | |
size_t | m_index |
const ConvexPolygon & | m_polygon |
Definition at line 45 of file ConvexPolygon.h.
Mantid::Geometry::ConvexPolygon::Iterator::Iterator | ( | const ConvexPolygon & | polygon | ) |
Constructor.
polygon | A reference to the initializing polygon |
Definition at line 22 of file ConvexPolygonIterator.cpp.
References Mantid::Geometry::ConvexPolygon::isValid().
PolygonEdge Mantid::Geometry::ConvexPolygon::Iterator::edge | ( | ) | const |
Create a directed edge between this and the next point.
Definition at line 42 of file ConvexPolygonIterator.cpp.
Referenced by Mantid::Geometry::intersection().
|
private |
Compute the next index.
Definition at line 48 of file ConvexPolygonIterator.cpp.
const Kernel::V2D & Mantid::Geometry::ConvexPolygon::Iterator::operator* | ( | ) | const |
Dereference operator.
Definition at line 31 of file ConvexPolygonIterator.cpp.
void Mantid::Geometry::ConvexPolygon::Iterator::operator++ | ( | ) |
Prefix increment operator.
Advance the iterator to the next point.
When the iterator points to the last point the next increment will take it back to the "first" point.
Definition at line 37 of file ConvexPolygonIterator.cpp.
|
private |
Definition at line 62 of file ConvexPolygon.h.
|
private |
Definition at line 61 of file ConvexPolygon.h.