Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::InterpolateColorProcessor Class Reference
[Model Processors]

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

#include <colorProcessor.h>

Inheritance diagram for VIEW::InterpolateColorProcessor:

VIEW::ColorProcessor UnaryProcessor< GeometricObject * > UnaryFunctor< GeometricObject *, Processor::Result > VIEW::AtomChargeColorProcessor VIEW::ForceColorProcessor VIEW::OccupancyColorProcessor VIEW::TemperatureFactorColorProcessor 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 () 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 ColorRGBAgetMinColor () const throw ()
const ColorRGBAgetMaxColor () 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< ColorRGBAcolors_
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 VIEW::InterpolateColorProcessor::interpolateColor float  value,
ColorRGBA color_to_be_set
throw () [virtual]
 

Interpolate a color between the given colors.

To be overloaded in derived classes.