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

#include <QhullPoint.h>

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

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...
 
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
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
 
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...
 

Iterators

typedef coordTbase_type
 
typedef QhullPoint::iterator Iterator
 
typedef QhullPoint::const_iterator ConstIterator
 
const typedef coordTiterator
 
const typedef coordTconst_iterator
 

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 39 of file QhullPoint.h.

Member Typedef Documentation

◆ base_type

Definition at line 43 of file QhullPoint.h.

◆ ConstIterator

Definition at line 47 of file QhullPoint.h.

◆ Iterator

Definition at line 46 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 62 of file QhullPoint.h.

◆ QhullPoint() [2/11]

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

Definition at line 63 of file QhullPoint.h.

◆ QhullPoint() [3/11]

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

Definition at line 32 of file QhullPoint.cpp.

◆ QhullPoint() [4/11]

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

Definition at line 40 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 58 of file QhullPoint.cpp.

◆ QhullPoint() [6/11]

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

Definition at line 49 of file QhullPoint.cpp.

◆ QhullPoint() [7/11]

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

Definition at line 68 of file QhullPoint.h.

◆ QhullPoint() [8/11]

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

Definition at line 69 of file QhullPoint.h.

◆ QhullPoint() [9/11]

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

Definition at line 70 of file QhullPoint.h.

◆ QhullPoint() [10/11]

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

Definition at line 71 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 73 of file QhullPoint.h.

◆ ~QhullPoint()

orgQhull::QhullPoint::~QhullPoint ( )
inline

Definition at line 76 of file QhullPoint.h.

Member Function Documentation

◆ advancePoint()

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

Definition at line 118 of file QhullPoint.h.

◆ begin() [1/2]

iterator orgQhull::QhullPoint::begin ( )
inline

Definition at line 108 of file QhullPoint.h.

◆ begin() [2/2]

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

Definition at line 109 of file QhullPoint.h.

◆ constBegin()

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

Definition at line 110 of file QhullPoint.h.

◆ constEnd()

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

Definition at line 111 of file QhullPoint.h.

◆ count()

int orgQhull::QhullPoint::count ( )
inline

Definition at line 112 of file QhullPoint.h.

◆ defineAs() [1/3]

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

Definition at line 92 of file QhullPoint.h.

◆ defineAs() [2/3]

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

Definition at line 93 of file QhullPoint.h.

◆ defineAs() [3/3]

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

Definition at line 94 of file QhullPoint.h.

◆ dimension()

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

Definition at line 95 of file QhullPoint.h.

◆ distance()

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

Return distance between two points.

Definition at line 123 of file QhullPoint.cpp.

◆ end() [1/2]

iterator orgQhull::QhullPoint::end ( )
inline

Definition at line 113 of file QhullPoint.h.

◆ end() [2/2]

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

Definition at line 114 of file QhullPoint.h.

◆ getBaseT()

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

Definition at line 96 of file QhullPoint.h.

◆ id()

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

Definition at line 97 of file QhullPoint.h.

◆ isValid()

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

Definition at line 98 of file QhullPoint.h.

◆ operator!=()

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

Definition at line 100 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 75 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 89 of file QhullPoint.cpp.

◆ print()

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

Definition at line 129 of file QhullPoint.h.

◆ printWithIdentifier()

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

Definition at line 130 of file QhullPoint.h.

◆ qh()

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

Definition at line 103 of file QhullPoint.h.

◆ setCoordinates()

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

Definition at line 104 of file QhullPoint.h.

◆ setDimension()

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

Definition at line 105 of file QhullPoint.h.

◆ size()

size_t orgQhull::QhullPoint::size ( )
inline

Definition at line 115 of file QhullPoint.h.

◆ toStdVector()

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

Definition at line 71 of file QhullPoint.cpp.

Member Data Documentation

◆ const_iterator

const typedef coordT* orgQhull::QhullPoint::const_iterator

Definition at line 45 of file QhullPoint.h.

◆ iterator

const typedef coordT* orgQhull::QhullPoint::iterator

Definition at line 44 of file QhullPoint.h.

◆ point_coordinates

coordT* orgQhull::QhullPoint::point_coordinates
protected

Pointer to first coordinate, 0 if undefined.

Definition at line 51 of file QhullPoint.h.

◆ point_dimension

int orgQhull::QhullPoint::point_dimension
protected

Default dimension is qh_qh->hull_dim.

Definition at line 55 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 52 of file QhullPoint.h.


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


hpp-fcl
Author(s):
autogenerated on Fri Jan 26 2024 03:46:17