BALL
1.5.0
|
#include <BALL/VIEW/MODELS/standardColorProcessor.h>
Public Member Functions | |
AtomChargeColorProcessor () | |
AtomChargeColorProcessor (const AtomChargeColorProcessor &color_Processor) | |
Copy constructor. More... | |
virtual void | getColor (const Composite &composite, ColorRGBA &color_to_be_set) |
![]() | |
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 ColorRGBA & | getMinColor () const |
const ColorRGBA & | getMaxColor () 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) |
![]() | |
ColorProcessor () | |
Default Constructor. More... | |
ColorProcessor (const ColorProcessor &color_calculator) | |
Copy constructor. More... | |
virtual | ~ColorProcessor () |
Destructor. More... | |
virtual void | clear () |
void | set (const ColorProcessor &color_calculator) |
Assignment. More... | |
const ColorProcessor & | operator= (const ColorProcessor &color_calculator) |
bool | updateAlwaysNeeded () |
void | setDefaultColor (const ColorRGBA &color) |
const ColorRGBA & | getDefaultColor () const |
virtual Processor::Result | operator() (GeometricObject *&object) |
Size | getTransparency () const |
virtual void | setTransparency (Size value) |
void | setComposites (const std::list< const Composite * > *composites) |
const std::list< const Composite * > * | getComposites () |
Return a pointer to the Composites. More... | |
void | clearAtomGrid () |
void | setAdditionalGridDistance (float distance) |
float | getAdditionalGridDistance () const |
void | setMinGridSpacing (float spacing) |
AtomGrid & | getAtomGrid () |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
void | setModelType (ModelType type) |
virtual void | createAtomGrid (const Composite *from_mesh=0) |
const Atom * | getClosestItem (const Vector3 &v) const |
![]() | |
UnaryProcessor () | |
UnaryProcessor (const UnaryProcessor &) | |
virtual | ~UnaryProcessor () |
virtual bool | finish () |
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.
Definition at line 264 of file standardColorProcessor.h.
BALL::VIEW::AtomChargeColorProcessor::AtomChargeColorProcessor | ( | ) |
Default Constructor. Initialize the colors to:
BALL::VIEW::AtomChargeColorProcessor::AtomChargeColorProcessor | ( | const AtomChargeColorProcessor & | color_Processor | ) |
Copy constructor.
|
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.