#include <atomBondModelBaseProcessor.h>
Inheritance diagram for VIEW::AtomBondModelBaseProcessor:
Public Member Functions | |
Constructors and Destructors | |
AtomBondModelBaseProcessor () throw () | |
Default Constructor. | |
AtomBondModelBaseProcessor (const AtomBondModelBaseProcessor &baseProcessor) throw () | |
Copy constructor. | |
virtual | ~AtomBondModelBaseProcessor () throw () |
Destructor. | |
virtual void | clear () throw () |
Explicit default initialization. | |
Assignment | |
virtual void | set (const AtomBondModelBaseProcessor &processor) throw () |
Assignment. | |
const AtomBondModelBaseProcessor & | operator= (const AtomBondModelBaseProcessor &processor) throw () |
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 throw () |
Internal value dump. | |
virtual void | clearComposites () throw () |
Needed in derived classes, which store references to the Composite instances they worked on. | |
virtual bool | createGeometricObjects () throw () |
Method to create geometric objects. | |
Protected Member Functions | |
virtual void | visualiseBond_ (const Bond &bond) throw () |
virtual void | visualiseRings_ () throw () |
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) throw () |
Insert an Atom into the used atoms structure. | |
void | clearUsedAtoms_ () throw () |
Clear all used atoms. | |
List< const Atom * > & | getAtomList_ () throw () |
Mutable inspection of the list of used atoms. | |
HashSet< const Atom * > & | getAtomSet_ () throw () |
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)
|
Default Constructor. Clear all used Atom objects. |
|
Copy constructor.
|
|
Destructor.
|
|
Build the bond models. This method is called from the finish method. It iterates over every Bond object that can be reached from the stored Atom objects and calls visualiseBond_(), which has to be overloaded in derived classes. |
|
Explicit default initialization. Reset the state of this AtomBondModelBaseProcessor:
Reimplemented from VIEW::ModelProcessor. Reimplemented in VIEW::AddBallAndStickModel, and VIEW::HBondModelProcessor. |
|
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 VIEW::ModelProcessor. |
|
Clear all used atoms.
|
|
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 VIEW::ModelProcessor. Reimplemented in VIEW::AddBallAndStickModel. |
|
Internal value dump. Dump the current state to the output ostream s with dumping depth depth. Calls ModelProcessor::dump.
Reimplemented from VIEW::ModelProcessor. Reimplemented in VIEW::AddBallAndStickModel, VIEW::AddLineModel, and VIEW::AddVanDerWaalsModel. |
|
Mutable inspection of the list of used atoms.
|
|
Mutable inspection of the hash set of used atoms.
|
|
Insert an Atom into the used atoms structure. All the inserted atoms will be later processed to generate the graphical representation of the Bond objects that can be reached from each inserted atom.
|
|
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.
Reimplemented from UnaryProcessor< Composite >. Reimplemented in VIEW::AddBallAndStickModel, VIEW::HBondModelProcessor, VIEW::AddLineModel, and VIEW::AddVanDerWaalsModel. |
|
Assignment operator. Calls set. |
|
Assignment. Calls clearUsedAtoms_(). Calls ModelProcessor::set. |