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

Base class for all model processors. More...

#include <modelProcessor.h>

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

List of all members.


Public Member Functions

ModelProcessor (const ModelProcessor &model_processor)
virtual ~ModelProcessor ()
Destructor, calls clear.
virtual void clear ()
Clear all datastructures, but dont destroy the geometric objects.
virtual bool isValid () const
Test if instance is valid.
virtual void clearComposites ()
Needed in derived classes, which store references to the Composite instances they worked on.
virtual void dump (std::ostream &, Size) const
Internal state dump.
GeometricObjectList & getGeometricObjects ()
Return the list with the created geometric objects.
const GeometricObjectList & getGeometricObjects () const
Return the list with the created geometric objects.
void setDrawingPrecision (Index precision)
Index getDrawingPrecision () const
void setSurfaceDrawingPrecision (float precision)
float getSurfaceDrawingPrecision () const
virtual bool createGeometricObjects ()
Method to create geometric objects.

Protected Attributes

GeometricObjectList geometric_objects_
Index drawing_precision_
float surface_drawing_precision_

Detailed Description

Base class for all model processors.

Every model processor has a list with all GeometricObject 's it has created. It also stores the drawing precision, it will use for creating new models. You can apply model processors like every other UnaryProcessor for Composite 's:

                                        Molecule m;
                                        ModelProcessor model_processor;
                                        m.apply(model_processor);
                                

Member Function Documentation

virtual void BALL::VIEW::ModelProcessor::clearComposites ( ) [virtual]

Needed in derived classes, which store references to the Composite instances they worked on.

Here only needed for a common interface and therefore empty.

Reimplemented in BALL::VIEW::AtomBondModelBaseProcessor, and BALL::VIEW::AddSurfaceModel.

virtual bool BALL::VIEW::ModelProcessor::createGeometricObjects ( ) [virtual]

Method to create geometric objects.

This method is called in Representation::update() after all operator() was called for all Composites. To be overloaded in derived classes

Reimplemented in BALL::VIEW::AtomBondModelBaseProcessor, BALL::VIEW::AddBackboneModel, BALL::VIEW::AddBallAndStickModel, BALL::VIEW::LabelModel, and BALL::VIEW::AddSurfaceModel.

virtual void BALL::VIEW::ModelProcessor::dump ( std::ostream & s,
Size depth
) const [virtual]

Internal state dump.

Dump the current internal state of {*this} to the output ostream s with dumping depth depth .

Parameters:
s - output stream where to output the internal state of {*this}
depth - the dumping depth

Reimplemented from BALL::PropertyManager.

Reimplemented in BALL::VIEW::AtomBondModelBaseProcessor, BALL::VIEW::AddBackboneModel, BALL::VIEW::AddBallAndStickModel, BALL::VIEW::AddLineModel, BALL::VIEW::AddSurfaceModel, and BALL::VIEW::AddVanDerWaalsModel.

virtual bool BALL::VIEW::ModelProcessor::isValid ( ) const [virtual]

Test if instance is valid.

Returns true if the bitvector is valid.

Returns:
bool true

Reimplemented from BALL::PropertyManager.


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