#include <BALL/DATATYPE/contourSurface.h>
Classes | |
class | Cube |
Public Types | |
Type definitions | |
typedef std::pair< Position, Position > | KeyType |
typedef Vector3 | PointType |
typedef std::vector< std::pair < PointType, std::pair < Position, Position > > > | VectorType |
Public Member Functions | |
Constructors and Destructors. | |
TContourSurface () | |
Default constructor. | |
TContourSurface (T threshold) | |
Constructor with threshold. | |
TContourSurface (const TContourSurface &surface) | |
Copy constructor. | |
TContourSurface (const TRegularData3D< T > &data, T threshold=0.0) | |
Constructor for TRegularData3D. | |
virtual | ~TContourSurface () |
Destructor. | |
Assignment | |
const TContourSurface & | operator= (const TContourSurface< T > &surface) |
Assignment operator. | |
const TContourSurface< T > & | operator<< (const TRegularData3D< T > &data) |
Create a contour surface from a given data set. | |
virtual void | clear () |
Clear method. | |
Predicates | |
bool | operator== (const TContourSurface< T > &surface) const |
Equality operator. | |
Protected Member Functions | |
void | addTriangles_ (Cube &cube, const FacetArray &facet_data) |
void | computeTriangles (Size topology, const TRegularData3D< T > &data) |
Protected Attributes | |
T | threshold_ |
The threshold separating inside and outside. | |
HashMap< std::pair< Position, Position >, Position > | cut_hash_map_ |
This class contains a contour surface. Contour surfaces are created from 3D (volume) data sets, in general from data sets store in RegularData3D using a marching cube algorithm.
typedef std::pair<Position, Position> BALL::TContourSurface< T >::KeyType |
typedef Vector3 BALL::TContourSurface< T >::PointType |
The point type. This type is used to store points in the 3-d regularData.
typedef std::vector<std::pair<PointType, std::pair<Position, Position> > > BALL::TContourSurface< T >::VectorType |
The vector type. This type is used to store the edge points of the contour-Surface.
BALL::TContourSurface< T >::TContourSurface | ( | ) | [inline] |
Default constructor.
BALL::TContourSurface< T >::TContourSurface | ( | T | threshold | ) | [inline] |
Constructor with threshold.
BALL::TContourSurface< T >::TContourSurface | ( | const TContourSurface< T > & | surface | ) | [inline] |
Copy constructor.
BALL::TContourSurface< T >::TContourSurface | ( | const TRegularData3D< T > & | data, | |
T | threshold = 0.0 | |||
) | [inline] |
Constructor for TRegularData3D.
References BALL::TContourSurface< T >::operator<<().
BALL::TContourSurface< T >::~TContourSurface | ( | ) | [inline, virtual] |
Destructor.
void BALL::TContourSurface< T >::addTriangles_ | ( | Cube & | cube, | |
const FacetArray & | facet_data | |||
) | [protected] |
Referenced by BALL::TContourSurface< T >::operator<<().
void BALL::TContourSurface< T >::clear | ( | ) | [inline, virtual] |
Clear method.
Reimplemented from BALL::TSurface< float >.
References BALL::TContourSurface< T >::cut_hash_map_.
Referenced by BALL::TContourSurface< T >::operator<<().
void BALL::TContourSurface< T >::computeTriangles | ( | Size | topology, | |
const TRegularData3D< T > & | data | |||
) | [protected] |
const TContourSurface< T > & BALL::TContourSurface< T >::operator<< | ( | const TRegularData3D< T > & | data | ) | [inline] |
Create a contour surface from a given data set.
References BALL::TContourSurface< T >::addTriangles_(), BALL::TContourSurface< T >::clear(), BALL::getContourSurfaceFacetData(), BALL::TRegularData3D< ValueType >::getOrigin(), BALL::TRegularData3D< ValueType >::getSize(), BALL::TSurface< float >::normal, BALL::TContourSurface< T >::Cube::setTo(), BALL::TContourSurface< T >::Cube::shift(), and BALL::TContourSurface< T >::threshold_.
Referenced by BALL::TContourSurface< T >::TContourSurface().
const TContourSurface< T > & BALL::TContourSurface< T >::operator= | ( | const TContourSurface< T > & | surface | ) | [inline] |
Assignment operator.
References BALL::TContourSurface< T >::threshold_.
bool BALL::TContourSurface< T >::operator== | ( | const TContourSurface< T > & | surface | ) | const [inline] |
Equality operator.
References BALL::TContourSurface< T >::threshold_.
HashMap<std::pair<Position, Position>, Position> BALL::TContourSurface< T >::cut_hash_map_ [protected] |
Referenced by BALL::TContourSurface< T >::clear().
T BALL::TContourSurface< T >::threshold_ [protected] |
The threshold separating inside and outside.
Referenced by BALL::TContourSurface< T >::operator<<(), BALL::TContourSurface< T >::operator=(), and BALL::TContourSurface< T >::operator==().