Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::ElementColorProcessor Class Reference
[Model Processors]

ElementColorProcessor class. More...

#include <standardColorProcessor.h>

Inheritance diagram for VIEW::ElementColorProcessor:

VIEW::ColorProcessor UnaryProcessor< GeometricObject * > UnaryFunctor< GeometricObject *, Processor::Result > List of all members.

Public Member Functions

Constructors
 ElementColorProcessor () throw ()
 Default Constructor.
void setTransparency (Size value) throw ()
 Set the transparency.
virtual void getColor (const Composite &composite, ColorRGBA &color_to_be_set)
 Calculate a color for a Composite.
HashMap< Position, ColorRGBA > & getColorMap ()
const HashMap< Position, ColorRGBA > & getColorMap () const

Protected Attributes

HashMap< Position, ColorRGBAcolor_map_

Detailed Description

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.


Constructor & Destructor Documentation

VIEW::ElementColorProcessor::ElementColorProcessor  )  throw ()
 

Default Constructor.

Initialize the internal ColorMap to contain all element colors with element numbers as names.


Member Function Documentation

virtual void VIEW::ElementColorProcessor::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 VIEW::ColorProcessor.

void VIEW::ElementColorProcessor::setTransparency Size  value  )  throw () [virtual]
 

Set the transparency.

To be overloaded in derived classes

Reimplemented from VIEW::ColorProcessor.