BALL  1.4.79
Protected Member Functions | List of all members
BALL::VIEW::AddLineModel Class Reference

#include <BALL/VIEW/MODELS/lineModel.h>

Inheritance diagram for BALL::VIEW::AddLineModel:
BALL::VIEW::AtomBondModelBaseProcessor BALL::VIEW::ModelProcessor BALL::UnaryProcessor< Composite > BALL::PropertyManager BALL::UnaryFunctor< Composite, Processor::Result >

Public Member Functions

Constructors and Destructors
 AddLineModel ()
 
 AddLineModel (const AddLineModel &add_line_model)
 
virtual ~AddLineModel ()
 
Processor specific methods
virtual Processor::Result operator() (Composite &composite)
 
debuggers and diagnostics
virtual void dump (std::ostream &s=std::cout, Size depth=0) const
 
- Public Member Functions inherited from BALL::VIEW::AtomBondModelBaseProcessor
 AtomBondModelBaseProcessor ()
 
 AtomBondModelBaseProcessor (const AtomBondModelBaseProcessor &baseProcessor)
 
virtual ~AtomBondModelBaseProcessor ()
 
virtual void clear ()
 
void set (const AtomBondModelBaseProcessor &processor)
 
const AtomBondModelBaseProcessor & operator= (const AtomBondModelBaseProcessor &processor)
 
virtual void clearComposites ()
 
virtual bool createGeometricObjects ()
 
- Public Member Functions inherited from BALL::VIEW::ModelProcessor
 ModelProcessor ()
 
 ModelProcessor (const ModelProcessor &model_processor)
 
virtual ~ModelProcessor ()
 
virtual bool isValid () const
 
GeometricObjectList & getGeometricObjects ()
 Return the list with the created geometric objects. More...
 
const GeometricObjectList & getGeometricObjects () const
 Return the list with the created geometric objects. More...
 
void setDrawingPrecision (Index precision)
 
Index getDrawingPrecision () const
 
void setSurfaceDrawingPrecision (float precision)
 
float getSurfaceDrawingPrecision () const
 
- Public Member Functions inherited from BALL::UnaryProcessor< Composite >
 UnaryProcessor ()
 
 UnaryProcessor (const UnaryProcessor &)
 
virtual ~UnaryProcessor ()
 
virtual bool start ()
 
virtual bool finish ()
 
- Public Member Functions inherited from BALL::PropertyManager
BALL_INLINE PropertyManager ()
 Default constructor. More...
 
BALL_INLINE PropertyManager (const PropertyManager &property_manager)
 Copy constructor. More...
 
virtual ~PropertyManager ()
 Destructor. More...
 
virtual void destroy ()
 Clears all properties. More...
 
void set (const PropertyManager &property_manager)
 
const PropertyManager & operator= (const PropertyManager &property_manager)
 
void get (PropertyManager &property_manager) const
 
void swap (PropertyManager &property_manager)
 
BitVector & getBitVector ()
 
const BitVector & getBitVector () const
 
 operator BitVector & ()
 
void setProperty (Property property)
 
void clearProperty (Property property)
 
void toggleProperty (Property property)
 
Size countProperties () const
 
const NamedProperty & getNamedProperty (Position index) const
 
NamedProperty & getNamedProperty (Position index)
 
void setProperty (const NamedProperty &property)
 
void setProperty (const std::string &name)
 
void setProperty (const std::string &name, bool value)
 
void setProperty (const std::string &name, int value)
 
void setProperty (const std::string &name, unsigned int value)
 
void setProperty (const std::string &name, float value)
 
void setProperty (const std::string &name, double value)
 
void setProperty (const std::string &name, const std::string &value)
 
void setProperty (const std::string &name, const PersistentObject &value)
 
const NamedProperty & getProperty (const std::string &name) const
 
NamedPropertyIterator beginNamedProperty ()
 
NamedPropertyIterator endNamedProperty ()
 
void clearProperty (const std::string &name)
 
Size countNamedProperties () const
 
bool hasProperty (Property property) const
 Query for an unnamed property. More...
 
bool hasProperty (const std::string &name) const
 Query for a named property. More...
 
bool operator== (const PropertyManager &pm) const
 
bool operator!= (const PropertyManager &pm) const
 Inequality operator. More...
 
void write (PersistenceManager &pm) const
 Persistent stream writing. More...
 
bool read (PersistenceManager &pm)
 Persistent stream reading. More...
 
bool isValid () const
 
void dump (std::ostream &s=std::cout, Size depth=0) const
 

Protected Member Functions

void visualiseBond_ (const Bond &bond)
 
- Protected Member Functions inherited from BALL::VIEW::AtomBondModelBaseProcessor
virtual void visualiseRings_ ()
 
void insertAtom_ (const Atom *atom)
 
void clearUsedAtoms_ ()
 
std::list< const Atom * > & getAtomList_ ()
 
HashSet< const Atom * > & getAtomSet_ ()
 
void buildBondModels_ ()
 

Additional Inherited Members

- Public Types inherited from BALL::UnaryFunctor< Composite, Processor::Result >
typedef Processor::Result result_type
 
typedef Composite argument_type
 
typedef Composite & argument_reference
 
typedef const Composite & const_argument_reference
 
typedef Composite * argument_pointer
 
typedef const Composite * const_argument_pointer
 
- Protected Attributes inherited from BALL::VIEW::AtomBondModelBaseProcessor
vector< vector< Atom * > > rings_
 
HashSet< const Atom * > ring_atoms_
 
- Protected Attributes inherited from BALL::VIEW::ModelProcessor
GeometricObjectList geometric_objects_
 
Index drawing_precision_
 
float surface_drawing_precision_
 

Detailed Description

AddLineModel class. The class AddLineModel is a model processor that is responsible for creating a line model. For information about the processor concept see Processor.

Definition at line 25 of file lineModel.h.

Constructor & Destructor Documentation

◆ AddLineModel() [1/2]

BALL::VIEW::AddLineModel::AddLineModel ( )

Default Constructor.

◆ AddLineModel() [2/2]

BALL::VIEW::AddLineModel::AddLineModel ( const AddLineModel &  add_line_model)

Copy constructor.

◆ ~AddLineModel()

virtual BALL::VIEW::AddLineModel::~AddLineModel ( )
virtual

Destructor.

Member Function Documentation

◆ dump()

virtual void BALL::VIEW::AddLineModel::dump ( std::ostream &  s = std::cout,
Size  depth = 0 
) const
virtual

Internal value dump. Dump the current state of this AddLineModel to the output ostream s with dumping depth depth. Calls AtomBondModelBaseProcessor::dump.

Parameters
soutput stream where to output the state
depththe dumping depth
See also
AtomBondModelBaseProcessor

Reimplemented from BALL::VIEW::AtomBondModelBaseProcessor.

◆ operator()()

virtual Processor::Result BALL::VIEW::AddLineModel::operator() ( Composite &  composite)
virtual

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_().

Parameters
compositethe Composite object that will be processed
Returns
Processor::Result the result
Exceptions
OutOfMemorythrown if the memory allocation for a Point object failed

Reimplemented from BALL::VIEW::AtomBondModelBaseProcessor.

◆ visualiseBond_()

void BALL::VIEW::AddLineModel::visualiseBond_ ( const Bond &  bond)
protectedvirtual