LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::draw3DDistribution Class Reference

Draws a three dimensional distribution. More...

#include <ltiDraw3DDistribution.h>

Inheritance diagram for lti::draw3DDistribution:
Inheritance graph
[legend]
Collaboration diagram for lti::draw3DDistribution:
Collaboration graph
[legend]

List of all members.

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
draw3DDistributioncopy (const draw3DDistribution &other)
draw3DDistributionoperator= (const draw3DDistribution &other)
virtual functorclone () const
const parametersgetParameters () const

Protected Attributes

std::map< int, rgbPixel > * idsToColor
std::map< int, std::string > * idsToMarker

Detailed Description

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.


Constructor & Destructor Documentation

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

Parameters:
other the object to be copied
virtual lti::draw3DDistribution::~draw3DDistribution (  )  [virtual]

destructor


Member Function Documentation

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.

Parameters:
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.
Returns:
true if apply successful or false otherwise.
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.

Parameters:
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.
Returns:
true if apply successful or false otherwise.
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.

Parameters:
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.
Returns:
true if apply successful or false otherwise.
bool lti::draw3DDistribution::apply ( scene3D< rgbPixel > &  drawer,
const dmatrix dist,
const ivector ids,
const bool &  hold = false 
) const

Draws a three dimensional distribution.

Parameters:
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.
Returns:
true if apply successful or false otherwise.
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.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

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  ) 

alias for copy member

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

Reimplemented from lti::functor.


Member Data Documentation

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.


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

Generated on Sat Apr 10 15:27:15 2010 for LTI-Lib by Doxygen 1.6.1