BALL
1.4.1
|
#include <BALL/VIEW/MODELS/forceModel.h>
Public Member Functions | |
Constructors and Destructors | |
ForceModel () | |
ForceModel (const ForceModel &add_line_model) | |
virtual | ~ForceModel () |
void | setScaling (float value) |
void | setMaxLength (float value) |
float | getScaling () const |
float | getMaxLength () const |
void | setBaseSize (float size) |
float | getBaseSize () const |
void | setOffset (float off) |
float | getOffset () const |
Processor specific methods | |
virtual Processor::Result | operator() (Composite &composite) |
![]() | |
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 |
GeometricObjectList & | getGeometricObjects () |
Return the list with the created geometric objects. | |
const GeometricObjectList & | getGeometricObjects () 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 () |
![]() | |
UnaryProcessor () | |
UnaryProcessor (const UnaryProcessor &) | |
virtual | ~UnaryProcessor () |
virtual bool | start () |
virtual bool | finish () |
![]() | |
BALL_INLINE | PropertyManager () |
Default constructor. | |
BALL_INLINE | PropertyManager (const PropertyManager &property_manager) |
Copy constructor. | |
virtual | ~PropertyManager () |
Destructor. | |
virtual void | destroy () |
Clears all properties. | |
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 string &name) |
void | setProperty (const string &name, bool value) |
void | setProperty (const string &name, int value) |
void | setProperty (const string &name, unsigned int value) |
void | setProperty (const string &name, float value) |
void | setProperty (const string &name, double value) |
void | setProperty (const string &name, const string &value) |
void | setProperty (const string &name, const PersistentObject &value) |
const NamedProperty & | getProperty (const string &name) const |
NamedPropertyIterator | beginNamedProperty () |
NamedPropertyIterator | endNamedProperty () |
void | clearProperty (const string &name) |
Size | countNamedProperties () const |
bool | hasProperty (Property property) const |
Query for an unnamed property. | |
bool | hasProperty (const string &name) const |
Query for a named property. | |
bool | operator== (const PropertyManager &pm) const |
bool | operator!= (const PropertyManager &pm) const |
Inequality operator. | |
void | write (PersistenceManager &pm) const |
Persistent stream writing. | |
bool | read (PersistenceManager &pm) |
Persistent stream reading. |
Protected Attributes | |
float | scaling_ |
float | max_length_ |
float | base_size_ |
float | offset_ |
![]() | |
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 |
ForceModel class. The class ForceModel is a model processor that is responsible for creating a model for forces on atoms. For information about the processor concept see Processor.
Definition at line 25 of file forceModel.h.
BALL::VIEW::ForceModel::ForceModel | ( | ) |
Default Constructor.
BALL::VIEW::ForceModel::ForceModel | ( | const ForceModel & | add_line_model | ) |
Copy constructor.
|
virtual |
Destructor.
|
inline |
Definition at line 67 of file forceModel.h.
|
inline |
Definition at line 60 of file forceModel.h.
|
inline |
Definition at line 73 of file forceModel.h.
|
inline |
Definition at line 56 of file forceModel.h.
|
virtual |
Operator method. This method iterates over each Composite object reachable in the tree. If the composite is of kind Atom than a Point is created for that atom, and it inserted with the method insertAtom_(). The color for that Point object is calculated with the ColorCalculator object retrieved with the method getColorCalculator(). All atoms inserted with the method insertAtom_() will later used for creating the model of the reachable Bond objects. Those models will be created with the method buildBondModels_().
composite | the Composite object that will be processed |
OutOfMemory | thrown if the memory allocation for a Point object failed |
Reimplemented from BALL::UnaryProcessor< Composite >.
|
inline |
Definition at line 64 of file forceModel.h.
|
inline |
Definition at line 52 of file forceModel.h.
|
inline |
Definition at line 70 of file forceModel.h.
|
inline |
Definition at line 48 of file forceModel.h.
|
protected |
Definition at line 101 of file forceModel.h.
|
protected |
Definition at line 100 of file forceModel.h.
|
protected |
Definition at line 102 of file forceModel.h.
|
protected |
Definition at line 99 of file forceModel.h.