BALL::VIEW::InterpolateColorProcessor Class Reference
[Model Processors]

Base class for ColorProcessors, that interpolate between two values. More...

#include <colorProcessor.h>

Inheritance diagram for BALL::VIEW::InterpolateColorProcessor:
Inheritance graph
[legend]

List of all members.


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_

Detailed Description

Base class for ColorProcessors, that interpolate between two values.

Member Function Documentation

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.


Generated on Thu Aug 6 18:30:57 2009 for BALL by doxygen 1.5.8