#include <forceModel.h>
Inheritance diagram for VIEW::ForceModel:
Public Member Functions | |
Constructors and Destructors | |
ForceModel () throw () | |
Default Constructor. | |
ForceModel (const ForceModel &add_line_model) throw () | |
Copy constructor. | |
virtual | ~ForceModel () throw () |
Destructor. | |
void | setScaling (float value) throw () |
void | setMaxLength (float value) throw () |
float | getScaling () const throw () |
float | getMaxLength () const throw () |
void | setBaseSize (float size) |
float | getBaseSize () const |
void | setOffset (float off) |
float | getOffset () const |
Processor specific methods | |
virtual Processor::Result | operator() (Composite &composite) |
Operator method. | |
Protected Attributes | |
float | scaling_ |
float | max_length_ |
float | base_size_ |
float | offset_ |
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.
|
Default Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
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_().
Reimplemented from UnaryProcessor< Composite >. |