BALL::VIEW::AtomChargeColorProcessor Class Reference
[Model Processors]

AtomChargeColorProcessor class. More...

#include <standardColorProcessor.h>

Inheritance diagram for BALL::VIEW::AtomChargeColorProcessor:
Inheritance graph
[legend]

List of all members.


Public Member Functions

AtomChargeColorProcessor ()
Default Constructor.
AtomChargeColorProcessor (const AtomChargeColorProcessor &color_Processor)
Copy constructor.
virtual void getColor (const Composite &composite, ColorRGBA &color_to_be_set)
Calculate a color for a Composite.

Detailed Description

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.


Constructor & Destructor Documentation

BALL::VIEW::AtomChargeColorProcessor::AtomChargeColorProcessor ( )

Default Constructor.

Initialize the colors to:

  • positive color set to blue ("0000FFFF")
  • neutral color set to white ("FFFFFFFF")
  • negative color set to red ("FF0000FF")

Member Function Documentation

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.


Generated on Thu Aug 6 18:30:57 2009 for BALL by doxygen 1.5.8