Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::ModelProcessor Class Reference
[Model Processors]

Base class for all model processors. More...

#include <modelProcessor.h>

Inheritance diagram for VIEW::ModelProcessor:

UnaryProcessor< Composite > PropertyManager UnaryFunctor< Composite, Processor::Result > VIEW::AddBackboneModel VIEW::AddSurfaceModel VIEW::AtomBondModelBaseProcessor VIEW::ForceModel VIEW::LabelModel VIEW::AddCartoonModel VIEW::AddBallAndStickModel VIEW::AddLineModel VIEW::AddVanDerWaalsModel VIEW::HBondModelProcessor List of all members.

Public Member Functions

 ModelProcessor (const ModelProcessor &model_processor) throw ()
virtual ~ModelProcessor () throw ()
 Destructor, calls clear.
virtual void clear () throw ()
 Clear all datastructures, but dont destroy the geometric objects.
virtual bool isValid () const throw ()
 Test if instance is valid.
virtual void clearComposites () throw ()
 Needed in derived classes, which store references to the Composite instances they worked on.
virtual void dump (std::ostream &, Size) const throw ()
 Internal state dump.
GeometricObjectListgetGeometricObjects () throw ()
 Return the list with the created geometric objects.
const GeometricObjectListgetGeometricObjects () const throw ()
 Return the list with the created geometric objects.
void setDrawingPrecision (Index precision) throw ()
Index getDrawingPrecision () const throw ()
void setSurfaceDrawingPrecision (float precision) throw ()
float getSurfaceDrawingPrecision () const throw ()
virtual bool createGeometricObjects () throw ()
 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 VIEW::ModelProcessor::clearComposites  )  throw () [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 VIEW::AtomBondModelBaseProcessor, and VIEW::AddSurfaceModel.

virtual bool VIEW::ModelProcessor::createGeometricObjects  )  throw () [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 VIEW::AtomBondModelBaseProcessor, VIEW::AddBackboneModel, VIEW::AddBallAndStickModel, VIEW::LabelModel, and VIEW::AddSurfaceModel.

virtual void VIEW::ModelProcessor::dump std::ostream &  ,
Size 
const throw () [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 PropertyManager.

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

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

Test if instance is valid.

Returns true if the bitvector is valid.

Returns:
bool true

Reimplemented from PropertyManager.