Classes | List of all members
orgQhull::QhullPoint Class Reference

#include <QhullPoint.h>

Inheritance diagram for orgQhull::QhullPoint:
Inheritance graph
[legend]

Classes

struct  PrintPoint
 

Public Types

Iterators
typedef coordTbase_type
 
typedef const coordTiterator
 
typedef const coordTconst_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...
 
QhullPointoperator= (const QhullPoint &other)
 Creates an alias. Does not make a deep copy of the point. Needed for vector<QhullPoint> More...
 
 ~QhullPoint ()
 
Conversions
std::vector< coordTtoStdVector () const
 
GetSet
const coordTcoordinates () const
 0 if undefined More...
 
coordTcoordinates ()
 0 if undefined More...
 
void defineAs (coordT *c)
 
void defineAs (int pointDimension, coordT *c)
 
void defineAs (QhullPoint &other)
 
int dimension () const
 
coordTgetBaseT () const
 
countT id () const
 
bool isValid () const
 
bool operator== (const QhullPoint &other) const
 
bool operator!= (const QhullPoint &other) const
 
const coordToperator[] (int idx) const
 0 to hull_dim-1 More...
 
coordToperator[] (int idx)
 0 to hull_dim-1 More...
 
QhullQhqh ()
 
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
coordTpoint_coordinates
 Pointer to first coordinate, 0 if undefined. More...
 
QhullQhqh_qh
 
int point_dimension
 Default dimension is qh_qh->hull_dim. More...
 

Detailed Description

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.

Member Typedef Documentation

◆ base_type

Definition at line 37 of file QhullPoint.h.

◆ const_iterator

Definition at line 39 of file QhullPoint.h.

◆ ConstIterator

Definition at line 41 of file QhullPoint.h.

◆ iterator

Definition at line 38 of file QhullPoint.h.

◆ Iterator

Definition at line 40 of file QhullPoint.h.

Constructor & Destructor Documentation

◆ QhullPoint() [1/11]

orgQhull::QhullPoint::QhullPoint ( )
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.

◆ QhullPoint() [2/11]

orgQhull::QhullPoint::QhullPoint ( int  pointDimension,
coordT c 
)
inline

Definition at line 57 of file QhullPoint.h.

◆ QhullPoint() [3/11]

orgQhull::QhullPoint::QhullPoint ( const Qhull q)
explicit

Definition at line 26 of file QhullPoint.cpp.

◆ QhullPoint() [4/11]

orgQhull::QhullPoint::QhullPoint ( const Qhull q,
coordT c 
)

Definition at line 34 of file QhullPoint.cpp.

◆ QhullPoint() [5/11]

orgQhull::QhullPoint::QhullPoint ( const Qhull q,
Coordinates c 
)

QhullPoint of Coordinates with point_dimension==c.count()

Definition at line 52 of file QhullPoint.cpp.

◆ QhullPoint() [6/11]

orgQhull::QhullPoint::QhullPoint ( const Qhull q,
int  pointDimension,
coordT c 
)

Definition at line 43 of file QhullPoint.cpp.

◆ QhullPoint() [7/11]

orgQhull::QhullPoint::QhullPoint ( QhullQh qqh)
inlineexplicit

Definition at line 62 of file QhullPoint.h.

◆ QhullPoint() [8/11]

orgQhull::QhullPoint::QhullPoint ( QhullQh qqh,
coordT c 
)
inline

Definition at line 63 of file QhullPoint.h.

◆ QhullPoint() [9/11]

orgQhull::QhullPoint::QhullPoint ( QhullQh qqh,
Coordinates c 
)
inline

Definition at line 64 of file QhullPoint.h.

◆ QhullPoint() [10/11]

orgQhull::QhullPoint::QhullPoint ( QhullQh qqh,
int  pointDimension,
coordT c 
)
inline

Definition at line 65 of file QhullPoint.h.

◆ QhullPoint() [11/11]

orgQhull::QhullPoint::QhullPoint ( const QhullPoint other)
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.

◆ ~QhullPoint()

orgQhull::QhullPoint::~QhullPoint ( )
inline

Definition at line 70 of file QhullPoint.h.

Member Function Documentation

◆ advancePoint()

void orgQhull::QhullPoint::advancePoint ( countT  idx)
inline

Definition at line 112 of file QhullPoint.h.

◆ begin() [1/2]

iterator orgQhull::QhullPoint::begin ( )
inline

Definition at line 102 of file QhullPoint.h.

◆ begin() [2/2]

const_iterator orgQhull::QhullPoint::begin ( ) const
inline

Definition at line 103 of file QhullPoint.h.

◆ constBegin()

const_iterator orgQhull::QhullPoint::constBegin ( ) const
inline

Definition at line 104 of file QhullPoint.h.

◆ constEnd()

const_iterator orgQhull::QhullPoint::constEnd ( ) const
inline

Definition at line 105 of file QhullPoint.h.

◆ coordinates() [1/2]

const coordT* orgQhull::QhullPoint::coordinates ( ) const
inline

0 if undefined

Definition at line 84 of file QhullPoint.h.

◆ coordinates() [2/2]

coordT* orgQhull::QhullPoint::coordinates ( )
inline

0 if undefined

Definition at line 85 of file QhullPoint.h.

◆ count()

int orgQhull::QhullPoint::count ( )
inline

Definition at line 106 of file QhullPoint.h.

◆ defineAs() [1/3]

void orgQhull::QhullPoint::defineAs ( coordT c)
inline

Definition at line 86 of file QhullPoint.h.

◆ defineAs() [2/3]

void orgQhull::QhullPoint::defineAs ( int  pointDimension,
coordT c 
)
inline

Definition at line 87 of file QhullPoint.h.

◆ defineAs() [3/3]

void orgQhull::QhullPoint::defineAs ( QhullPoint other)
inline

Definition at line 88 of file QhullPoint.h.

◆ dimension()

int orgQhull::QhullPoint::dimension ( ) const
inline

Definition at line 89 of file QhullPoint.h.

◆ distance()

double orgQhull::QhullPoint::distance ( const QhullPoint p) const

Return distance between two points.

Definition at line 117 of file QhullPoint.cpp.

◆ end() [1/2]

iterator orgQhull::QhullPoint::end ( )
inline

Definition at line 107 of file QhullPoint.h.

◆ end() [2/2]

const_iterator orgQhull::QhullPoint::end ( ) const
inline

Definition at line 108 of file QhullPoint.h.

◆ getBaseT()

coordT* orgQhull::QhullPoint::getBaseT ( ) const
inline

Definition at line 90 of file QhullPoint.h.

◆ id()

countT orgQhull::QhullPoint::id ( ) const
inline

Definition at line 91 of file QhullPoint.h.

◆ isValid()

bool orgQhull::QhullPoint::isValid ( ) const
inline

Definition at line 92 of file QhullPoint.h.

◆ operator!=()

bool orgQhull::QhullPoint::operator!= ( const QhullPoint other) const
inline

Definition at line 94 of file QhullPoint.h.

◆ operator=()

QhullPoint& orgQhull::QhullPoint::operator= ( const QhullPoint other)
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.

◆ operator==()

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()

Todo:
Compares distance with distance-to-hyperplane (distanceEpsilon). Is that correct?

Definition at line 83 of file QhullPoint.cpp.

◆ operator[]() [1/2]

const coordT& orgQhull::QhullPoint::operator[] ( int  idx) const
inline

0 to hull_dim-1

Definition at line 95 of file QhullPoint.h.

◆ operator[]() [2/2]

coordT& orgQhull::QhullPoint::operator[] ( int  idx)
inline

0 to hull_dim-1

Definition at line 96 of file QhullPoint.h.

◆ print()

PrintPoint orgQhull::QhullPoint::print ( const char *  message) const
inline

Definition at line 123 of file QhullPoint.h.

◆ printWithIdentifier()

PrintPoint orgQhull::QhullPoint::printWithIdentifier ( const char *  message) const
inline

Definition at line 124 of file QhullPoint.h.

◆ qh()

QhullQh* orgQhull::QhullPoint::qh ( )
inline

Definition at line 97 of file QhullPoint.h.

◆ setCoordinates()

void orgQhull::QhullPoint::setCoordinates ( coordT c)
inline

Definition at line 98 of file QhullPoint.h.

◆ setDimension()

void orgQhull::QhullPoint::setDimension ( int  pointDimension)
inline

Definition at line 99 of file QhullPoint.h.

◆ size()

size_t orgQhull::QhullPoint::size ( )
inline

Definition at line 109 of file QhullPoint.h.

◆ toStdVector()

std::vector< coordT > orgQhull::QhullPoint::toStdVector ( ) const

Definition at line 65 of file QhullPoint.cpp.

Member Data Documentation

◆ point_coordinates

coordT* orgQhull::QhullPoint::point_coordinates
protected

Pointer to first coordinate, 0 if undefined.

Definition at line 45 of file QhullPoint.h.

◆ point_dimension

int orgQhull::QhullPoint::point_dimension
protected

Default dimension is qh_qh->hull_dim.

Definition at line 49 of file QhullPoint.h.

◆ qh_qh

QhullQh* orgQhull::QhullPoint::qh_qh
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.


The documentation for this class was generated from the following files:


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:03