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

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

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

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

Definition at line 37 of file modelProcessor.h.


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.

Definition at line 65 of file modelProcessor.h.

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.

Definition at line 97 of file modelProcessor.h.

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.

Definition at line 69 of file modelProcessor.h.

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

Return the list with the created geometric objects.

Definition at line 77 of file modelProcessor.h.

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

Return the list with the created geometric objects.

Definition at line 73 of file modelProcessor.h.

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.

Definition at line 59 of file modelProcessor.h.

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

Member Data Documentation

Definition at line 106 of file modelProcessor.h.

Definition at line 103 of file modelProcessor.h.

Definition at line 109 of file modelProcessor.h.

Generated by  doxygen 1.6.3