#include <BALL/VIEW/MODELS/standardColorProcessor.h>
Public Member Functions | |
ResidueNumberColorProcessor () | |
virtual void | getColor (const Composite &composite, ColorRGBA &color_to_be_set) |
void | setFirstColor (const ColorRGBA &color) |
void | setMiddleColor (const ColorRGBA &color) |
void | setLastColor (const ColorRGBA &color) |
const ColorRGBA & | getFirstColor () const |
const ColorRGBA & | getMiddleColor () const |
const ColorRGBA & | getLastColor () const |
virtual bool | start () |
Protected Member Functions | |
bool | canUseMeshShortcut_ (const Composite &composite) |
Protected Attributes | |
GeometricObjectList | list_ |
ColorRGBA | first_color_ |
ColorRGBA | middle_color_ |
ColorRGBA | last_color_ |
ColorMap | table_ |
Residue | dummy_residue_ |
HashMap< const Residue *, Position > | residue_map_ |
ColorProcessor for coloring by the numbers of the Residue 's.
BALL::VIEW::ResidueNumberColorProcessor::ResidueNumberColorProcessor | ( | ) |
bool BALL::VIEW::ResidueNumberColorProcessor::canUseMeshShortcut_ | ( | const Composite & | composite | ) | [protected, virtual] |
Reimplemented from BALL::VIEW::ColorProcessor.
virtual void BALL::VIEW::ResidueNumberColorProcessor::getColor | ( | const Composite & | composite, |
ColorRGBA & | color_to_be_set | ||
) | [virtual] |
Calculate a color for a Composite. The given ColorRGBA instance is set to the calculated color. This method is called by the operator() method. Here it just sets the default color. You have to overload this operator in derived classes.
Reimplemented from BALL::VIEW::ColorProcessor.
const ColorRGBA& BALL::VIEW::ResidueNumberColorProcessor::getFirstColor | ( | ) | const [inline] |
const ColorRGBA& BALL::VIEW::ResidueNumberColorProcessor::getLastColor | ( | ) | const [inline] |
const ColorRGBA& BALL::VIEW::ResidueNumberColorProcessor::getMiddleColor | ( | ) | const [inline] |
void BALL::VIEW::ResidueNumberColorProcessor::setFirstColor | ( | const ColorRGBA & | color | ) | [inline] |
void BALL::VIEW::ResidueNumberColorProcessor::setLastColor | ( | const ColorRGBA & | color | ) | [inline] |
void BALL::VIEW::ResidueNumberColorProcessor::setMiddleColor | ( | const ColorRGBA & | color | ) | [inline] |
virtual bool BALL::VIEW::ResidueNumberColorProcessor::start | ( | ) | [virtual] |
start method
Reimplemented from BALL::VIEW::ColorProcessor.
HashMap<const Residue*, Position> BALL::VIEW::ResidueNumberColorProcessor::residue_map_ [protected] |