SynAPSE  0.6.0
Synergistic Analysis of Phase Space Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Private Attributes
Hull Class Reference

Data stucture of a convex hull. More...

#include <Hull.hh>

Public Member Functions

 Hull ()
 Default constructor, initilizes everything to 0. More...
 
 Hull (const std::vector< std::vector< double >> &points)
 Normal constructor, sets the vector of points. More...
 
 Hull (const std::vector< double > &points, const size_t &dim)
 Normal constructor, sets the vector of points. More...
 
 Hull (const Hull &hull)
 Copy constructor. More...
 
Hull & operator= (const Hull &hull)
 Equality operator. More...
 
 ~Hull ()
 Destructor. More...
 
void Initialize (const std::vector< std::vector< double >> &points)
 Find the Hull triangulation of the N points. More...
 
void SetPointArray (const std::vector< std::vector< double >> &points)
 Sets the array of points on the hull. More...
 
void SetPointArray (const std::vector< double > &points, const size_t &dim)
 Sets the array of points on the hull. More...
 
void AddPoint (const std::vector< double > &point)
 Sets the array of points on the hull. More...
 
const std::vector< std::vector
< double > > & 
GetPointArray () const
 Returns the array of points on which the triangulation is constructed. More...
 
const std::vector< double > & GetPoint (const size_t i) const
 Returns a specific point. More...
 
void SetVolume (const double &vol)
 Sets the volume of the hull. More...
 
const double & GetVolume () const
 Returns the volume of the hull. More...
 
Matrix< double > GetCWPoints () const
 Returns the points ordered clockwise with respect to the CMF. More...
 
TPolyLine * Polygon () const
 Returns a polygon of the hull to be drawn in ROOT (only 2D) More...
 

Private Attributes

size_t _dim
 Dimension of the space. More...
 
std::vector< std::vector
< double > > 
_points
 N points on the hull. More...
 
double _vol
 Volume of the convex hull. More...
 

Detailed Description

Data stucture of a convex hull.

The object orgQhull::Qhull cannot be copied and hence makes it hard to memory handle. This class stores the basic parameters computed by Qhull to be restituted on command.

Qhull performs the heavy lifting, this is a data stucture class.

Constructor & Destructor Documentation

Hull::Hull ( )

Default constructor, initilizes everything to 0.

Hull::Hull ( const std::vector< std::vector< double >> &  points)

Normal constructor, sets the vector of points.

Parameters
pointsVector of points
Hull::Hull ( const std::vector< double > &  points,
const size_t &  dim 
)

Normal constructor, sets the vector of points.

Parameters
pointsVector of points in line
dimDimension of the space
Hull::Hull ( const Hull &  hull)

Copy constructor.

Hull::~Hull ( )

Destructor.

Member Function Documentation

void Hull::AddPoint ( const std::vector< double > &  point)
inline

Sets the array of points on the hull.

Matrix< double > Hull::GetCWPoints ( ) const

Returns the points ordered clockwise with respect to the CMF.

const std::vector<double>& Hull::GetPoint ( const size_t  i) const
inline

Returns a specific point.

const std::vector<std::vector<double> >& Hull::GetPointArray ( ) const
inline

Returns the array of points on which the triangulation is constructed.

const double& Hull::GetVolume ( ) const
inline

Returns the volume of the hull.

void Hull::Initialize ( const std::vector< std::vector< double >> &  points)

Find the Hull triangulation of the N points.

Hull & Hull::operator= ( const Hull &  hull)

Equality operator.

TPolyLine * Hull::Polygon ( ) const

Returns a polygon of the hull to be drawn in ROOT (only 2D)

void Hull::SetPointArray ( const std::vector< std::vector< double >> &  points)
inline

Sets the array of points on the hull.

void Hull::SetPointArray ( const std::vector< double > &  points,
const size_t &  dim 
)

Sets the array of points on the hull.

void Hull::SetVolume ( const double &  vol)
inline

Sets the volume of the hull.

Field Documentation

size_t Hull::_dim
private

Dimension of the space.

std::vector<std::vector<double> > Hull::_points
private

N points on the hull.

double Hull::_vol
private

Volume of the convex hull.


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