BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Types | Public Member Functions | Protected Attributes
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

Definition at line 206 of file colorProcessor.h.


Member Enumeration Documentation

Enumerator:
USE_OUTSIDE_COLOR 
DEFAULT_COLOR_FOR_OUTSIDE_COLORS 
NO_OUTSIDE_COLORS 

Definition at line 212 of file colorProcessor.h.


Constructor & Destructor Documentation


Member Function Documentation

Definition at line 243 of file colorProcessor.h.

Definition at line 246 of file colorProcessor.h.

Definition at line 267 of file colorProcessor.h.

Definition at line 273 of file colorProcessor.h.

Definition at line 240 of file colorProcessor.h.

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]

Definition at line 249 of file colorProcessor.h.

Definition at line 264 of file colorProcessor.h.

Definition at line 270 of file colorProcessor.h.

Definition at line 237 of file colorProcessor.h.

start method

Reimplemented from BALL::VIEW::ColorProcessor.


Member Data Documentation

Definition at line 287 of file colorProcessor.h.

Definition at line 283 of file colorProcessor.h.

Definition at line 291 of file colorProcessor.h.

Definition at line 283 of file colorProcessor.h.

Definition at line 292 of file colorProcessor.h.

Definition at line 289 of file colorProcessor.h.

Definition at line 295 of file colorProcessor.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines