latest version v1.9 - last update 10 Apr 2010 |
The parameters for the class viewerBase3D. More...
#include <ltiViewerBase3D.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
virtual parameters & | copy (const parameters &other) |
virtual parameters & | operator= (const parameters &other) |
virtual functor::parameters * | clone () const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
std::string | saveName |
rgbPixel | backgroundColor |
rgbPixel | axisColor |
point | windowSize |
bool | axisColorFixed |
draw3D< rgbPixel >::parameters | camParameters |
dpoint3D | camTarget |
double | camRadius |
The parameters for the class viewerBase3D.
The parameters for viewer classes have two functions:
First, the allow the user to indicate display options, like if he wants to show the system axes. This is much like the parameters functionality for all functors in the ltilib.
Second, the viewers have usually dialogs, that allow users to specify the desired options interactivelly (while displaying data). It is often usefull to get in that dialog some information about the image or data currently being displayed. This information is provided to the configuration dialog using some attributes in the parameters class. (this may be changed in the near future)
lti::viewerBase3D::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::viewerBase::parameters.
Reimplemented in lti::histogramViewer::parameters, and lti::scene3DViewer::parameters.
lti::viewerBase3D::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
lti::viewerBase3D::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::viewerBase::parameters.
Reimplemented in lti::histogramViewer::parameters, and lti::scene3DViewer::parameters.
virtual functor::parameters* lti::viewerBase3D::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Reimplemented from lti::viewerBase::parameters.
Reimplemented in lti::histogramViewer::parameters, and lti::scene3DViewer::parameters.
virtual parameters& lti::viewerBase3D::parameters::copy | ( | const parameters & | other | ) | [virtual] |
copy the contents of a parameters object
other | the parameters object to be copied |
const char* lti::viewerBase3D::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::viewerBase::parameters.
Reimplemented in lti::histogramViewer::parameters, and lti::scene3DViewer::parameters.
virtual parameters& lti::viewerBase3D::parameters::operator= | ( | const parameters & | other | ) | [virtual] |
copy the contents of a parameters object
other | the parameters object to be copied |
virtual bool lti::viewerBase3D::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [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::viewerBase::parameters.
Reimplemented in lti::histogramViewer::parameters, and lti::scene3DViewer::parameters.
virtual bool lti::viewerBase3D::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [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::viewerBase::parameters.
Reimplemented in lti::histogramViewer::parameters, and lti::scene3DViewer::parameters.
Color of the axis, if the corresponding mode
is specified for a fixed axis color.
Default: lti::White (lti::rgbPixel(255,255,255))
If true, the given color for the axis will be used.
Otherwise gradients for red, green and blue will be used.
Default: true
Color of the background.
Default: lti::Black (lti::rgbPixel(0,0,0))
camera parameters for the 3D graphics.
Defaut values: camPos = computed from azimuth, elevation, camRadius and camTarget. azimuth = 45deg (45*Pi/180 radians) elevation = 60deg (60*Pi/180 radians) center = (0.5,0.5); perspective = 0.002; zoom = 0.5;
Point in the 3D space to which the camera always look at.
Default value: (128,128,128)
std::string lti::viewerBase3D::parameters::saveName |
init filename (with path) for saving
Default: image.png
Size of the viewer window.
Default: point(256,256)