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

Provide qh_fprintf (Qhull.cpp) access to Qhull. More...

#include <UsingLibQhull.h>

List of all members.

Public Member Functions

bool defined () const
void maybeThrowQhullMessage (int exitCode) const
void maybeThrowQhullMessage (int exitCode, int noThrow) const
 UsingLibQhull (Qhull *p)
 UsingLibQhull (Qhull *p, int noThrow)
 UsingLibQhull (int qhRunId)
 ~UsingLibQhull ()

Static Public Member Functions

static void checkQhullMemoryEmpty ()
 ~ANGLEround*FACTORepsilon for unit cube
static double currentAngleEpsilon ()
static double currentDistanceEpsilon ()
static const coordTcurrentPoints (int *dimension, const coordT **pointsEnd)
static QhullcurrentQhull ()
static int currentVertexDimension ()
static double globalAngleEpsilon ()
static double globalDistanceEpsilon ()
static double globalMachineEpsilon ()
static const coordTglobalPoints (int *dimension, const coordT **pointsEnd)
static int globalVertexDimension ()
static bool hasPoints ()
static bool hasVertexDimension ()
static void setGlobalAngleEpsilon (double d)
static void setGlobalDistanceEpsilon (double d)
static void setGlobalPoints (int dimension, const coordT *pointsBegin, const coordT *pointsEnd)
static void setGlobals ()
static void setGlobalVertexDimension (int i)
static void unsetGlobalAngleEpsilon ()
static void unsetGlobalDistanceEpsilon ()
static void unsetGlobalPoints ()
static void unsetGlobals ()
static void unsetGlobalVertexDimension ()

Static Public Attributes

static const double DEFAULTangleEpsilon = 1e-15*FACTORepsilon
 ~DISTround*FACTORepsilon for unit cube
static const double DEFAULTdistanceEpsilon = 1e-15*FACTORepsilon
static const int FACTORepsilon = 10
 Do not throw from maybeThrowQhullMessage.
static const int NOqhRunId = 0
 Default dimension (e.g., if Vertex::dimension() >= 16)
static const int NOthrow = 1
 qh_qh is not available

Private Member Functions

QhullError checkRunId () const
 Return QhullError for maybeThrowFromDestructor()
void checkUsingLibQhull () const
 Can not embed UsingLibQhull. Otherwise allocated a C++ object missed by qh_errexit.
UsingLibQhulloperator= (const UsingLibQhull &)
 UsingLibQhull ()
 disable default constructor, copy constructor, and copy assignment
 UsingLibQhull (const UsingLibQhull &)

Private Attributes

Qhullmy_qhull
int qh_exitcode

Static Private Attributes

static double s_angle_epsilon = 0
 True if s_vertex_dimension defined.
static double s_distance_epsilon = 0
 Epsilon for angle equality.
static bool s_has_angle_epsilon = false
 True if UsingLibQhull is in scope.
static bool s_has_distance_epsilon = false
 True if s_angle_epsilon defined.
static bool s_has_points = false
 True if s_distance_epsilon defined.
static bool s_has_vertex_dimension = false
 If False (default), Qhull() runs setPointBase()
static const coordTs_points_begin = 0
 Epsilon for distance equality.
static int s_points_dimension = 0
 For QhullPoint::id() w/o qhRunId.
static const coordTs_points_end = 0
 For QhullPoint::id() w/o qhRunId.
static bool s_using_libqhull = false
 Global flags.
static int s_vertex_dimension = 0

Detailed Description

Provide qh_fprintf (Qhull.cpp) access to Qhull.

Definition at line 39 of file UsingLibQhull.h.


Constructor & Destructor Documentation

Grabs global state (qh_qh, qh_qhstat, qhmem.tempstack) Follow immediately with setjmp(qh errexit), otherwise errors in libqhull are not caught properly See qh_restore_qhull [global.c]

Definition at line 71 of file UsingLibQhull.cpp.

orgQhull::UsingLibQhull::UsingLibQhull ( Qhull q,
int  noThrow 
)

Same as UsingLibQhull but does not throw exceptions !defined() on failure. For use in destructors

Definition at line 109 of file UsingLibQhull.cpp.

Reuses current global state (qh_qh) from prior UsingQhull Errors if runId is not the same

Definition at line 146 of file UsingLibQhull.cpp.

Definition at line 171 of file UsingLibQhull.cpp.

disable default constructor, copy constructor, and copy assignment


Member Function Documentation

~ANGLEround*FACTORepsilon for unit cube

Definition at line 191 of file UsingLibQhull.cpp.

Return QhullError for maybeThrowFromDestructor()

Definition at line 341 of file UsingLibQhull.cpp.

Can not embed UsingLibQhull. Otherwise allocated a C++ object missed by qh_errexit.

Definition at line 360 of file UsingLibQhull.cpp.

Definition at line 205 of file UsingLibQhull.cpp.

Definition at line 216 of file UsingLibQhull.cpp.

const coordT * orgQhull::UsingLibQhull::currentPoints ( int *  dimension,
const coordT **  pointsEnd 
) [static]

Definition at line 227 of file UsingLibQhull.cpp.

Definition at line 242 of file UsingLibQhull.cpp.

Definition at line 252 of file UsingLibQhull.cpp.

bool orgQhull::UsingLibQhull::defined ( ) const [inline]

Definition at line 111 of file UsingLibQhull.h.

static double orgQhull::UsingLibQhull::globalAngleEpsilon ( ) [inline, static]

Definition at line 79 of file UsingLibQhull.h.

static double orgQhull::UsingLibQhull::globalDistanceEpsilon ( ) [inline, static]

Definition at line 80 of file UsingLibQhull.h.

static double orgQhull::UsingLibQhull::globalMachineEpsilon ( ) [inline, static]

Definition at line 81 of file UsingLibQhull.h.

const coordT * orgQhull::UsingLibQhull::globalPoints ( int *  dimension,
const coordT **  pointsEnd 
) [static]

Definition at line 263 of file UsingLibQhull.cpp.

static int orgQhull::UsingLibQhull::globalVertexDimension ( ) [inline, static]

Definition at line 83 of file UsingLibQhull.h.

Definition at line 275 of file UsingLibQhull.cpp.

Definition at line 281 of file UsingLibQhull.cpp.

Definition at line 318 of file UsingLibQhull.cpp.

void orgQhull::UsingLibQhull::maybeThrowQhullMessage ( int  exitCode,
int  noThrow 
) const

Definition at line 328 of file UsingLibQhull.cpp.

UsingLibQhull& orgQhull::UsingLibQhull::operator= ( const UsingLibQhull ) [private]
static void orgQhull::UsingLibQhull::setGlobalAngleEpsilon ( double  d) [inline, static]

Definition at line 86 of file UsingLibQhull.h.

static void orgQhull::UsingLibQhull::setGlobalDistanceEpsilon ( double  d) [inline, static]

Definition at line 87 of file UsingLibQhull.h.

static void orgQhull::UsingLibQhull::setGlobalPoints ( int  dimension,
const coordT pointsBegin,
const coordT pointsEnd 
) [inline, static]

Definition at line 88 of file UsingLibQhull.h.

Definition at line 287 of file UsingLibQhull.cpp.

static void orgQhull::UsingLibQhull::setGlobalVertexDimension ( int  i) [inline, static]

Definition at line 89 of file UsingLibQhull.h.

static void orgQhull::UsingLibQhull::unsetGlobalAngleEpsilon ( ) [inline, static]

Definition at line 91 of file UsingLibQhull.h.

static void orgQhull::UsingLibQhull::unsetGlobalDistanceEpsilon ( ) [inline, static]

Definition at line 92 of file UsingLibQhull.h.

static void orgQhull::UsingLibQhull::unsetGlobalPoints ( ) [inline, static]

Definition at line 93 of file UsingLibQhull.h.

Definition at line 307 of file UsingLibQhull.cpp.

static void orgQhull::UsingLibQhull::unsetGlobalVertexDimension ( ) [inline, static]

Definition at line 94 of file UsingLibQhull.h.


Member Data Documentation

const double orgQhull::UsingLibQhull::DEFAULTangleEpsilon = 1e-15*FACTORepsilon [static]

~DISTround*FACTORepsilon for unit cube

Definition at line 70 of file UsingLibQhull.h.

const double orgQhull::UsingLibQhull::DEFAULTdistanceEpsilon = 1e-15*FACTORepsilon [static]

Definition at line 69 of file UsingLibQhull.h.

const int orgQhull::UsingLibQhull::FACTORepsilon = 10 [static]

Do not throw from maybeThrowQhullMessage.

Definition at line 68 of file UsingLibQhull.h.

Definition at line 43 of file UsingLibQhull.h.

const int orgQhull::UsingLibQhull::NOqhRunId = 0 [static]

Default dimension (e.g., if Vertex::dimension() >= 16)

Definition at line 66 of file UsingLibQhull.h.

const int orgQhull::UsingLibQhull::NOthrow = 1 [static]

qh_qh is not available

Definition at line 67 of file UsingLibQhull.h.

Definition at line 44 of file UsingLibQhull.h.

double orgQhull::UsingLibQhull::s_angle_epsilon = 0 [static, private]

True if s_vertex_dimension defined.

Global values

Definition at line 57 of file UsingLibQhull.h.

double orgQhull::UsingLibQhull::s_distance_epsilon = 0 [static, private]

Epsilon for angle equality.

Definition at line 58 of file UsingLibQhull.h.

bool orgQhull::UsingLibQhull::s_has_angle_epsilon = false [static, private]

True if UsingLibQhull is in scope.

Use global values if s_has_... is set

Definition at line 51 of file UsingLibQhull.h.

bool orgQhull::UsingLibQhull::s_has_distance_epsilon = false [static, private]

True if s_angle_epsilon defined.

Definition at line 52 of file UsingLibQhull.h.

bool orgQhull::UsingLibQhull::s_has_points = false [static, private]

True if s_distance_epsilon defined.

Definition at line 53 of file UsingLibQhull.h.

bool orgQhull::UsingLibQhull::s_has_vertex_dimension = false [static, private]

If False (default), Qhull() runs setPointBase()

Definition at line 54 of file UsingLibQhull.h.

const coordT * orgQhull::UsingLibQhull::s_points_begin = 0 [static, private]

Epsilon for distance equality.

For QhullPoint.id() w/o qhRunId. Initialized by Qhull.

Definition at line 59 of file UsingLibQhull.h.

For QhullPoint::id() w/o qhRunId.

Definition at line 61 of file UsingLibQhull.h.

const coordT * orgQhull::UsingLibQhull::s_points_end = 0 [static, private]

For QhullPoint::id() w/o qhRunId.

Definition at line 60 of file UsingLibQhull.h.

bool orgQhull::UsingLibQhull::s_using_libqhull = false [static, private]

Global flags.

Definition at line 48 of file UsingLibQhull.h.

Definition at line 62 of file UsingLibQhull.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