BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
BALL::VIEW::AtomChargeColorProcessor Class Reference

#include <BALL/VIEW/MODELS/standardColorProcessor.h>

Inheritance diagram for BALL::VIEW::AtomChargeColorProcessor:
BALL::VIEW::InterpolateColorProcessor BALL::VIEW::ColorProcessor BALL::UnaryProcessor< GeometricObject * > BALL::UnaryFunctor< GeometricObject *, Processor::Result >

List of all members.

Public Member Functions

 AtomChargeColorProcessor ()
 AtomChargeColorProcessor (const AtomChargeColorProcessor &color_Processor)
 Copy constructor.
virtual void getColor (const Composite &composite, ColorRGBA &color_to_be_set)

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.

Definition at line 264 of file standardColorProcessor.h.


Constructor & Destructor Documentation

Default Constructor. Initialize the colors to:

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

Copy constructor.


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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines