BALL
1.5.0
|
#include <BALL/VIEW/MODELS/standardColorProcessor.h>
Constructors | |
HashMap< Position, ColorRGBA > | color_map_ |
ElementColorProcessor () | |
void | setTransparency (Size value) |
virtual void | getColor (const Composite &composite, ColorRGBA &color_to_be_set) |
HashMap< Position, ColorRGBA > & | getColorMap () |
const HashMap< Position, ColorRGBA > & | getColorMap () const |
ElementColorProcessor class. The class ElementColorProcessor is derived from the class ColorProcessor. It is used for calculating element colors of a given Atom object. In the constructor a ColorMap, that contains all colors corresponding to the element symbols of atoms, is initialised. The ColorProcessor can be set in the class DisplayProperties to color an entire molecular object in its element colors.
Definition at line 49 of file standardColorProcessor.h.
BALL::VIEW::ElementColorProcessor::ElementColorProcessor | ( | ) |
Default Constructor. Initialize the internal ColorMap to contain all element colors with element numbers as names.
|
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.
Definition at line 73 of file standardColorProcessor.h.
Definition at line 76 of file standardColorProcessor.h.
|
virtual |
Set the transparency. To be overloaded in derived classes
Reimplemented from BALL::VIEW::ColorProcessor.
Definition at line 81 of file standardColorProcessor.h.