BALL
1.4.1
|
#include <BALL/VIEW/MODELS/colorProcessor.h>
Public Types | |
enum | Mode { USE_OUTSIDE_COLOR = 0, DEFAULT_COLOR_FOR_OUTSIDE_COLORS, NO_OUTSIDE_COLORS } |
Public Member Functions | |
InterpolateColorProcessor () | |
InterpolateColorProcessor (const InterpolateColorProcessor &pro) | |
virtual bool | start () |
void | setMode (Mode mode) |
Mode | getMode () const |
vector< ColorRGBA > & | getColors () |
const vector< ColorRGBA > & | getColors () const |
void | setColors (const vector< ColorRGBA > &colors) |
void | setMinColor (const ColorRGBA &color) |
void | setMaxColor (const ColorRGBA &color) |
const ColorRGBA & | getMinColor () const |
const ColorRGBA & | getMaxColor () const |
void | setMaxValue (float value) |
float | getMaxValue () const |
void | setMinValue (float value) |
float | getMinValue () const |
virtual void | interpolateColor (float value, ColorRGBA &color_to_be_set) |
Protected Attributes | |
ColorRGBA | min_color_ |
ColorRGBA | max_color_ |
vector< ColorRGBA > | colors_ |
Mode | mode_ |
float | max_value_ |
float | min_value_ |
float | x_ |
Base class for ColorProcessors, that interpolate between two values
Definition at line 206 of file colorProcessor.h.
Definition at line 212 of file colorProcessor.h.
BALL::VIEW::InterpolateColorProcessor::InterpolateColorProcessor | ( | const InterpolateColorProcessor & | pro | ) |
vector<ColorRGBA>& BALL::VIEW::InterpolateColorProcessor::getColors | ( | ) | [inline] |
Definition at line 243 of file colorProcessor.h.
const vector<ColorRGBA>& BALL::VIEW::InterpolateColorProcessor::getColors | ( | ) | const [inline] |
Definition at line 246 of file colorProcessor.h.
const ColorRGBA& BALL::VIEW::InterpolateColorProcessor::getMaxColor | ( | ) | const |
float BALL::VIEW::InterpolateColorProcessor::getMaxValue | ( | ) | const [inline] |
Definition at line 267 of file colorProcessor.h.
const ColorRGBA& BALL::VIEW::InterpolateColorProcessor::getMinColor | ( | ) | const |
float BALL::VIEW::InterpolateColorProcessor::getMinValue | ( | ) | const [inline] |
Definition at line 273 of file colorProcessor.h.
Mode BALL::VIEW::InterpolateColorProcessor::getMode | ( | ) | const [inline] |
Definition at line 240 of file colorProcessor.h.
virtual void BALL::VIEW::InterpolateColorProcessor::interpolateColor | ( | float | value, |
ColorRGBA & | color_to_be_set | ||
) | [virtual] |
Interpolate a color between the given colors. To be overloaded in derived classes.
void BALL::VIEW::InterpolateColorProcessor::setColors | ( | const vector< ColorRGBA > & | colors | ) | [inline] |
Definition at line 249 of file colorProcessor.h.
void BALL::VIEW::InterpolateColorProcessor::setMaxColor | ( | const ColorRGBA & | color | ) |
void BALL::VIEW::InterpolateColorProcessor::setMaxValue | ( | float | value | ) | [inline] |
Definition at line 264 of file colorProcessor.h.
void BALL::VIEW::InterpolateColorProcessor::setMinColor | ( | const ColorRGBA & | color | ) |
void BALL::VIEW::InterpolateColorProcessor::setMinValue | ( | float | value | ) | [inline] |
Definition at line 270 of file colorProcessor.h.
void BALL::VIEW::InterpolateColorProcessor::setMode | ( | Mode | mode | ) | [inline] |
Definition at line 237 of file colorProcessor.h.
virtual bool BALL::VIEW::InterpolateColorProcessor::start | ( | ) | [virtual] |
start method
Reimplemented from BALL::VIEW::ColorProcessor.
vector<ColorRGBA> BALL::VIEW::InterpolateColorProcessor::colors_ [protected] |
Definition at line 287 of file colorProcessor.h.
Definition at line 283 of file colorProcessor.h.
Definition at line 291 of file colorProcessor.h.
Definition at line 283 of file colorProcessor.h.
Definition at line 292 of file colorProcessor.h.
Mode BALL::VIEW::InterpolateColorProcessor::mode_ [protected] |
Definition at line 289 of file colorProcessor.h.
float BALL::VIEW::InterpolateColorProcessor::x_ [protected] |
Definition at line 295 of file colorProcessor.h.