latest version v1.9 - last update 10 Apr 2010 |
Draws a three dimensional distribution. More...
#include <ltiDraw3DDistribution.h>
Classes | |
class | parameters |
the parameters for the class draw3DDistribution More... | |
Public Member Functions | |
draw3DDistribution () | |
draw3DDistribution (const parameters &par) | |
draw3DDistribution (const draw3DDistribution &other) | |
virtual | ~draw3DDistribution () |
virtual const char * | getTypeName () const |
bool | apply (scene3D< rgbPixel > &drawer, const dmatrix &dist, const ivector &ids, const bool &hold=false) const |
bool | apply (scene3D< rgbPixel > &drawer, const dmatrix &dist, const bool &hold=false) const |
bool | apply (scene3D< rgbPixel > &drawer, const dmatrix &dist, int first, int second, int third, const bool &hold=false) const |
bool | apply (scene3D< rgbPixel > &drawer, const dvector &x, const dvector &y, const dvector &z, const bool &hold=false) const |
draw3DDistribution & | copy (const draw3DDistribution &other) |
draw3DDistribution & | operator= (const draw3DDistribution &other) |
virtual functor * | clone () const |
const parameters & | getParameters () const |
Protected Attributes | |
std::map< int, rgbPixel > * | idsToColor |
std::map< int, std::string > * | idsToMarker |
Draws a three dimensional distribution.
With this functor a three dimensional distribution is drawn. If the functor gets an id vector that gives each point in the distribution an id, all points with the same id get the same color and all differnt ids get different color. By default there is a colorMap with 15 different colors. If there are more than 15 different ids, different markers will be used. The apply methods, that haven't an id vector use the first not used negativ id to save the color used for drawing this distribution. With the hold option you can choose, if the old scene is erased before the distribution is drawn or if it is drawn into the same scene.
lti::draw3DDistribution::draw3DDistribution | ( | ) |
default constructor
lti::draw3DDistribution::draw3DDistribution | ( | const parameters & | par | ) |
Construct a functor using the given parameters.
lti::draw3DDistribution::draw3DDistribution | ( | const draw3DDistribution & | other | ) |
copy constructor
other | the object to be copied |
virtual lti::draw3DDistribution::~draw3DDistribution | ( | ) | [virtual] |
destructor
bool lti::draw3DDistribution::apply | ( | scene3D< rgbPixel > & | drawer, | |
const dvector & | x, | |||
const dvector & | y, | |||
const dvector & | z, | |||
const bool & | hold = false | |||
) | const |
Draws a three dimensions distribution.
drawer | the scene that is used for drawing | |
x | the first dimension. | |
y | the second dimension. | |
z | the third dimension. | |
hold | if true the old scene is not erased. |
bool lti::draw3DDistribution::apply | ( | scene3D< rgbPixel > & | drawer, | |
const dmatrix & | dist, | |||
int | first, | |||
int | second, | |||
int | third, | |||
const bool & | hold = false | |||
) | const |
Draws a three dimensions of a high dimensional distribution.
drawer | the scene that is used for drawing | |
dist | the distribution | |
first | the column in dist with the first dimension. | |
second | the column in dist with the second dimension. | |
third | the column in dist with the third dimension. | |
hold | if true the old scene is not erased. |
bool lti::draw3DDistribution::apply | ( | scene3D< rgbPixel > & | drawer, | |
const dmatrix & | dist, | |||
const bool & | hold = false | |||
) | const |
Draws a three dimensional distribution.
For the id the first free negativ id is chosen.
drawer | the scene that is used for drawing | |
dist | the 3 dimensional distribution that is drawn. | |
hold | if true the old scene is not erased. |
bool lti::draw3DDistribution::apply | ( | scene3D< rgbPixel > & | drawer, | |
const dmatrix & | dist, | |||
const ivector & | ids, | |||
const bool & | hold = false | |||
) | const |
Draws a three dimensional distribution.
drawer | the scene that is used for drawing | |
dist | the 3 dimensional distribution that is drawn. | |
ids | the ids corresponding to the points in the distribution | |
hold | if true the old scene is not erased. |
virtual functor* lti::draw3DDistribution::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
draw3DDistribution& lti::draw3DDistribution::copy | ( | const draw3DDistribution & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::functor.
const parameters& lti::draw3DDistribution::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::functor.
virtual const char* lti::draw3DDistribution::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("draw3DDistribution")
Reimplemented from lti::functor.
draw3DDistribution& lti::draw3DDistribution::operator= | ( | const draw3DDistribution & | other | ) |
std::map<int,rgbPixel>* lti::draw3DDistribution::idsToColor [protected] |
Saves the assignment of ids to colors.
std::map<int,std::string>* lti::draw3DDistribution::idsToMarker [protected] |
Saves the assignment of ids to marker types.