Java-style iterator. More...
#include <QhullPoints.h>
Classes | |
class | const_iterator |
class | iterator |
struct | PrintPoints |
Public Types | |
Subtypes | |
typedef QhullPoints::const_iterator | ConstIterator |
typedef QhullPoints::iterator | Iterator |
Public Member Functions | |
Construct | |
QhullPoints () | |
QhullPoints (int pointDimension, countT coordinateCount2, coordT *c) | |
QhullPoints (const Qhull &q) | |
QhullPoints (const Qhull &q, countT coordinateCount2, coordT *c) | |
QhullPoints (const Qhull &q, int pointDimension, countT coordinateCount2, coordT *c) | |
QhullPoints (QhullQh *qqh) | |
QhullPoints (QhullQh *qqh, countT coordinateCount2, coordT *c) | |
QhullPoints (QhullQh *qqh, int pointDimension, countT coordinateCount2, coordT *c) | |
QhullPoints (const QhullPoints &other) | |
Copy constructor copies pointers but not contents. Needed for return by value and parameter passing. More... | |
QhullPoints & | operator= (const QhullPoints &other) |
~QhullPoints () | |
Conversion | |
std::vector< QhullPoint > | toStdVector () const |
GetSet | |
const QhullPoint | at (countT idx) const |
const QhullPoint | back () const |
QhullPoint | back () |
ConstIterator | begin () const |
Iterator | begin () |
ConstIterator | constBegin () const |
const coordT * | constData () const |
ConstIterator | constEnd () const |
coordT * | coordinates () const |
countT | coordinateCount () const |
countT | count () const |
const coordT * | data () const |
coordT * | data () |
void | defineAs (int pointDimension, countT coordinatesCount, coordT *c) |
void | defineAs (countT coordinatesCount, coordT *c) |
void | defineAs (const QhullPoints &other) |
int | dimension () const |
ConstIterator | end () const |
Iterator | end () |
coordT * | extraCoordinates () const |
countT | extraCoordinatesCount () const |
const QhullPoint | first () const |
QhullPoint | first () |
const QhullPoint | front () const |
QhullPoint | front () |
bool | includesCoordinates (const coordT *c) const |
bool | isEmpty () const |
const QhullPoint | last () const |
QhullPoint | last () |
bool | operator== (const QhullPoints &other) const |
bool | operator!= (const QhullPoints &other) const |
QhullPoint | operator[] (countT idx) const |
QhullQh * | qh () const |
void | resetQhullQh (QhullQh *qqh) |
void | setDimension (int d) |
size_t | size () const |
QhullPoint | value (countT idx) const |
QhullPoint | value (countT idx, QhullPoint &defaultValue) const |
Methods | |
bool | contains (const QhullPoint &t) const |
countT | count (const QhullPoint &t) const |
countT | indexOf (const coordT *pointCoordinates) const |
countT | indexOf (const coordT *pointCoordinates, int noThrow) const |
countT | indexOf (const QhullPoint &t) const |
countT | lastIndexOf (const QhullPoint &t) const |
QhullPoints | mid (countT idx, countT length=-1) const |
Returns a subset of the points, not a copy. More... | |
IO | |
PrintPoints | print (const char *message) const |
PrintPoints | printWithIdentifier (const char *message) const |
Private Attributes | |
Fields | |
coordT * | point_first |
First coordinate of an array of points of point_dimension. More... | |
coordT * | point_end |
End of point coordinates (end>=first). Trailing coordinates ignored. More... | |
QhullQh * | qh_qh |
int | point_dimension |
Dimension, >=0. More... | |
Java-style iterator.
QhullPoints are an array of QhullPoint as pointers into an array of coordinates. For Qhull/QhullQh, QhullPoints must use hull_dim. Can change QhullPoint to input_dim if needed for Delaunay input site
Definition at line 28 of file QhullPoints.h.
Definition at line 41 of file QhullPoints.h.
Definition at line 43 of file QhullPoints.h.
|
inline |
QhullPoint, PointCoordinates, and QhullPoints have similar constructors If Qhull/QhullQh is not initialized, then QhullPoints.dimension() is zero unless explicitly set Cannot define QhullPoints(int pointDimension) since it is ambiguous with QhullPoints(QhullQh *qqh)
Definition at line 49 of file QhullPoints.h.
|
inline |
Definition at line 50 of file QhullPoints.h.
|
explicit |
Definition at line 27 of file QhullPoints.cpp.
Definition at line 36 of file QhullPoints.cpp.
orgQhull::QhullPoints::QhullPoints | ( | const Qhull & | q, |
int | pointDimension, | ||
countT | coordinateCount2, | ||
coordT * | c | ||
) |
Definition at line 47 of file QhullPoints.cpp.
|
inlineexplicit |
Definition at line 54 of file QhullPoints.h.
Definition at line 55 of file QhullPoints.h.
orgQhull::QhullPoints::QhullPoints | ( | QhullQh * | qqh, |
int | pointDimension, | ||
countT | coordinateCount2, | ||
coordT * | c | ||
) |
Definition at line 58 of file QhullPoints.cpp.
|
inline |
Copy constructor copies pointers but not contents. Needed for return by value and parameter passing.
Definition at line 58 of file QhullPoints.h.
|
inline |
Definition at line 60 of file QhullPoints.h.
|
inline |
Definition at line 75 of file QhullPoints.h.
|
inline |
Definition at line 77 of file QhullPoints.h.
|
inline |
Definition at line 78 of file QhullPoints.h.
|
inline |
Definition at line 79 of file QhullPoints.h.
|
inline |
Definition at line 80 of file QhullPoints.h.
|
inline |
Definition at line 81 of file QhullPoints.h.
|
inline |
Definition at line 82 of file QhullPoints.h.
|
inline |
Definition at line 83 of file QhullPoints.h.
bool orgQhull::QhullPoints::contains | ( | const QhullPoint & | t | ) | const |
Definition at line 165 of file QhullPoints.cpp.
|
inline |
Definition at line 85 of file QhullPoints.h.
|
inline |
Definition at line 84 of file QhullPoints.h.
|
inline |
Definition at line 86 of file QhullPoints.h.
countT orgQhull::QhullPoints::count | ( | const QhullPoint & | t | ) | const |
Definition at line 178 of file QhullPoints.cpp.
|
inline |
Definition at line 87 of file QhullPoints.h.
|
inline |
Definition at line 88 of file QhullPoints.h.
|
inline |
Definition at line 89 of file QhullPoints.h.
Definition at line 90 of file QhullPoints.h.
|
inline |
Definition at line 91 of file QhullPoints.h.
|
inline |
Definition at line 92 of file QhullPoints.h.
|
inline |
Definition at line 93 of file QhullPoints.h.
|
inline |
Definition at line 94 of file QhullPoints.h.
|
inline |
Definition at line 95 of file QhullPoints.h.
countT orgQhull::QhullPoints::extraCoordinatesCount | ( | ) | const |
Definition at line 87 of file QhullPoints.cpp.
|
inline |
Definition at line 98 of file QhullPoints.h.
|
inline |
Definition at line 99 of file QhullPoints.h.
|
inline |
Definition at line 101 of file QhullPoints.h.
|
inline |
Definition at line 102 of file QhullPoints.h.
|
inline |
Definition at line 103 of file QhullPoints.h.
Definition at line 192 of file QhullPoints.cpp.
Definition at line 207 of file QhullPoints.cpp.
countT orgQhull::QhullPoints::indexOf | ( | const QhullPoint & | t | ) | const |
Definition at line 220 of file QhullPoints.cpp.
|
inline |
Definition at line 104 of file QhullPoints.h.
|
inline |
Definition at line 106 of file QhullPoints.h.
|
inline |
Definition at line 107 of file QhullPoints.h.
countT orgQhull::QhullPoints::lastIndexOf | ( | const QhullPoint & | t | ) | const |
Definition at line 235 of file QhullPoints.cpp.
QhullPoints orgQhull::QhullPoints::mid | ( | countT | idx, |
countT | length = -1 |
||
) | const |
Returns a subset of the points, not a copy.
Definition at line 250 of file QhullPoints.cpp.
|
inline |
Definition at line 109 of file QhullPoints.h.
|
inline |
Definition at line 59 of file QhullPoints.h.
bool orgQhull::QhullPoints::operator== | ( | const QhullPoints & | other | ) | const |
QhullPoints is equal if the same address, or if the coordinates are identical Use QhullPoint.operator==() for DISTround equality
Definition at line 98 of file QhullPoints.cpp.
|
inline |
Definition at line 110 of file QhullPoints.h.
|
inline |
Definition at line 231 of file QhullPoints.h.
|
inline |
Definition at line 232 of file QhullPoints.h.
|
inline |
Definition at line 111 of file QhullPoints.h.
void orgQhull::QhullPoints::resetQhullQh | ( | QhullQh * | qqh | ) |
Reset QhullPoints to QhullQh and its hullDimension() Does not free up old qh_qh
Definition at line 132 of file QhullPoints.cpp.
|
inline |
Definition at line 113 of file QhullPoints.h.
|
inline |
Definition at line 114 of file QhullPoints.h.
std::vector< QhullPoint > orgQhull::QhullPoints::toStdVector | ( | ) | const |
Definition at line 73 of file QhullPoints.cpp.
QhullPoint orgQhull::QhullPoints::value | ( | countT | idx | ) | const |
Definition at line 141 of file QhullPoints.cpp.
QhullPoint orgQhull::QhullPoints::value | ( | countT | idx, |
QhullPoint & | defaultValue | ||
) | const |
Definition at line 151 of file QhullPoints.cpp.
|
private |
Dimension, >=0.
Definition at line 36 of file QhullPoints.h.
|
private |
End of point coordinates (end>=first). Trailing coordinates ignored.
Definition at line 33 of file QhullPoints.h.
|
private |
First coordinate of an array of points of point_dimension.
Definition at line 32 of file QhullPoints.h.
|
private |
Maybe initialized NULL to allow ownership by RboxPoints qh_qh used for QhullPoint() and qh_qh->hull_dim in constructor
Definition at line 34 of file QhullPoints.h.