#include <Qhull.h>
Public Member Functions | |
void | appendQhullMessage (const std::string &s) |
double | area () |
QhullFacet | beginFacet () const |
QhullVertex | beginVertex () const |
void | checkIfQhullInitialized () |
void | clearQhullMessage () |
clearQhullMessage does not throw errors (~Qhull) | |
void | defineVertexNeighborFacets () |
Automatically called if merging facets or Voronoi diagram. | |
int | dimension () const |
QhullFacet | endFacet () const |
QhullVertex | endVertex () const |
int | facetCount () const |
QhullFacetList | facetList () const |
QhullFacet | firstFacet () const |
QhullVertex | firstVertex () const |
bool | hasQhullMessage () const |
hasQhullMessage does not throw errors (~Qhull) | |
int | hullDimension () const |
bool | initialized () const |
Qhull & | operator= (const Qhull &other) |
QhullPoint | origin () |
QhullPointSet | otherPoints () const |
void | outputQhull () |
void | outputQhull (const char *outputflags) |
coordT * | pointCoordinateBegin () const |
Same as points().coordinates() | |
coordT * | pointCoordinateEnd () const |
QhullPoints | points () const |
Qhull () | |
Set if using outputStream. | |
Qhull (const RboxPoints &rboxPoints, const char *qhullCommand2) | |
Qhull::runQhull() must be called next. | |
Qhull (const char *rboxCommand2, int pointDimension, int pointCount, const realT *pointCoordinates, const char *qhullCommand2) | |
Qhull (const Qhull &other) | |
const char * | qhullCommand () const |
std::string | qhullMessage () const |
qhullMessage does not throw errors (~Qhull) | |
QhullQh * | qhullQh () const |
int | qhullStatus () const |
const char * | rboxCommand () const |
int | runId () |
Setup global state (qh_qh, qh_qhstat, qhmem.tempstack) | |
void | runQhull (const RboxPoints &rboxPoints, const char *qhullCommand2) |
void | runQhull (const char *rboxCommand2, int pointDimension, int pointCount, const realT *rboxPoints, const char *qhullCommand2) |
void | setErrorStream (std::ostream *os) |
void | setOutputStream (std::ostream *os) |
Updates useOutputStream. | |
int | vertexCount () const |
QhullVertexList | vertexList () const |
Return vertices of the convex hull. | |
double | volume () |
~Qhull () throw () | |
Public Attributes | |
Coordinates | feasiblePoint |
bool | useOutputStream |
feasible point for half-space intersection | |
Private Member Functions | |
void | initializeFeasiblePoint (int hulldim) |
void | initializeQhull () |
void | maybeThrowQhullMessage (int exitCode) |
void | maybeThrowQhullMessage (int exitCode, int noThrow) throw () |
friend | void::qh_fprintf (FILE *fp, int msgcode, const char *fmt,...) |
send output to stream | |
Private Attributes | |
std::ostream * | error_stream |
Coordinates | origin_point |
qh.run_id at initialization (catch multiple runs if !qh_QHpointer) | |
std::ostream * | output_stream |
overrides errorMessage, use appendQhullMessage() | |
bool | qh_active |
True at start of runQhull. Errors if call again. | |
int | qhull_dimension |
qh_ERRnone if valid | |
std::string | qhull_message |
True if global pointer qh_qh equals qhull_qh. | |
QhullQh * | qhull_qh |
int | qhull_run_id |
qh_qh for this instance | |
int | qhull_status |
origin for qhull_dimension. Set by runQhull() | |
bool | run_called |
Dimension of result (qh.hull_dim or one less for Delaunay/Voronoi) | |
Friends | |
class | UsingLibQhull |
orgQhull::Qhull::Qhull | ( | const RboxPoints & | rboxPoints, |
const char * | qhullCommand2 | ||
) |
Qhull::runQhull() must be called next.
orgQhull::Qhull::Qhull | ( | const char * | rboxCommand2, |
int | pointDimension, | ||
int | pointCount, | ||
const realT * | pointCoordinates, | ||
const char * | qhullCommand2 | ||
) |
orgQhull::Qhull::Qhull | ( | const Qhull & | other | ) |
orgQhull::Qhull::~Qhull | ( | ) | throw () |
UsingLibQhull is required by ~QhullQh
void orgQhull::Qhull::appendQhullMessage | ( | const std::string & | s | ) |
double orgQhull::Qhull::area | ( | ) |
QhullFacet orgQhull::Qhull::beginFacet | ( | ) | const [inline] |
QhullVertex orgQhull::Qhull::beginVertex | ( | ) | const [inline] |
void orgQhull::Qhull::clearQhullMessage | ( | ) |
Automatically called if merging facets or Voronoi diagram.
Define QhullVertex::neighborFacets(). Automatically called if merging facets or computing the Voronoi diagram. Noop if called multiple times.
int orgQhull::Qhull::dimension | ( | ) | const [inline] |
QhullFacet orgQhull::Qhull::endFacet | ( | ) | const [inline] |
QhullVertex orgQhull::Qhull::endVertex | ( | ) | const [inline] |
int orgQhull::Qhull::facetCount | ( | ) | const [inline] |
QhullFacetList orgQhull::Qhull::facetList | ( | ) | const |
QhullFacet orgQhull::Qhull::firstFacet | ( | ) | const [inline] |
QhullVertex orgQhull::Qhull::firstVertex | ( | ) | const [inline] |
bool orgQhull::Qhull::hasQhullMessage | ( | ) | const |
int orgQhull::Qhull::hullDimension | ( | ) | const [inline] |
bool orgQhull::Qhull::initialized | ( | ) | const [inline] |
void orgQhull::Qhull::initializeFeasiblePoint | ( | int | hulldim | ) | [private] |
void orgQhull::Qhull::initializeQhull | ( | ) | [private] |
void orgQhull::Qhull::maybeThrowQhullMessage | ( | int | exitCode | ) | [private] |
void orgQhull::Qhull::maybeThrowQhullMessage | ( | int | exitCode, |
int | noThrow | ||
) | throw () [private] |
QhullPoint orgQhull::Qhull::origin | ( | ) | [inline] |
QhullPointSet orgQhull::Qhull::otherPoints | ( | ) | const |
void orgQhull::Qhull::outputQhull | ( | ) |
void orgQhull::Qhull::outputQhull | ( | const char * | outputflags | ) |
coordT* orgQhull::Qhull::pointCoordinateBegin | ( | ) | const [inline] |
coordT* orgQhull::Qhull::pointCoordinateEnd | ( | ) | const [inline] |
QhullPoints orgQhull::Qhull::points | ( | ) | const |
const char* orgQhull::Qhull::qhullCommand | ( | ) | const [inline] |
std::string orgQhull::Qhull::qhullMessage | ( | ) | const |
QhullQh* orgQhull::Qhull::qhullQh | ( | ) | const [inline] |
int orgQhull::Qhull::qhullStatus | ( | ) | const |
const char* orgQhull::Qhull::rboxCommand | ( | ) | const [inline] |
int orgQhull::Qhull::runId | ( | ) |
void orgQhull::Qhull::runQhull | ( | const RboxPoints & | rboxPoints, |
const char * | qhullCommand2 | ||
) |
void orgQhull::Qhull::runQhull | ( | const char * | rboxCommand2, |
int | pointDimension, | ||
int | pointCount, | ||
const realT * | rboxPoints, | ||
const char * | qhullCommand2 | ||
) |
void orgQhull::Qhull::setErrorStream | ( | std::ostream * | os | ) |
void orgQhull::Qhull::setOutputStream | ( | std::ostream * | os | ) |
int orgQhull::Qhull::vertexCount | ( | ) | const [inline] |
QhullVertexList orgQhull::Qhull::vertexList | ( | ) | const |
orgQhull::Qhull::void::qh_fprintf | ( | FILE * | fp, |
int | msgcode, | ||
const char * | fmt, | ||
... | |||
) | [private] |
send output to stream
double orgQhull::Qhull::volume | ( | ) |
friend class UsingLibQhull [friend] |
std::ostream* orgQhull::Qhull::error_stream [private] |
Coordinates orgQhull::Qhull::origin_point [private] |
std::ostream* orgQhull::Qhull::output_stream [private] |
overrides errorMessage, use appendQhullMessage()
bool orgQhull::Qhull::qh_active [private] |
int orgQhull::Qhull::qhull_dimension [private] |
std::string orgQhull::Qhull::qhull_message [private] |
QhullQh* orgQhull::Qhull::qhull_qh [private] |
int orgQhull::Qhull::qhull_run_id [private] |
int orgQhull::Qhull::qhull_status [private] |
origin for qhull_dimension. Set by runQhull()
bool orgQhull::Qhull::run_called [private] |