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

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

Inheritance diagram for BALL::VIEW::LabelModel:
BALL::VIEW::ModelProcessor BALL::UnaryProcessor< Composite > BALL::PropertyManager BALL::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 ()
 LabelModel (const LabelModel &model)
virtual ~LabelModel ()
void setFont (const QFont &font)
const QFont & getFont () const
void setColor (const ColorRGBA &color)
const ColorRGBAgetColor () const
void setMode (Mode mode)
Mode getType () const
void setText (const String &text)
const StringgetText () const
Processor specific methods
virtual Processor::Result operator() (Composite &composite)
virtual bool createGeometricObjects ()

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 Enumeration Documentation

Enumerator:
ALL_ITEMS 
ALL_ATOMS 
ALL_RESIDUES 
ONE_LABEL 

Constructor & Destructor Documentation

BALL::VIEW::LabelModel::LabelModel (  ) 

Default Constructor.

BALL::VIEW::LabelModel::LabelModel ( const LabelModel model  ) 

Copy constructor.

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

Destructor.


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.

const ColorRGBA& BALL::VIEW::LabelModel::getColor (  )  const [inline]
const QFont& BALL::VIEW::LabelModel::getFont (  )  const [inline]
const String& BALL::VIEW::LabelModel::getText (  )  const [inline]
Mode BALL::VIEW::LabelModel::getType (  )  const [inline]
virtual Processor::Result BALL::VIEW::LabelModel::operator() ( Composite composite  )  [virtual]

Operator method.

Reimplemented from BALL::UnaryProcessor< Composite >.

void BALL::VIEW::LabelModel::setColor ( const ColorRGBA color  )  [inline]
void BALL::VIEW::LabelModel::setFont ( const QFont &  font  )  [inline]
void BALL::VIEW::LabelModel::setMode ( Mode  mode  )  [inline]
void BALL::VIEW::LabelModel::setText ( const String text  )  [inline]

Member Data Documentation

QFont BALL::VIEW::LabelModel::font_ [protected]