#include <BALL/DATATYPE/contour.h>
Public Member Functions | |
Constructors and Destructors | |
TContour (Size num_lines=0, double start=0, double end=0) | |
Default constructor. | |
TContour (const TContour &contour) | |
Copy constructor. | |
virtual | ~TContour () |
Destructor. | |
Accessors | |
bool | getNextContourLine (TContourLine< T > &contour) |
Gives access to the next ContourLine. Returns false if we had already returned the last line. | |
Assignment | |
TContour & | operator= (const TContour &rhs) |
Assignment operator. | |
void | apply (TRegularData2D< T > &data) |
virtual void | clear () |
Clear method. | |
void | resetCounter () |
Reset the ContourLine-counter. | |
Predicates | |
bool | operator== (const TContour &contour) const |
Equality operator. | |
Protected Attributes | |
std::vector< TContourLine< T > > | lines_ |
Size | num_lines_ |
double | start_ |
double | end_ |
std::vector< TContourLine< T > >::const_iterator | it_ |
Position | index_ |
This class is intended to create and store ContourLines belonging to the same data-set.
BALL::TContour< T >::TContour | ( | Size | num_lines = 0 , |
|
double | start = 0 , |
|||
double | end = 0 | |||
) | [inline] |
Default constructor.
BALL::TContour< T >::TContour | ( | const TContour< T > & | contour | ) | [inline] |
Copy constructor.
BALL::TContour< T >::~TContour | ( | ) | [inline, virtual] |
Destructor.
void BALL::TContour< T >::apply | ( | TRegularData2D< T > & | data | ) | [inline] |
void BALL::TContour< T >::clear | ( | ) | [inline, virtual] |
Clear method.
References BALL::TContour< T >::end_, BALL::TContour< T >::index_, BALL::TContour< T >::lines_, BALL::TContour< T >::num_lines_, and BALL::TContour< T >::start_.
bool BALL::TContour< T >::getNextContourLine | ( | TContourLine< T > & | contour | ) | [inline] |
Gives access to the next ContourLine. Returns false if we had already returned the last line.
References BALL::TContour< T >::index_, BALL::TContour< T >::it_, and BALL::TContour< T >::num_lines_.
TContour< T > & BALL::TContour< T >::operator= | ( | const TContour< T > & | rhs | ) | [inline] |
Assignment operator.
References BALL::TContour< T >::end_, BALL::TContour< T >::it_, BALL::TContour< T >::num_lines_, and BALL::TContour< T >::start_.
bool BALL::TContour< T >::operator== | ( | const TContour< T > & | contour | ) | const [inline] |
Equality operator.
References BALL::TContour< T >::end_, BALL::TContour< T >::index_, BALL::TContour< T >::it_, BALL::TContour< T >::lines_, BALL::TContour< T >::num_lines_, and BALL::TContour< T >::start_.
void BALL::TContour< T >::resetCounter | ( | ) | [inline] |
Reset the ContourLine-counter.
References BALL::TContour< T >::index_, BALL::TContour< T >::it_, and BALL::TContour< T >::lines_.
double BALL::TContour< T >::end_ [protected] |
Position BALL::TContour< T >::index_ [protected] |
std::vector<TContourLine<T> >::const_iterator BALL::TContour< T >::it_ [protected] |
std::vector< TContourLine<T> > BALL::TContour< T >::lines_ [protected] |
Size BALL::TContour< T >::num_lines_ [protected] |
double BALL::TContour< T >::start_ [protected] |