#include <BALL/VIEW/MODELS/vanDerWaalsModel.h>
Public Member Functions | |
Constructors and Destructor | |
AddVanDerWaalsModel () | |
AddVanDerWaalsModel (const AddVanDerWaalsModel &add_van_der_waals_model) | |
virtual | ~AddVanDerWaalsModel () |
Processor specific methods | |
virtual Processor::Result | operator() (Composite &composite) |
debuggers and diagnostics | |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
void | setVDWRadiusFactor (float value) |
Default = 1. | |
float | getVDWRadiusFactor () const |
Protected Attributes | |
float | radius_factor_ |
AddVanDerWaalsModel class. AddVanDerWaalsModel is a model processor that is responsible for creating a Van der Waals model. For information about the processor concept see Processor.
Definition at line 24 of file vanDerWaalsModel.h.
BALL::VIEW::AddVanDerWaalsModel::AddVanDerWaalsModel | ( | ) |
Default Constructor.
BALL::VIEW::AddVanDerWaalsModel::AddVanDerWaalsModel | ( | const AddVanDerWaalsModel & | add_van_der_waals_model | ) |
Copy constructor.
virtual BALL::VIEW::AddVanDerWaalsModel::~AddVanDerWaalsModel | ( | ) | [virtual] |
Destructor.
virtual void BALL::VIEW::AddVanDerWaalsModel::dump | ( | std::ostream & | s = std::cout , |
|
Size | depth = 0 | |||
) | const [virtual] |
Internal value dump. Dump the current state to the output ostream with a given dumping depth. Calls AtomBondModelBaseProcessor::dump.
s | output stream where to output the state | |
depth | the dumping depth |
Reimplemented from BALL::VIEW::AtomBondModelBaseProcessor.
float BALL::VIEW::AddVanDerWaalsModel::getVDWRadiusFactor | ( | ) | const [inline] |
Definition at line 85 of file vanDerWaalsModel.h.
virtual Processor::Result BALL::VIEW::AddVanDerWaalsModel::operator() | ( | Composite & | composite | ) | [virtual] |
Operator method. This method iterates over each Composite object reachable in the Composite tree. If the Composite is of kind Atom, than a Sphere with radius getVanDerWaalsRadius() is created for that atom, and the atom is appended with the method insertAtom_(). The color for that Sphere object is calculated with the ColorCalculator object retrieved with the method getColorCalculator(). All atoms inserted with the method insertAtom_() will later be 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 Sphere failed |
Reimplemented from BALL::VIEW::AtomBondModelBaseProcessor.
void BALL::VIEW::AddVanDerWaalsModel::setVDWRadiusFactor | ( | float | value | ) | [inline] |
Default = 1.
Definition at line 81 of file vanDerWaalsModel.h.
float BALL::VIEW::AddVanDerWaalsModel::radius_factor_ [protected] |
Definition at line 91 of file vanDerWaalsModel.h.