BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Protected Member Functions
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 >

List of all members.

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

Protected Member Functions

void visualiseBond_ (const Bond &bond)

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

Default Constructor.

Copy constructor.

Destructor.


Member Function Documentation

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.

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.

void BALL::VIEW::AddLineModel::visualiseBond_ ( const Bond bond) [protected, virtual]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines