BALL
1.4.79
|
#include <BALL/VIEW/MODELS/modelProcessor.h>
Public Member Functions | |
ModelProcessor () | |
ModelProcessor (const ModelProcessor &model_processor) | |
virtual | ~ModelProcessor () |
virtual void | clear () |
Clear all datastructures, but dont destroy the geometric objects. More... | |
virtual bool | isValid () const |
virtual void | clearComposites () |
virtual void | dump (std::ostream &, Size) const |
GeometricObjectList & | getGeometricObjects () |
Return the list with the created geometric objects. More... | |
const GeometricObjectList & | getGeometricObjects () const |
Return the list with the created geometric objects. More... | |
void | setDrawingPrecision (Index precision) |
Index | getDrawingPrecision () const |
void | setSurfaceDrawingPrecision (float precision) |
float | getSurfaceDrawingPrecision () const |
virtual bool | createGeometricObjects () |
![]() | |
UnaryProcessor () | |
UnaryProcessor (const UnaryProcessor &) | |
virtual | ~UnaryProcessor () |
virtual bool | start () |
virtual bool | finish () |
virtual Processor::Result | operator() (Composite &) |
![]() | |
BALL_INLINE | PropertyManager () |
Default constructor. More... | |
BALL_INLINE | PropertyManager (const PropertyManager &property_manager) |
Copy constructor. More... | |
virtual | ~PropertyManager () |
Destructor. More... | |
virtual void | destroy () |
Clears all properties. More... | |
void | set (const PropertyManager &property_manager) |
const PropertyManager & | operator= (const PropertyManager &property_manager) |
void | get (PropertyManager &property_manager) const |
void | swap (PropertyManager &property_manager) |
BitVector & | getBitVector () |
const BitVector & | getBitVector () const |
operator BitVector & () | |
void | setProperty (Property property) |
void | clearProperty (Property property) |
void | toggleProperty (Property property) |
Size | countProperties () const |
const NamedProperty & | getNamedProperty (Position index) const |
NamedProperty & | getNamedProperty (Position index) |
void | setProperty (const NamedProperty &property) |
void | setProperty (const std::string &name) |
void | setProperty (const std::string &name, bool value) |
void | setProperty (const std::string &name, int value) |
void | setProperty (const std::string &name, unsigned int value) |
void | setProperty (const std::string &name, float value) |
void | setProperty (const std::string &name, double value) |
void | setProperty (const std::string &name, const std::string &value) |
void | setProperty (const std::string &name, const PersistentObject &value) |
const NamedProperty & | getProperty (const std::string &name) const |
NamedPropertyIterator | beginNamedProperty () |
NamedPropertyIterator | endNamedProperty () |
void | clearProperty (const std::string &name) |
Size | countNamedProperties () const |
bool | hasProperty (Property property) const |
Query for an unnamed property. More... | |
bool | hasProperty (const std::string &name) const |
Query for a named property. More... | |
bool | operator== (const PropertyManager &pm) const |
bool | operator!= (const PropertyManager &pm) const |
Inequality operator. More... | |
void | write (PersistenceManager &pm) const |
Persistent stream writing. More... | |
bool | read (PersistenceManager &pm) |
Persistent stream reading. More... | |
bool | isValid () const |
void | dump (std::ostream &s=std::cout, Size depth=0) const |
Protected Attributes | |
GeometricObjectList | geometric_objects_ |
Index | drawing_precision_ |
float | surface_drawing_precision_ |
Additional Inherited Members | |
![]() | |
typedef Processor::Result | result_type |
typedef Composite | argument_type |
typedef Composite & | argument_reference |
typedef const Composite & | const_argument_reference |
typedef Composite * | argument_pointer |
typedef const Composite * | const_argument_pointer |
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.
BALL::VIEW::ModelProcessor::ModelProcessor | ( | ) |
BALL::VIEW::ModelProcessor::ModelProcessor | ( | const ModelProcessor & | model_processor | ) |
|
virtual |
Destructor, calls clear
|
virtual |
Clear all datastructures, but dont destroy the geometric objects.
Reimplemented from BALL::PropertyManager.
Reimplemented in BALL::VIEW::AddBackboneModel, BALL::VIEW::AddBallAndStickModel, BALL::VIEW::AtomBondModelBaseProcessor, BALL::VIEW::AddSurfaceModel, and BALL::VIEW::HBondModelProcessor.
|
inlinevirtual |
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.
|
inlinevirtual |
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::AddBallAndStickModel, BALL::VIEW::AddBackboneModel, BALL::VIEW::AtomBondModelBaseProcessor, BALL::VIEW::AddSurfaceModel, and BALL::VIEW::LabelModel.
Definition at line 97 of file modelProcessor.h.
|
inlinevirtual |
Reimplemented in BALL::VIEW::AddBallAndStickModel, BALL::VIEW::AddBackboneModel, BALL::VIEW::AtomBondModelBaseProcessor, BALL::VIEW::AddSurfaceModel, BALL::VIEW::AddLineModel, and BALL::VIEW::AddVanDerWaalsModel.
Definition at line 69 of file modelProcessor.h.
Index BALL::VIEW::ModelProcessor::getDrawingPrecision | ( | ) | const |
|
inline |
Return the list with the created geometric objects.
Definition at line 73 of file modelProcessor.h.
|
inline |
Return the list with the created geometric objects.
Definition at line 77 of file modelProcessor.h.
float BALL::VIEW::ModelProcessor::getSurfaceDrawingPrecision | ( | ) | const |
|
inlinevirtual |
Definition at line 59 of file modelProcessor.h.
void BALL::VIEW::ModelProcessor::setDrawingPrecision | ( | Index | precision | ) |
void BALL::VIEW::ModelProcessor::setSurfaceDrawingPrecision | ( | float | precision | ) |
|
protected |
Definition at line 106 of file modelProcessor.h.
|
protected |
Definition at line 103 of file modelProcessor.h.
|
protected |
Definition at line 109 of file modelProcessor.h.