#include <PointCoordinates.h>
Public Member Functions | |
Construct | |
Comment describing PointCoordinates | |
PointCoordinates () | |
PointCoordinates (const std::string &aComment) | |
PointCoordinates (int pointDimension, const std::string &aComment) | |
PointCoordinates (const Qhull &q) | |
Qhull/QhullQh used for dimension() and QhullPoint equality. More... | |
PointCoordinates (const Qhull &q, const std::string &aComment) | |
PointCoordinates (const Qhull &q, int pointDimension, const std::string &aComment) | |
PointCoordinates (const Qhull &q, int pointDimension, const std::string &aComment, countT coordinatesCount, const coordT *c) | |
PointCoordinates (QhullQh *qqh) | |
Use append() and appendPoints() for Coordinates and vector<coordT> More... | |
PointCoordinates (QhullQh *qqh, const std::string &aComment) | |
PointCoordinates (QhullQh *qqh, int pointDimension, const std::string &aComment) | |
PointCoordinates (QhullQh *qqh, int pointDimension, const std::string &aComment, countT coordinatesCount, const coordT *c) | |
PointCoordinates (const PointCoordinates &other) | |
Use append() and appendPoints() for Coordinates and vector<coordT> More... | |
PointCoordinates & | operator= (const PointCoordinates &other) |
~PointCoordinates () | |
Convert | |
void | append (const std::vector< coordT > &otherCoordinates) |
QhullPoints coordinates, constData, data, count, size. More... | |
std::vector< coordT > | toStdVector () const |
Foreach | |
See QhullPoints for at, back, first, front, last, mid, [], value | |
Coordinates::ConstIterator | beginCoordinates () const |
See QhullPoints for begin, constBegin, end. More... | |
Coordinates::Iterator | beginCoordinates () |
Coordinates::ConstIterator | beginCoordinates (countT pointIndex) const |
Coordinates::Iterator | beginCoordinates (countT pointIndex) |
Coordinates::ConstIterator | endCoordinates () const |
Coordinates::Iterator | endCoordinates () |
Modify | |
void | append (countT coordinatesCount, const coordT *c) |
void | append (const coordT &c) |
Dimension previously defined. More... | |
void | append (const QhullPoint &p) |
Dimension previously defined. More... | |
void | append (const Coordinates &c) |
See convert for std::vector and QList. More... | |
void | append (const PointCoordinates &other) |
void | appendComment (const std::string &s) |
void | appendPoints (std::istream &in) |
PointCoordinates & | operator+= (const PointCoordinates &other) |
PointCoordinates & | operator+= (const coordT &c) |
PointCoordinates & | operator+= (const QhullPoint &p) |
PointCoordinates & | operator<< (const PointCoordinates &other) |
PointCoordinates & | operator<< (const coordT &c) |
PointCoordinates & | operator<< (const QhullPoint &p) |
void | reserveCoordinates (countT newCoordinates) |
Public Member Functions inherited from orgQhull::QhullPoints | |
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 () | |
std::vector< QhullPoint > | toStdVector () const |
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 |
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... | |
PrintPoints | print (const char *message) const |
PrintPoints | printWithIdentifier (const char *message) const |
Private Member Functions | |
Helpers | |
int | indexOffset (int i) const |
Private Attributes | |
Fields | |
Coordinates | point_coordinates |
std::string | describe_points |
GetSet | |
See QhullPoints for contains, count, indexOf, lastIndexOf | |
void | checkValid () const |
See QhullPoints for coordinates, coordinateCount, dimension, empty, isEmpty, ==, !=. More... | |
std::string | comment () const |
void | makeValid () |
const Coordinates & | getCoordinates () const |
void | setComment (const std::string &s) |
void | setDimension (int i) |
PointCoordinates | operator+ (const PointCoordinates &other) const |
void | defineAs (countT coordinatesCount, coordT *c) |
disable QhullPoints.defineAs() More... | |
Additional Inherited Members | |
Public Types inherited from orgQhull::QhullPoints | |
typedef QhullPoints::const_iterator | ConstIterator |
typedef QhullPoints::iterator | Iterator |
Definition at line 32 of file PointCoordinates.h.
orgQhull::PointCoordinates::PointCoordinates | ( | ) |
QhullPoint, PointCoordinates, and QhullPoints have similar constructors If Qhull/QhullQh is not initialized, then dimension()==0 PointCoordinates();
Definition at line 32 of file PointCoordinates.cpp.
|
explicit |
Definition at line 40 of file PointCoordinates.cpp.
orgQhull::PointCoordinates::PointCoordinates | ( | int | pointDimension, |
const std::string & | aComment | ||
) |
Definition at line 48 of file PointCoordinates.cpp.
|
explicit |
Qhull/QhullQh used for dimension() and QhullPoint equality.
Qhull and QhullQh constructors are the same.
Definition at line 58 of file PointCoordinates.cpp.
orgQhull::PointCoordinates::PointCoordinates | ( | const Qhull & | q, |
const std::string & | aComment | ||
) |
Definition at line 66 of file PointCoordinates.cpp.
orgQhull::PointCoordinates::PointCoordinates | ( | const Qhull & | q, |
int | pointDimension, | ||
const std::string & | aComment | ||
) |
Definition at line 74 of file PointCoordinates.cpp.
orgQhull::PointCoordinates::PointCoordinates | ( | const Qhull & | q, |
int | pointDimension, | ||
const std::string & | aComment, | ||
countT | coordinatesCount, | ||
const coordT * | c | ||
) |
Definition at line 83 of file PointCoordinates.cpp.
|
explicit |
Use append() and appendPoints() for Coordinates and vector<coordT>
Definition at line 93 of file PointCoordinates.cpp.
orgQhull::PointCoordinates::PointCoordinates | ( | QhullQh * | qqh, |
const std::string & | aComment | ||
) |
Definition at line 101 of file PointCoordinates.cpp.
orgQhull::PointCoordinates::PointCoordinates | ( | QhullQh * | qqh, |
int | pointDimension, | ||
const std::string & | aComment | ||
) |
Definition at line 109 of file PointCoordinates.cpp.
orgQhull::PointCoordinates::PointCoordinates | ( | QhullQh * | qqh, |
int | pointDimension, | ||
const std::string & | aComment, | ||
countT | coordinatesCount, | ||
const coordT * | c | ||
) |
Definition at line 118 of file PointCoordinates.cpp.
orgQhull::PointCoordinates::PointCoordinates | ( | const PointCoordinates & | other | ) |
Use append() and appendPoints() for Coordinates and vector<coordT>
Definition at line 128 of file PointCoordinates.cpp.
orgQhull::PointCoordinates::~PointCoordinates | ( | ) |
Definition at line 147 of file PointCoordinates.cpp.
|
inline |
QhullPoints coordinates, constData, data, count, size.
Definition at line 65 of file PointCoordinates.h.
Definition at line 191 of file PointCoordinates.cpp.
|
inline |
Dimension previously defined.
Definition at line 108 of file PointCoordinates.h.
void orgQhull::PointCoordinates::append | ( | const QhullPoint & | p | ) |
Dimension previously defined.
Definition at line 212 of file PointCoordinates.cpp.
|
inline |
See convert for std::vector and QList.
Definition at line 111 of file PointCoordinates.h.
void orgQhull::PointCoordinates::append | ( | const PointCoordinates & | other | ) |
Definition at line 205 of file PointCoordinates.cpp.
void orgQhull::PointCoordinates::appendComment | ( | const std::string & | s | ) |
Definition at line 219 of file PointCoordinates.cpp.
void orgQhull::PointCoordinates::appendPoints | ( | std::istream & | in | ) |
Read PointCoordinates from istream. First two numbers are dimension and count. A non-digit starts a rboxCommand. Overwrites describe_points. See qh_readpoints [io.c]
Definition at line 231 of file PointCoordinates.cpp.
|
inline |
See QhullPoints for begin, constBegin, end.
Definition at line 92 of file PointCoordinates.h.
|
inline |
Definition at line 93 of file PointCoordinates.h.
Coordinates::ConstIterator orgQhull::PointCoordinates::beginCoordinates | ( | countT | pointIndex | ) | const |
Definition at line 177 of file PointCoordinates.cpp.
Coordinates::Iterator orgQhull::PointCoordinates::beginCoordinates | ( | countT | pointIndex | ) |
Definition at line 183 of file PointCoordinates.cpp.
void orgQhull::PointCoordinates::checkValid | ( | ) | const |
See QhullPoints for coordinates, coordinateCount, dimension, empty, isEmpty, ==, !=.
Definition at line 153 of file PointCoordinates.cpp.
|
inline |
Definition at line 76 of file PointCoordinates.h.
disable QhullPoints.defineAs()
Definition at line 84 of file PointCoordinates.h.
|
inline |
Definition at line 96 of file PointCoordinates.h.
|
inline |
Definition at line 97 of file PointCoordinates.h.
|
inline |
Definition at line 78 of file PointCoordinates.h.
|
private |
Definition at line 307 of file PointCoordinates.cpp.
|
inline |
Definition at line 77 of file PointCoordinates.h.
PointCoordinates orgQhull::PointCoordinates::operator+ | ( | const PointCoordinates & | other | ) | const |
Definition at line 289 of file PointCoordinates.cpp.
|
inline |
Definition at line 115 of file PointCoordinates.h.
|
inline |
Definition at line 116 of file PointCoordinates.h.
|
inline |
Definition at line 117 of file PointCoordinates.h.
|
inline |
Definition at line 118 of file PointCoordinates.h.
|
inline |
Definition at line 119 of file PointCoordinates.h.
|
inline |
Definition at line 120 of file PointCoordinates.h.
PointCoordinates & orgQhull::PointCoordinates::operator= | ( | const PointCoordinates & | other | ) |
Definition at line 137 of file PointCoordinates.cpp.
void orgQhull::PointCoordinates::reserveCoordinates | ( | countT | newCoordinates | ) |
Definition at line 297 of file PointCoordinates.cpp.
|
inline |
Definition at line 79 of file PointCoordinates.h.
void orgQhull::PointCoordinates::setDimension | ( | int | i | ) |
Definition at line 162 of file PointCoordinates.cpp.
|
inline |
Definition at line 66 of file PointCoordinates.h.
|
private |
std::vector of point coordinates may have extraCoordinates()
Definition at line 38 of file PointCoordinates.h.
|
private |
Definition at line 36 of file PointCoordinates.h.