#include <QhullPoint.h>
Classes | |
struct | PrintPoint |
Public Types | |
Iterators | |
typedef coordT * | base_type |
typedef const coordT * | iterator |
typedef const coordT * | const_iterator |
typedef QhullPoint::iterator | Iterator |
typedef QhullPoint::const_iterator | ConstIterator |
Public Member Functions | |
Constructors | |
QhullPoint () | |
QhullPoint (int pointDimension, coordT *c) | |
QhullPoint (const Qhull &q) | |
QhullPoint (const Qhull &q, coordT *c) | |
QhullPoint (const Qhull &q, Coordinates &c) | |
QhullPoint of Coordinates with point_dimension==c.count() More... | |
QhullPoint (const Qhull &q, int pointDimension, coordT *c) | |
QhullPoint (QhullQh *qqh) | |
QhullPoint (QhullQh *qqh, coordT *c) | |
QhullPoint (QhullQh *qqh, Coordinates &c) | |
QhullPoint (QhullQh *qqh, int pointDimension, coordT *c) | |
QhullPoint (const QhullPoint &other) | |
Creates an alias. Does not make a deep copy of the point. Needed for return by value and parameter passing. More... | |
QhullPoint & | operator= (const QhullPoint &other) |
Creates an alias. Does not make a deep copy of the point. Needed for vector<QhullPoint> More... | |
~QhullPoint () | |
Conversions | |
std::vector< coordT > | toStdVector () const |
GetSet | |
const coordT * | coordinates () const |
0 if undefined More... | |
coordT * | coordinates () |
0 if undefined More... | |
void | defineAs (coordT *c) |
void | defineAs (int pointDimension, coordT *c) |
void | defineAs (QhullPoint &other) |
int | dimension () const |
coordT * | getBaseT () const |
countT | id () const |
bool | isValid () const |
bool | operator== (const QhullPoint &other) const |
bool | operator!= (const QhullPoint &other) const |
const coordT & | operator[] (int idx) const |
0 to hull_dim-1 More... | |
coordT & | operator[] (int idx) |
0 to hull_dim-1 More... | |
QhullQh * | qh () |
void | setCoordinates (coordT *c) |
void | setDimension (int pointDimension) |
foreach | |
iterator | begin () |
const_iterator | begin () const |
const_iterator | constBegin () const |
const_iterator | constEnd () const |
int | count () |
iterator | end () |
const_iterator | end () const |
size_t | size () |
Methods | |
void | advancePoint (countT idx) |
double | distance (const QhullPoint &p) const |
Return distance between two points. More... | |
IO | |
PrintPoint | print (const char *message) const |
PrintPoint | printWithIdentifier (const char *message) const |
Protected Attributes | |
Fields | |
coordT * | point_coordinates |
Pointer to first coordinate, 0 if undefined. More... | |
QhullQh * | qh_qh |
int | point_dimension |
Default dimension is qh_qh->hull_dim. More... | |
A QhullPoint is a dimension and an array of coordinates. With Qhull/QhullQh, a QhullPoint has an identifier. Point equality is relative to qh.distanceEpsilon
Definition at line 33 of file QhullPoint.h.
typedef coordT* orgQhull::QhullPoint::base_type |
Definition at line 37 of file QhullPoint.h.
typedef const coordT* orgQhull::QhullPoint::const_iterator |
Definition at line 39 of file QhullPoint.h.
Definition at line 41 of file QhullPoint.h.
typedef const coordT* orgQhull::QhullPoint::iterator |
Definition at line 38 of file QhullPoint.h.
Definition at line 40 of file QhullPoint.h.
|
inline |
QhullPoint, PointCoordinates, and QhullPoints have similar constructors If Qhull/QhullQh is not initialized, then QhullPoint.dimension() is zero unless explicitly set Cannot define QhullPoints(int pointDimension) since it is ambiguous with QhullPoints(QhullQh *qqh)
Definition at line 56 of file QhullPoint.h.
|
inline |
Definition at line 57 of file QhullPoint.h.
|
explicit |
Definition at line 26 of file QhullPoint.cpp.
Definition at line 34 of file QhullPoint.cpp.
orgQhull::QhullPoint::QhullPoint | ( | const Qhull & | q, |
Coordinates & | c | ||
) |
QhullPoint of Coordinates with point_dimension==c.count()
Definition at line 52 of file QhullPoint.cpp.
Definition at line 43 of file QhullPoint.cpp.
|
inlineexplicit |
Definition at line 62 of file QhullPoint.h.
Definition at line 63 of file QhullPoint.h.
|
inline |
Definition at line 64 of file QhullPoint.h.
Definition at line 65 of file QhullPoint.h.
|
inline |
Creates an alias. Does not make a deep copy of the point. Needed for return by value and parameter passing.
Definition at line 67 of file QhullPoint.h.
|
inline |
Definition at line 70 of file QhullPoint.h.
|
inline |
Definition at line 112 of file QhullPoint.h.
|
inline |
Definition at line 102 of file QhullPoint.h.
|
inline |
Definition at line 103 of file QhullPoint.h.
|
inline |
Definition at line 104 of file QhullPoint.h.
|
inline |
Definition at line 105 of file QhullPoint.h.
|
inline |
0 if undefined
Definition at line 84 of file QhullPoint.h.
|
inline |
0 if undefined
Definition at line 85 of file QhullPoint.h.
|
inline |
Definition at line 106 of file QhullPoint.h.
|
inline |
Definition at line 86 of file QhullPoint.h.
|
inline |
Definition at line 87 of file QhullPoint.h.
|
inline |
Definition at line 88 of file QhullPoint.h.
|
inline |
Definition at line 89 of file QhullPoint.h.
double orgQhull::QhullPoint::distance | ( | const QhullPoint & | p | ) | const |
Return distance between two points.
Definition at line 117 of file QhullPoint.cpp.
|
inline |
Definition at line 107 of file QhullPoint.h.
|
inline |
Definition at line 108 of file QhullPoint.h.
|
inline |
Definition at line 90 of file QhullPoint.h.
|
inline |
Definition at line 91 of file QhullPoint.h.
|
inline |
Definition at line 92 of file QhullPoint.h.
|
inline |
Definition at line 94 of file QhullPoint.h.
|
inline |
Creates an alias. Does not make a deep copy of the point. Needed for vector<QhullPoint>
Definition at line 69 of file QhullPoint.h.
bool orgQhull::QhullPoint::operator== | ( | const QhullPoint & | other | ) | const |
QhullPoint is equal if it has the same address and dimension If !qh_qh, returns true if dimension and coordinates are equal If qh_qh, returns true if the distance between points is less than qh_qh->distanceEpsilon()
Definition at line 83 of file QhullPoint.cpp.
|
inline |
0 to hull_dim-1
Definition at line 95 of file QhullPoint.h.
|
inline |
0 to hull_dim-1
Definition at line 96 of file QhullPoint.h.
|
inline |
Definition at line 123 of file QhullPoint.h.
|
inline |
Definition at line 124 of file QhullPoint.h.
|
inline |
Definition at line 97 of file QhullPoint.h.
|
inline |
Definition at line 98 of file QhullPoint.h.
|
inline |
Definition at line 99 of file QhullPoint.h.
|
inline |
Definition at line 109 of file QhullPoint.h.
std::vector< coordT > orgQhull::QhullPoint::toStdVector | ( | ) | const |
Definition at line 65 of file QhullPoint.cpp.
|
protected |
Pointer to first coordinate, 0 if undefined.
Definition at line 45 of file QhullPoint.h.
|
protected |
Default dimension is qh_qh->hull_dim.
Definition at line 49 of file QhullPoint.h.
|
protected |
qhT for this instance of Qhull. 0 if undefined. operator==() returns true if points within sqrt(qh_qh->distanceEpsilon()) If !qh_qh, id() is -3, and operator==() requires equal coordinates
Definition at line 46 of file QhullPoint.h.