#include <colorProcessor.h>
Inheritance diagram for VIEW::InterpolateColorProcessor:
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 () throw () |
start method | |
void | setMode (Mode mode) |
Mode | getMode () const |
vector< ColorRGBA > & | getColors () throw () |
const vector< ColorRGBA > & | getColors () const throw () |
void | setColors (const vector< ColorRGBA > &colors) throw () |
void | setMinColor (const ColorRGBA &color) throw () |
void | setMaxColor (const ColorRGBA &color) throw () |
const ColorRGBA & | getMinColor () const throw () |
const ColorRGBA & | getMaxColor () const throw () |
void | setMaxValue (float value) throw () |
float | getMaxValue () const throw () |
void | setMinValue (float value) throw () |
float | getMinValue () const throw () |
virtual void | interpolateColor (float value, ColorRGBA &color_to_be_set) throw () |
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_ |
|
Interpolate a color between the given colors. To be overloaded in derived classes. |