#include <colorProcessor.h>
Public Types |
|
enum | Mode { USE_OUTSIDE_COLOR = 0, DEFAULT_COLOR_FOR_OUTSIDE_COLORS, NO_OUTSIDE_COLORS } |
Public Member Functions |
|
InterpolateColorProcessor (const InterpolateColorProcessor &pro) | |
virtual bool | start () |
start method |
|
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) |
Interpolate a color between the
given colors. |
|
Protected Attributes |
|
ColorRGBA | min_color_ |
ColorRGBA | max_color_ |
vector< ColorRGBA > | colors_ |
Mode | mode_ |
float | max_value_ |
float | min_value_ |
float | x_ |
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.