#include <atomBondModelBaseProcessor.h>
Public Member Functions |
|
Constructors and Destructors
|
|
AtomBondModelBaseProcessor () | |
Default Constructor. |
|
AtomBondModelBaseProcessor (const AtomBondModelBaseProcessor &baseProcessor) | |
Copy constructor. |
|
virtual | ~AtomBondModelBaseProcessor () |
Destructor. |
|
virtual void | clear () |
Explicit default initialization.
|
|
Assignment
|
|
void | set (const AtomBondModelBaseProcessor &processor) |
Assignment. |
|
const AtomBondModelBaseProcessor & | operator= (const AtomBondModelBaseProcessor &processor) |
Assignment operator. |
|
Processor specific methods
|
|
virtual Processor::Result | operator() (Composite &composite) |
Operator method. |
|
debuggers and diagnostics
|
|
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
Internal value dump. |
|
virtual void | clearComposites () |
Needed in derived classes, which
store references to the Composite instances they worked on.
|
|
virtual bool | createGeometricObjects () |
Method to create geometric objects.
|
|
Protected Member Functions |
|
virtual void | visualiseBond_ (const Bond &bond) |
virtual void | visualiseRings_ () |
Protected members
|
|
This methods are provided for easy generation of
models.
With the method insertAtom_()
all Atom objects that will be part of the
newly created model will be stored. This stored atoms
are later used (in the method buildBondModels_())
to create the models of the Bond
objects that can be reached from the atoms. The other
methods are access method for the stored atoms. |
|
void | insertAtom_ (const Atom *atom) |
Insert an Atom into
the used atoms structure. |
|
void | clearUsedAtoms_ () |
Clear all used atoms. |
|
List< const Atom * > & | getAtomList_ () |
Mutable inspection of the list of
used atoms. |
|
HashSet< const Atom * > & | getAtomSet_ () |
Mutable inspection of the hash set
of used atoms. |
|
void | buildBondModels_ () |
Build the bond models. |
|
Protected Attributes |
|
vector< vector< Atom * > > | rings_ |
HashSet< const Atom * > | ring_atoms_ |
The class AtomBondModelBaseProcessor is the base class for all models whose structure is somewhat orientated after the Atom and Bond structure (e.g. the model Ball And Stick)
BALL::VIEW::AtomBondModelBaseProcessor::AtomBondModelBaseProcessor | ( | ) |
Default Constructor.
Clear all used Atom objects.
void BALL::VIEW::AtomBondModelBaseProcessor::buildBondModels_ | ( | ) | [protected] |
virtual void BALL::VIEW::AtomBondModelBaseProcessor::clear | ( | ) | [virtual] |
Explicit default initialization.
Reset the state of this AtomBondModelBaseProcessor:
Reimplemented from BALL::VIEW::ModelProcessor.
Reimplemented in BALL::VIEW::AddBallAndStickModel, and BALL::VIEW::HBondModelProcessor.
virtual void BALL::VIEW::AtomBondModelBaseProcessor::clearComposites | ( | ) | [virtual] |
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 from BALL::VIEW::ModelProcessor.
virtual bool BALL::VIEW::AtomBondModelBaseProcessor::createGeometricObjects | ( | ) | [virtual] |
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 from BALL::VIEW::ModelProcessor.
Reimplemented in BALL::VIEW::AddBallAndStickModel.
virtual void BALL::VIEW::AtomBondModelBaseProcessor::dump | ( | std::ostream & | s =
std::cout , |
|
Size | depth =
0 |
|||
) | const [virtual] |
Internal value dump.
Dump the current state to the output ostream s with dumping depth depth. Calls ModelProcessor::dump.
s | output stream where to output the state | |
depth | the dumping depth |
Reimplemented from BALL::VIEW::ModelProcessor.
Reimplemented in BALL::VIEW::AddBallAndStickModel, BALL::VIEW::AddLineModel, and BALL::VIEW::AddVanDerWaalsModel.
void BALL::VIEW::AtomBondModelBaseProcessor::insertAtom_ | ( | const Atom * | atom | ) | [protected] |
virtual Processor::Result BALL::VIEW::AtomBondModelBaseProcessor::operator() | ( | Composite & | composite | ) | [virtual] |
Operator method.
This method iterates over each Composite object reachable in the Composite tree. If a Composite is of kind Moleculue and has aromatic rings, these rings are stored for later processing in the finish method.
composite | the Composite object that will be processed |
Reimplemented from BALL::UnaryProcessor< Composite >.
Reimplemented in BALL::VIEW::AddBallAndStickModel, BALL::VIEW::HBondModelProcessor, BALL::VIEW::AddLineModel, and BALL::VIEW::AddVanDerWaalsModel.
const AtomBondModelBaseProcessor& BALL::VIEW::AtomBondModelBaseProcessor::operator= | ( | const AtomBondModelBaseProcessor & | processor | ) |
Assignment operator.
Calls set.
void BALL::VIEW::AtomBondModelBaseProcessor::set | ( | const AtomBondModelBaseProcessor & | processor | ) |
Assignment.
Calls clearUsedAtoms_(). Calls ModelProcessor::set.