BALL
1.5.0
|
#include <BALL/VIEW/MODELS/standardColorProcessor.h>
Public Member Functions | |
Constructors | |
ElementColorProcessor () | |
void | setTransparency (Size value) |
virtual void | getColor (const Composite &composite, ColorRGBA &color_to_be_set) |
HashMap< Position, ColorRGBA > & | getColorMap () |
const HashMap< Position, ColorRGBA > & | getColorMap () const |
![]() | |
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... | |
virtual bool | start () |
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 |
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 () |
Protected Attributes | |
HashMap< Position, ColorRGBA > | color_map_ |
![]() | |
bool | update_always_needed_ |
ColorRGBA | default_color_ |
ColorRGBA | selection_color_ |
Size | transparency_ |
const std::list< const Composite * > * | composites_ |
AtomGrid | atom_grid_ |
ModelType | model_type_ |
const Composite * | last_composite_of_grid_ |
float | additional_grid_distance_ |
float | min_spacing_ |
Additional Inherited Members | |
![]() | |
typedef HashSet< const Composite * > | CompositeSet |
A HashSet with the used Composites, see also Representation. More... | |
typedef HashGrid3< const Atom * > | AtomGrid |
a threedimensioal grid with the pointers to the atoms More... | |
typedef HashGridBox3< const Atom * > | AtomBox |
a single box in the threedimensional grid More... | |
![]() | |
typedef Processor::Result | result_type |
typedef GeometricObject * | argument_type |
typedef GeometricObject * & | argument_reference |
typedef const GeometricObject * & | const_argument_reference |
typedef GeometricObject * * | argument_pointer |
typedef const GeometricObject * * | const_argument_pointer |
![]() | |
virtual void | colorMeshFromGrid_ (Mesh &mesh) |
virtual bool | canUseMeshShortcut_ (const Composite &) |
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.
Definition at line 49 of file standardColorProcessor.h.
BALL::VIEW::ElementColorProcessor::ElementColorProcessor | ( | ) |
Default Constructor. Initialize the internal ColorMap to contain all element colors with element numbers as names.
|
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 73 of file standardColorProcessor.h.
Definition at line 76 of file standardColorProcessor.h.
|
virtual |
Set the transparency. To be overloaded in derived classes
Reimplemented from BALL::VIEW::ColorProcessor.
Definition at line 81 of file standardColorProcessor.h.