BALL::VIEW::InterpolateColorProcessor Class Reference

#include <BALL/VIEW/MODELS/colorProcessor.h>

Inheritance diagram for BALL::VIEW::InterpolateColorProcessor:
BALL::VIEW::ColorProcessor BALL::UnaryProcessor< GeometricObject * > BALL::UnaryFunctor< GeometricObject *, Processor::Result > BALL::VIEW::AtomChargeColorProcessor BALL::VIEW::ForceColorProcessor BALL::VIEW::OccupancyColorProcessor BALL::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 ()
 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 ColorRGBAgetMinColor () const
const ColorRGBAgetMaxColor () 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< ColorRGBAcolors_
Mode mode_
float max_value_
float min_value_
float x_

Detailed Description

Base class for ColorProcessors, that interpolate between two values


Member Enumeration Documentation

Enumerator:
USE_OUTSIDE_COLOR 
DEFAULT_COLOR_FOR_OUTSIDE_COLORS 
NO_OUTSIDE_COLORS 

Constructor & Destructor Documentation

BALL::VIEW::InterpolateColorProcessor::InterpolateColorProcessor ( )
BALL::VIEW::InterpolateColorProcessor::InterpolateColorProcessor ( const InterpolateColorProcessor pro)

Member Function Documentation

vector<ColorRGBA>& BALL::VIEW::InterpolateColorProcessor::getColors ( ) [inline]
const vector<ColorRGBA>& BALL::VIEW::InterpolateColorProcessor::getColors ( ) const [inline]
const ColorRGBA& BALL::VIEW::InterpolateColorProcessor::getMaxColor ( ) const
float BALL::VIEW::InterpolateColorProcessor::getMaxValue ( ) const [inline]
const ColorRGBA& BALL::VIEW::InterpolateColorProcessor::getMinColor ( ) const
float BALL::VIEW::InterpolateColorProcessor::getMinValue ( ) const [inline]
Mode BALL::VIEW::InterpolateColorProcessor::getMode ( ) const [inline]
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]
void BALL::VIEW::InterpolateColorProcessor::setMaxColor ( const ColorRGBA color)
void BALL::VIEW::InterpolateColorProcessor::setMaxValue ( float  value) [inline]
void BALL::VIEW::InterpolateColorProcessor::setMinColor ( const ColorRGBA color)
void BALL::VIEW::InterpolateColorProcessor::setMinValue ( float  value) [inline]
void BALL::VIEW::InterpolateColorProcessor::setMode ( Mode  mode) [inline]
virtual bool BALL::VIEW::InterpolateColorProcessor::start ( ) [virtual]

start method

Reimplemented from BALL::VIEW::ColorProcessor.


Member Data Documentation