#include <QhullPoint.h>
Classes | |
struct | PrintPoint |
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 | |
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 |
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... | |
Iterators | |
typedef coordT * | base_type |
typedef QhullPoint::iterator | Iterator |
typedef QhullPoint::const_iterator | ConstIterator |
const typedef coordT * | iterator |
const typedef coordT * | const_iterator |
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 39 of file QhullPoint.h.
typedef coordT* orgQhull::QhullPoint::base_type |
Definition at line 43 of file QhullPoint.h.
Definition at line 47 of file QhullPoint.h.
Definition at line 46 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 62 of file QhullPoint.h.
|
inline |
Definition at line 63 of file QhullPoint.h.
|
explicit |
Definition at line 32 of file QhullPoint.cpp.
Definition at line 40 of file QhullPoint.cpp.
orgQhull::QhullPoint::QhullPoint | ( | const Qhull & | q, |
Coordinates & | c | ||
) |
QhullPoint of Coordinates with point_dimension==c.count()
Definition at line 58 of file QhullPoint.cpp.
Definition at line 49 of file QhullPoint.cpp.
|
inlineexplicit |
Definition at line 68 of file QhullPoint.h.
Definition at line 69 of file QhullPoint.h.
|
inline |
Definition at line 70 of file QhullPoint.h.
Definition at line 71 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 73 of file QhullPoint.h.
|
inline |
Definition at line 76 of file QhullPoint.h.
|
inline |
Definition at line 118 of file QhullPoint.h.
|
inline |
Definition at line 108 of file QhullPoint.h.
|
inline |
Definition at line 109 of file QhullPoint.h.
|
inline |
Definition at line 110 of file QhullPoint.h.
|
inline |
Definition at line 111 of file QhullPoint.h.
|
inline |
Definition at line 112 of file QhullPoint.h.
|
inline |
Definition at line 92 of file QhullPoint.h.
|
inline |
Definition at line 93 of file QhullPoint.h.
|
inline |
Definition at line 94 of file QhullPoint.h.
|
inline |
Definition at line 95 of file QhullPoint.h.
double orgQhull::QhullPoint::distance | ( | const QhullPoint & | p | ) | const |
Return distance between two points.
Definition at line 123 of file QhullPoint.cpp.
|
inline |
Definition at line 113 of file QhullPoint.h.
|
inline |
Definition at line 114 of file QhullPoint.h.
|
inline |
Definition at line 96 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 100 of file QhullPoint.h.
|
inline |
Creates an alias. Does not make a deep copy of the point. Needed for vector<QhullPoint>
Definition at line 75 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 89 of file QhullPoint.cpp.
|
inline |
Definition at line 129 of file QhullPoint.h.
|
inline |
Definition at line 130 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 |
Definition at line 115 of file QhullPoint.h.
std::vector< coordT > orgQhull::QhullPoint::toStdVector | ( | ) | const |
Definition at line 71 of file QhullPoint.cpp.
const typedef coordT* orgQhull::QhullPoint::const_iterator |
Definition at line 45 of file QhullPoint.h.
const typedef coordT* orgQhull::QhullPoint::iterator |
Definition at line 44 of file QhullPoint.h.
|
protected |
Pointer to first coordinate, 0 if undefined.
Definition at line 51 of file QhullPoint.h.
|
protected |
Default dimension is qh_qh->hull_dim.
Definition at line 55 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 52 of file QhullPoint.h.