#include <BALL/VIEW/MODELS/standardColorProcessor.h>
Public Member Functions | |
AtomChargeColorProcessor () | |
AtomChargeColorProcessor (const AtomChargeColorProcessor &color_Processor) | |
Copy constructor. | |
virtual void | getColor (const Composite &composite, ColorRGBA &color_to_be_set) |
AtomChargeColorProcessor class. The class AtomChargeColorProcessor is derived from the class ColorProcessor. There can be set three colors for the charge boundaries. A color for a negative charge (charge = -1), a color for the neutral charge (charge = 0) and a color for the positive charge (charge = +1). If a charge lies between these boundaries the resulting color will be interpolated according to the charge. If a charge is greater than +1 or lower than -1 it will be set to +1 or -1.
BALL::VIEW::AtomChargeColorProcessor::AtomChargeColorProcessor | ( | ) |
Default Constructor. Initialize the colors to:
BALL::VIEW::AtomChargeColorProcessor::AtomChargeColorProcessor | ( | const AtomChargeColorProcessor & | color_Processor | ) |
Copy constructor.
virtual void BALL::VIEW::AtomChargeColorProcessor::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.