latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class drawFlowField More...
#include <ltiDrawFlowField.h>
Public Types | |
enum | eOverlayMode { NoOverlay, OnFlowfield, OnValue, OnPhase } |
enum | eVectorMode { Arrows, Lines } |
enum | eScalingMode { GridWidth, NoScaling } |
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
~parameters () | |
const char * | getTypeName () const |
parameters & | copy (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 | |
int | zoomfactor |
int | samplerate |
float | threshold |
eOverlayMode | overlayMode |
eVectorMode | vectorMode |
eScalingMode | scalingMode |
float | linecolor |
float | tipcolor |
the parameters for the class drawFlowField
Type for choosing overlayMode.
NoOverlay |
draws flow field on black background |
OnFlowfield |
draws flow field on channel, which is given for output |
OnValue |
draws flow field on internally computed value of itself |
OnPhase |
draws flow field on internally computed phase of itself |
Type for choosing ScalingMode.
GridWidth |
longest vector will be scaled to gridWidth |
NoScaling |
vectors will not be scaled in any way |
lti::drawFlowField::parameters::parameters | ( | ) |
default constructor
Reimplemented from lti::functor::parameters.
lti::drawFlowField::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
lti::drawFlowField::parameters::~parameters | ( | ) | [virtual] |
destructor
Reimplemented from lti::functor::parameters.
virtual functor::parameters* lti::drawFlowField::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
Implements lti::functor::parameters.
parameters& lti::drawFlowField::parameters::copy | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
const char* lti::drawFlowField::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::functor::parameters.
virtual bool lti::drawFlowField::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [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.
virtual bool lti::drawFlowField::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::functor::parameters.
Color of flow line.
linecolor = 0.0 ... 1.0 (default=0.3)
overlayMode can be one of: noOverlay (default), onFlowfield, onValue, onPhase.
noOverlay = draws flow field on black background
onFlowfield = draws flow field on channel, which is handed over for output
onValue/onPhase = draws flow field on internally computed value/phase
Input channels are sampled by this factor.
samplerate = 1,2,... (default=5)
scalingMode can be one of: NoScaling, GridWidth(default).
NoScaling = vectors will not be scaled
GridWidth = vectors will be scaled, so that the longest one becomes as long as grid width(=samplerate*zoomfactor)
If value of current samplingpoint is smaller than the percentage (given by threshold) of maximum value, flow line will not be drawn.
threshold = 0.0 ... 1.0 (default=0.1)
Color of flow line tip.
tipcolor = 0.0 ... 1.0 (default=1.0)
vectorMode can be one of: arrows(default), lines.
arrows = draws flow vectors as lines
lines = draws flow vectors as arrows
Tells, how much larger the output flow field channel should be compared to the the input channel(s).
zoomfactor = 1,2,... (default=1)