BALL::VIEW::LabelModel Class Reference
[Model Processors]

LabelModel class. More...

#include <labelModel.h>

Inheritance diagram for BALL::VIEW::LabelModel:
Inheritance graph
[legend]

List of all members.


Public Types

enum Mode { ALL_ITEMS, ALL_ATOMS, ALL_RESIDUES, ONE_LABEL }

Public Member Functions

Constructors and Destructors
LabelModel ()
Default Constructor.
LabelModel (const LabelModel &model)
Copy constructor.
virtual ~LabelModel ()
Destructor.
void setFont (const QFont &font)
const QFont & getFont () const
void setColor (const ColorRGBA &color)
const ColorRGBA & getColor () const
void setMode (Mode mode)
Mode getType () const
void setText (const String &text)
const String & getText () const
Processor specific methods
virtual Processor::Result operator() (Composite &composite)
Operator method.
virtual bool createGeometricObjects ()
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

Member Function Documentation

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


Generated on Thu Aug 6 18:30:57 2009 for BALL by doxygen 1.5.8