#include <modelProcessor.h>
Inheritance diagram for VIEW::ModelProcessor:
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. | |
GeometricObjectList & | getGeometricObjects () throw () |
Return the list with the created geometric objects. | |
const GeometricObjectList & | getGeometricObjects () 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_ |
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);
|
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. |
|
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. |
|
Internal state dump. Dump the current internal state of {*this} to the output ostream s with dumping depth depth .
Reimplemented from PropertyManager. Reimplemented in VIEW::AtomBondModelBaseProcessor, VIEW::AddBackboneModel, VIEW::AddBallAndStickModel, VIEW::AddLineModel, VIEW::AddSurfaceModel, and VIEW::AddVanDerWaalsModel. |
|
Test if instance is valid. Returns true if the bitvector is valid.
Reimplemented from PropertyManager. |