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

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

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

List of all members.

Public Member Functions

 ResidueNameColorProcessor ()
void setTransparency (Size value)
virtual void getColor (const Composite &composite, ColorRGBA &color_to_be_set)
StringHashMap< ColorRGBA > & getColorMap ()
const StringHashMap< ColorRGBA > & getColorMap () const

Protected Member Functions

bool canUseMeshShortcut_ (const Composite &composite)

Protected Attributes

StringHashMap< ColorRGBAcolor_map_
Residue dummy_residue

Detailed Description

ResidueNameColorProcessor is derived from the class ColorProcessor. It is used for calculating residue colors of a given Atom object (A residue color of a given atom is the color of the residue the atom is contained in). In the constructor a ColorMap is initialized that contains all colors corresponding to the names of the residues.

Definition at line 222 of file standardColorProcessor.h.


Constructor & Destructor Documentation

Default Constructor. Initialize the internal ColorMap to contain all residue colors with residue names as names.


Member Function Documentation

bool BALL::VIEW::ResidueNameColorProcessor::canUseMeshShortcut_ ( const Composite composite) [protected, virtual]

Reimplemented from BALL::VIEW::ColorProcessor.

virtual void BALL::VIEW::ResidueNameColorProcessor::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.

Definition at line 242 of file standardColorProcessor.h.

Definition at line 245 of file standardColorProcessor.h.

Set the transparency. To be overloaded in derived classes

Reimplemented from BALL::VIEW::ColorProcessor.


Member Data Documentation

Definition at line 248 of file standardColorProcessor.h.

Definition at line 249 of file standardColorProcessor.h.

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