Loading...
Searching...
No Matches
atomBondModelBaseProcessor.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: atomBondModelBaseProcessor.h,v 1.18 2005/12/23 17:02:17 amoll Exp $
//
#ifndef BALL_VIEW_MODELS_ATOMBONDMODELBASEPROCESSOR_H
#define BALL_VIEW_MODELS_ATOMBONDMODELBASEPROCESSOR_H
#ifndef BALL_DATATYPE_HASHSET_H
# include <BALL/DATATYPE/hashSet.h>
#endif
#ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
# include <BALL/VIEW/MODELS/modelProcessor.h>
#endif
namespace BALL
{
class Atom;
class Bond;
namespace VIEW
{
class BALL_VIEW_EXPORT AtomBondModelBaseProcessor
: public ModelProcessor
{
public:
BALL_CREATE(AtomBondModelBaseProcessor)
//@{
AtomBondModelBaseProcessor();
AtomBondModelBaseProcessor(const AtomBondModelBaseProcessor& baseProcessor);
virtual ~AtomBondModelBaseProcessor();
virtual void clear();
void set(const AtomBondModelBaseProcessor& processor);
const AtomBondModelBaseProcessor& operator = (const AtomBondModelBaseProcessor& processor);
virtual Processor::Result operator() (Composite& composite);
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
virtual void clearComposites();
virtual bool createGeometricObjects();
protected:
void insertAtom_(const Atom* atom);
void clearUsedAtoms_();
std::list<const Atom*>& getAtomList_();
HashSet<const Atom*>& getAtomSet_();
void buildBondModels_();
virtual void visualiseBond_(const Bond& bond);
virtual void visualiseRings_(){};
vector<vector<Atom*> > rings_;
HashSet<const Atom*> ring_atoms_;
private:
std::list<const Atom*> used_atoms_;
HashSet<const Atom*> atom_set_;
};
# ifndef BALL_NO_INLINE_FUNCTIONS
# include <BALL/VIEW/MODELS/atomBondModelBaseProcessor.iC>
# endif
} } // namespaces
#endif // BALL_VIEW_MODELS_ATOMBONDMODELBASEPROCESSOR_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::Atom
Definition atom.h:90
BALL::Bond
Definition bond.h:57
BALL::Composite
Definition composite.h:74
BALL::HashSet
Definition hashSet.h:46
BALL::Processor
Definition processor.h:32
BALL::Result
Definition result.h:22
BALL::VIEW::AtomBondModelBaseProcessor::AtomBondModelBaseProcessor
AtomBondModelBaseProcessor()
BALL::VIEW::AtomBondModelBaseProcessor::visualiseBond_
virtual void visualiseBond_(const Bond &bond)
BALL::VIEW::AtomBondModelBaseProcessor::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::AtomBondModelBaseProcessor::createGeometricObjects
virtual bool createGeometricObjects()
BALL::VIEW::AtomBondModelBaseProcessor::buildBondModels_
void buildBondModels_()
BALL::VIEW::AtomBondModelBaseProcessor::rings_
vector< vector< Atom * > > rings_
Definition atomBondModelBaseProcessor.h:159
BALL::VIEW::AtomBondModelBaseProcessor::clearComposites
virtual void clearComposites()
BALL::VIEW::AtomBondModelBaseProcessor::visualiseRings_
virtual void visualiseRings_()
Definition atomBondModelBaseProcessor.h:157
BALL::VIEW::AtomBondModelBaseProcessor::ring_atoms_
HashSet< const Atom * > ring_atoms_
Definition atomBondModelBaseProcessor.h:160
BALL::VIEW::AtomBondModelBaseProcessor::set
void set(const AtomBondModelBaseProcessor &processor)
BALL::VIEW::AtomBondModelBaseProcessor::clear
virtual void clear()
BALL::VIEW::AtomBondModelBaseProcessor::clearUsedAtoms_
void clearUsedAtoms_()
BALL::VIEW::AtomBondModelBaseProcessor::insertAtom_
void insertAtom_(const Atom *atom)
BALL::VIEW::AtomBondModelBaseProcessor::getAtomList_
std::list< const Atom * > & getAtomList_()
BALL::VIEW::AtomBondModelBaseProcessor::getAtomSet_
HashSet< const Atom * > & getAtomSet_()
BALL::VIEW::ModelProcessor::ModelProcessor
ModelProcessor()
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
hashSet.h
modelProcessor.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
std
STL namespace.