All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends
orgQhull::Qhull Class Reference

#include <Qhull.h>

List of all members.

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
Qhulloperator= (const Qhull &other)
QhullPoint origin ()
QhullPointSet otherPoints () const
void outputQhull ()
void outputQhull (const char *outputflags)
coordTpointCoordinateBegin () const
 Same as points().coordinates()
coordTpointCoordinateEnd () 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)
QhullQhqhullQh () 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.
QhullQhqhull_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

Detailed Description

Definition at line 47 of file Qhull.h.


Constructor & Destructor Documentation

Set if using outputStream.

Definition at line 44 of file Qhull.cpp.

orgQhull::Qhull::Qhull ( const RboxPoints rboxPoints,
const char *  qhullCommand2 
)

Qhull::runQhull() must be called next.

Definition at line 62 of file Qhull.cpp.

orgQhull::Qhull::Qhull ( const char *  rboxCommand2,
int  pointDimension,
int  pointCount,
const realT pointCoordinates,
const char *  qhullCommand2 
)

Definition at line 81 of file Qhull.cpp.

orgQhull::Qhull::Qhull ( const Qhull other)

Definition at line 100 of file Qhull.cpp.

UsingLibQhull is required by ~QhullQh

Definition at line 153 of file Qhull.cpp.


Member Function Documentation

void orgQhull::Qhull::appendQhullMessage ( const std::string &  s)

Definition at line 184 of file Qhull.cpp.

Definition at line 267 of file Qhull.cpp.

Definition at line 117 of file Qhull.h.

Definition at line 118 of file Qhull.h.

Definition at line 246 of file Qhull.cpp.

clearQhullMessage does not throw errors (~Qhull)

Definition at line 197 of file Qhull.cpp.

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.

Definition at line 300 of file Qhull.cpp.

int orgQhull::Qhull::dimension ( ) const [inline]

Definition at line 99 of file Qhull.h.

Definition at line 120 of file Qhull.h.

Definition at line 121 of file Qhull.h.

int orgQhull::Qhull::facetCount ( ) const [inline]

Definition at line 109 of file Qhull.h.

Definition at line 313 of file Qhull.cpp.

Definition at line 123 of file Qhull.h.

Definition at line 124 of file Qhull.h.

hasQhullMessage does not throw errors (~Qhull)

Definition at line 206 of file Qhull.cpp.

int orgQhull::Qhull::hullDimension ( ) const [inline]

Definition at line 100 of file Qhull.h.

bool orgQhull::Qhull::initialized ( ) const [inline]

Definition at line 98 of file Qhull.h.

void orgQhull::Qhull::initializeFeasiblePoint ( int  hulldim) [private]

Definition at line 438 of file Qhull.cpp.

Definition at line 135 of file Qhull.cpp.

void orgQhull::Qhull::maybeThrowQhullMessage ( int  exitCode) [private]

Definition at line 464 of file Qhull.cpp.

void orgQhull::Qhull::maybeThrowQhullMessage ( int  exitCode,
int  noThrow 
) throw () [private]

Definition at line 477 of file Qhull.cpp.

Qhull & orgQhull::Qhull::operator= ( const Qhull other)

Definition at line 121 of file Qhull.cpp.

Definition at line 102 of file Qhull.h.

Definition at line 324 of file Qhull.cpp.

Definition at line 338 of file Qhull.cpp.

void orgQhull::Qhull::outputQhull ( const char *  outputflags)

Definition at line 350 of file Qhull.cpp.

Same as points().coordinates()

Definition at line 128 of file Qhull.h.

Definition at line 129 of file Qhull.h.

Definition at line 318 of file Qhull.cpp.

const char* orgQhull::Qhull::qhullCommand ( ) const [inline]

Definition at line 107 of file Qhull.h.

std::string orgQhull::Qhull::qhullMessage ( ) const

qhullMessage does not throw errors (~Qhull)

Definition at line 214 of file Qhull.cpp.

QhullQh* orgQhull::Qhull::qhullQh ( ) const [inline]

Definition at line 103 of file Qhull.h.

Definition at line 224 of file Qhull.cpp.

const char* orgQhull::Qhull::rboxCommand ( ) const [inline]

Definition at line 108 of file Qhull.h.

Setup global state (qh_qh, qh_qhstat, qhmem.tempstack)

Definition at line 255 of file Qhull.cpp.

void orgQhull::Qhull::runQhull ( const RboxPoints rboxPoints,
const char *  qhullCommand2 
)

Definition at line 384 of file Qhull.cpp.

void orgQhull::Qhull::runQhull ( const char *  rboxCommand2,
int  pointDimension,
int  pointCount,
const realT rboxPoints,
const char *  qhullCommand2 
)

points is a array of points, input sites ('d' or 'v'), or halfspaces with offset last ('H') Derived from qh_new_qhull [user.c]

Definition at line 392 of file Qhull.cpp.

void orgQhull::Qhull::setErrorStream ( std::ostream *  os)

Definition at line 230 of file Qhull.cpp.

void orgQhull::Qhull::setOutputStream ( std::ostream *  os)

Updates useOutputStream.

Definition at line 237 of file Qhull.cpp.

int orgQhull::Qhull::vertexCount ( ) const [inline]

Definition at line 110 of file Qhull.h.

Return vertices of the convex hull.

Definition at line 331 of file Qhull.cpp.

orgQhull::Qhull::void::qh_fprintf ( FILE *  fp,
int  msgcode,
const char *  fmt,
  ... 
) [private]

send output to stream

Definition at line 281 of file Qhull.cpp.


Friends And Related Function Documentation

friend class UsingLibQhull [friend]

Definition at line 63 of file Qhull.h.


Member Data Documentation

std::ostream* orgQhull::Qhull::error_stream [private]

Definition at line 59 of file Qhull.h.

Definition at line 67 of file Qhull.h.

qh.run_id at initialization (catch multiple runs if !qh_QHpointer)

Definition at line 53 of file Qhull.h.

std::ostream* orgQhull::Qhull::output_stream [private]

overrides errorMessage, use appendQhullMessage()

Definition at line 60 of file Qhull.h.

True at start of runQhull. Errors if call again.

Definition at line 57 of file Qhull.h.

qh_ERRnone if valid

Definition at line 55 of file Qhull.h.

std::string orgQhull::Qhull::qhull_message [private]

True if global pointer qh_qh equals qhull_qh.

Definition at line 58 of file Qhull.h.

Definition at line 51 of file Qhull.h.

qh_qh for this instance

Definition at line 52 of file Qhull.h.

origin for qhull_dimension. Set by runQhull()

Definition at line 54 of file Qhull.h.

Dimension of result (qh.hull_dim or one less for Delaunay/Voronoi)

Definition at line 56 of file Qhull.h.

feasible point for half-space intersection

Definition at line 68 of file Qhull.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


libqhull
Author(s): Robert Krug
autogenerated on Tue Jun 18 2013 12:38:50