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

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

Inheritance diagram for BALL::VIEW::ModelProcessor:
BALL::UnaryProcessor< Composite > BALL::PropertyManager BALL::UnaryFunctor< Composite, Processor::Result > BALL::VIEW::AddBackboneModel BALL::VIEW::AddSurfaceModel BALL::VIEW::AtomBondModelBaseProcessor BALL::VIEW::ForceModel BALL::VIEW::LabelModel BALL::VIEW::AddCartoonModel BALL::VIEW::AddBallAndStickModel BALL::VIEW::AddLineModel BALL::VIEW::AddVanDerWaalsModel BALL::VIEW::HBondModelProcessor

List of all members.


Public Member Functions

 ModelProcessor ()
 ModelProcessor (const ModelProcessor &model_processor)
virtual ~ModelProcessor ()
virtual void clear ()
 

Clear all datastructures, but dont destroy the geometric objects.


virtual bool isValid () const
virtual void clearComposites ()
virtual void dump (std::ostream &, Size) const
GeometricObjectListgetGeometricObjects ()
 

Return the list with the created geometric objects.


const GeometricObjectListgetGeometricObjects () 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 ()

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);
				

Constructor & Destructor Documentation

BALL::VIEW::ModelProcessor::ModelProcessor (  ) 
BALL::VIEW::ModelProcessor::ModelProcessor ( const ModelProcessor model_processor  ) 
virtual BALL::VIEW::ModelProcessor::~ModelProcessor (  )  [virtual]

Destructor, calls clear


Member Function Documentation

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

Clear all datastructures, but dont destroy the geometric objects.

Reimplemented from BALL::PropertyManager.

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

virtual void BALL::VIEW::ModelProcessor::clearComposites (  )  [inline, 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 (  )  [inline, 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 [inline, 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.

Index BALL::VIEW::ModelProcessor::getDrawingPrecision (  )  const
const GeometricObjectList& BALL::VIEW::ModelProcessor::getGeometricObjects (  )  const [inline]

Return the list with the created geometric objects.

GeometricObjectList& BALL::VIEW::ModelProcessor::getGeometricObjects (  )  [inline]

Return the list with the created geometric objects.

float BALL::VIEW::ModelProcessor::getSurfaceDrawingPrecision (  )  const
virtual bool BALL::VIEW::ModelProcessor::isValid (  )  const [inline, virtual]

Test if instance is valid. Returns true if the bitvector is valid.

Returns:
bool true

Reimplemented from BALL::PropertyManager.

void BALL::VIEW::ModelProcessor::setDrawingPrecision ( Index  precision  ) 
void BALL::VIEW::ModelProcessor::setSurfaceDrawingPrecision ( float  precision  ) 

Member Data Documentation