latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class draw2DDistribution More...
#include <ltiDraw2DDistribution.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual functor::parameters * | clone () const |
bool | write (ioHandler &handler, const bool complete=true) const |
bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
bool | coSystem |
bool | scaleEqual |
tpoint< float > | scale |
tpoint< float > | offset |
bool | autoscale |
T | background |
T | axisColor |
std::vector< T > | palette |
std::vector< char > | marker |
the parameters for the class draw2DDistribution
lti::draw2DDistribution< T >::parameters::parameters | ( | void | ) | [inline] |
default constructor
Reimplemented from lti::functor::parameters.
References lti::draw2DDistribution< T >::parameters::autoscale, lti::draw2DDistribution< T >::parameters::axisColor, lti::draw2DDistribution< T >::parameters::background, lti::draw2DDistribution< T >::parameters::coSystem, lti::draw2DDistribution< T >::parameters::offset, lti::draw2DDistribution< T >::parameters::scale, and lti::draw2DDistribution< T >::parameters::scaleEqual.
Referenced by lti::draw2DDistribution< T >::parameters::clone().
lti::draw2DDistribution< T >::parameters::parameters | ( | const parameters & | other | ) | [inline] |
copy constructor
other | the parameters object to be copied |
References lti::draw2DDistribution< T >::parameters::copy().
lti::draw2DDistribution< T >::parameters::~parameters | ( | ) | [inline, virtual] |
destructor
Reimplemented from lti::functor::parameters.
virtual functor::parameters* lti::draw2DDistribution< T >::parameters::clone | ( | ) | const [inline, virtual] |
returns a pointer to a clone of the parameters
Implements lti::functor::parameters.
References lti::draw2DDistribution< T >::parameters::parameters().
parameters& lti::draw2DDistribution< T >::parameters::copy | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
References lti::draw2DDistribution< T >::parameters::autoscale, lti::draw2DDistribution< T >::parameters::axisColor, lti::draw2DDistribution< T >::parameters::background, lti::functor::parameters::copy(), lti::draw2DDistribution< T >::parameters::coSystem, lti::draw2DDistribution< T >::parameters::marker, lti::draw2DDistribution< T >::parameters::offset, lti::draw2DDistribution< T >::parameters::scale, and lti::draw2DDistribution< T >::parameters::scaleEqual.
Referenced by lti::draw2DDistribution< T >::parameters::operator=(), and lti::draw2DDistribution< T >::parameters::parameters().
const char* lti::draw2DDistribution< T >::parameters::getTypeName | ( | void | ) | const [inline, virtual] |
returns name of this type
Reimplemented from lti::functor::parameters.
parameters& lti::draw2DDistribution< T >::parameters::operator= | ( | const parameters & | other | ) | [inline] |
copy the contents of a parameters object
other | the parameters object to be copied |
References lti::draw2DDistribution< T >::parameters::copy().
bool lti::draw2DDistribution< T >::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [inline, virtual] |
read the parameters from the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::functor::parameters.
References lti::draw2DDistribution< T >::parameters::autoscale, lti::draw2DDistribution< T >::parameters::axisColor, lti::draw2DDistribution< T >::parameters::background, lti::draw2DDistribution< T >::parameters::coSystem, lti::draw2DDistribution< T >::parameters::marker, lti::draw2DDistribution< T >::parameters::offset, lti::ioHandler::readBegin(), lti::ioHandler::readEnd(), lti::draw2DDistribution< T >::parameters::scale, and lti::draw2DDistribution< T >::parameters::scaleEqual.
bool lti::draw2DDistribution< T >::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [inline, virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::functor::parameters.
References lti::draw2DDistribution< T >::parameters::autoscale, lti::draw2DDistribution< T >::parameters::axisColor, lti::draw2DDistribution< T >::parameters::background, lti::draw2DDistribution< T >::parameters::coSystem, lti::draw2DDistribution< T >::parameters::marker, lti::draw2DDistribution< T >::parameters::offset, lti::draw2DDistribution< T >::parameters::scale, lti::draw2DDistribution< T >::parameters::scaleEqual, lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().
bool lti::draw2DDistribution< T >::parameters::autoscale |
If true, the optimal scaling factor is computed, so that all points of the distribution are in the picture.
Default true.
Referenced by lti::draw2DDistribution< T >::parameters::copy(), lti::draw2DDistribution< T >::parameters::parameters(), lti::draw2DDistribution< T >::parameters::read(), and lti::draw2DDistribution< T >::parameters::write().
T lti::draw2DDistribution< T >::parameters::axisColor |
the drawing color of the coordinate system.
Default white.
Referenced by lti::draw2DDistribution< T >::parameters::copy(), lti::draw2DDistribution< T >::parameters::parameters(), lti::draw2DDistribution< T >::parameters::read(), and lti::draw2DDistribution< T >::parameters::write().
T lti::draw2DDistribution< T >::parameters::background |
the backgroundColor of the picture.
Default black.
Referenced by lti::draw2DDistribution< T >::parameters::copy(), lti::draw2DDistribution< T >::parameters::parameters(), lti::draw2DDistribution< T >::parameters::read(), and lti::draw2DDistribution< T >::parameters::write().
bool lti::draw2DDistribution< T >::parameters::coSystem |
if true a coordiate system is drawn.
Default false.
Referenced by lti::draw2DDistribution< T >::parameters::copy(), lti::draw2DDistribution< T >::parameters::parameters(), lti::draw2DDistribution< T >::parameters::read(), and lti::draw2DDistribution< T >::parameters::write().
std::vector<char> lti::draw2DDistribution< T >::parameters::marker |
the markers for the different ids
Referenced by lti::draw2DDistribution< T >::parameters::copy(), lti::draw2DDistribution< T >::parameters::read(), and lti::draw2DDistribution< T >::parameters::write().
tpoint<float> lti::draw2DDistribution< T >::parameters::offset |
All pixels are move by this offset.
If you set both components of offset to the half of the picture size, the drawn pixels are centred. Default (400,400).
Referenced by lti::draw2DDistribution< T >::parameters::copy(), lti::draw2DDistribution< T >::parameters::parameters(), lti::draw2DDistribution< T >::parameters::read(), and lti::draw2DDistribution< T >::parameters::write().
std::vector<T> lti::draw2DDistribution< T >::parameters::palette |
the color palette for drawing
tpoint<float> lti::draw2DDistribution< T >::parameters::scale |
the scaling factor.
Default (20,20)
Referenced by lti::draw2DDistribution< T >::parameters::copy(), lti::draw2DDistribution< T >::parameters::parameters(), lti::draw2DDistribution< T >::parameters::read(), and lti::draw2DDistribution< T >::parameters::write().
bool lti::draw2DDistribution< T >::parameters::scaleEqual |
if true, the axis will be scaled equal, otherwise the space is used as well as possible.
Default true.
Referenced by lti::draw2DDistribution< T >::parameters::copy(), lti::draw2DDistribution< T >::parameters::parameters(), lti::draw2DDistribution< T >::parameters::read(), and lti::draw2DDistribution< T >::parameters::write().