Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::LabelModel Class Reference
[Model Processors]

LabelModel class. More...

#include <labelModel.h>

Inheritance diagram for VIEW::LabelModel:

VIEW::ModelProcessor UnaryProcessor< Composite > PropertyManager UnaryFunctor< Composite, Processor::Result > List of all members.

Public Types

enum  Mode { ALL_ITEMS, ALL_ATOMS, ALL_RESIDUES, ONE_LABEL }

Public Member Functions

Constructors and Destructors
 LabelModel () throw ()
 Default Constructor.
 LabelModel (const LabelModel &model) throw ()
 Copy constructor.
virtual ~LabelModel () throw ()
 Destructor.
void setFont (const QFont &font) throw ()
const QFont & getFont () const throw ()
void setColor (const ColorRGBA &color) throw ()
const ColorRGBAgetColor () const throw ()
void setMode (Mode mode) throw ()
Mode getType () const throw ()
void setText (const String &text)
const StringgetText () const
Processor specific methods
virtual Processor::Result operator() (Composite &composite)
 Operator method.
virtual bool createGeometricObjects () throw ()
 Method to create geometric objects.

Protected Attributes

QFont font_
ColorRGBA color_
Mode mode_
String text_
Size nr_objects_
Vector3 center_
GeometricCenterProcessor center_processor_

Detailed Description

LabelModel class.

The LabelModel is a model processor that is responsible for creating and updateing Labels. It supports special text tags, that allows for automaticaly created labels, see the documentation for the Label class.

See also:
Label


Constructor & Destructor Documentation

VIEW::LabelModel::LabelModel  )  throw ()
 

Default Constructor.

VIEW::LabelModel::LabelModel const LabelModel model  )  throw ()
 

Copy constructor.

virtual VIEW::LabelModel::~LabelModel  )  throw () [virtual]
 

Destructor.


Member Function Documentation

virtual bool VIEW::LabelModel::createGeometricObjects  )  throw () [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 VIEW::ModelProcessor.

virtual Processor::Result VIEW::LabelModel::operator() Composite composite  )  [virtual]
 

Operator method.

Reimplemented from UnaryProcessor< Composite >.