#include <BALL/DATATYPE/contourLine.h>
Public Types | |
Type definitions | |
typedef Vector2 | PointType |
typedef std::vector< PointType > | VectorType |
Public Member Functions | |
void | createContourLine (TRegularData2D< T > &from) |
Creates a contour line from a given data set. | |
void | interpol12 () |
Internal functions used for the marching cube-algorithm. | |
void | interpol18 () |
void | interpol24 () |
void | interpol48 () |
Constructors and Destructors. | |
TContourLine (T height=0) | |
Default constructor. | |
TContourLine (const TContourLine ©TContourLine) | |
Copy constructor. | |
virtual | ~TContourLine () |
Destructor. | |
Assignment | |
const TContourLine & | operator= (const TContourLine &assigTContourLine) |
Assignment operator. | |
virtual void | clear () |
Clear method. | |
Predicates | |
bool | operator== (const TContourLine &compTContourLine) const |
Equality operator. | |
Accessors | |
bool | getNextPoint (PointType &p) |
void | resetCounter () |
Public Attributes | |
T | height_ |
VectorType | data_ |
VectorType::iterator | it_ |
Position | index_ |
This class is intended to store a single contour line generated from a RegularData2D - class.
typedef Vector2 BALL::TContourLine< T >::PointType |
The point type. This type is used to store points in the 2-d regularData.
typedef std::vector<PointType> BALL::TContourLine< T >::VectorType |
The vector type. This type is used to store the endpoints of the contour-line.
BALL::TContourLine< T >::TContourLine | ( | T | height = 0 |
) | [inline] |
Default constructor.
BALL::TContourLine< T >::TContourLine | ( | const TContourLine< T > & | copyTContourLine | ) |
Copy constructor.
BALL::TContourLine< T >::~TContourLine | ( | ) | [inline, virtual] |
Destructor.
void BALL::TContourLine< T >::clear | ( | ) | [inline, virtual] |
Clear method.
References BALL::TContourLine< T >::data_, BALL::TContourLine< T >::index_, and BALL::TContourLine< T >::it_.
void BALL::TContourLine< T >::createContourLine | ( | TRegularData2D< T > & | from | ) | [inline] |
Creates a contour line from a given data set.
References BALL::TContourLine< T >::data_, BALL::TRegularData2D< ValueType >::getSize(), BALL::TContourLine< T >::height_, BALL::TContourLine< T >::index_, INTERPOL12, INTERPOL18, INTERPOL24, INTERPOL48, and BALL::TContourLine< T >::it_.
Referenced by BALL::TContour< T >::apply().
bool BALL::TContourLine< T >::getNextPoint | ( | PointType & | p | ) |
Return the next endpoint.
void BALL::TContourLine< T >::interpol12 | ( | ) |
Internal functions used for the marching cube-algorithm.
void BALL::TContourLine< T >::interpol18 | ( | ) |
void BALL::TContourLine< T >::interpol24 | ( | ) |
void BALL::TContourLine< T >::interpol48 | ( | ) |
const TContourLine& BALL::TContourLine< T >::operator= | ( | const TContourLine< T > & | assigTContourLine | ) |
Assignment operator.
bool BALL::TContourLine< T >::operator== | ( | const TContourLine< T > & | compTContourLine | ) | const |
Equality operator.
void BALL::TContourLine< T >::resetCounter | ( | ) | [inline] |
Reset the counter.
References BALL::TContourLine< T >::data_, BALL::TContourLine< T >::index_, and BALL::TContourLine< T >::it_.
VectorType BALL::TContourLine< T >::data_ |
T BALL::TContourLine< T >::height_ |
Referenced by BALL::TContourLine< T >::createContourLine().
Position BALL::TContourLine< T >::index_ |
VectorType::iterator BALL::TContourLine< T >::it_ |