#include <BALL/VIEW/MODELS/labelModel.h>
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 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) |
virtual bool | createGeometricObjects () |
Protected Attributes | |
QFont | font_ |
ColorRGBA | color_ |
Mode | mode_ |
String | text_ |
Size | nr_objects_ |
Vector3 | center_ |
GeometricCenterProcessor | center_processor_ |
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.
Definition at line 36 of file labelModel.h.
Definition at line 43 of file labelModel.h.
BALL::VIEW::LabelModel::LabelModel | ( | ) |
Default Constructor.
BALL::VIEW::LabelModel::LabelModel | ( | const LabelModel & | model | ) |
Copy constructor.
virtual BALL::VIEW::LabelModel::~LabelModel | ( | ) | [virtual] |
Destructor.
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] |
Definition at line 82 of file labelModel.h.
const QFont& BALL::VIEW::LabelModel::getFont | ( | ) | const [inline] |
Definition at line 76 of file labelModel.h.
const String& BALL::VIEW::LabelModel::getText | ( | ) | const [inline] |
Definition at line 94 of file labelModel.h.
Mode BALL::VIEW::LabelModel::getType | ( | ) | const [inline] |
Definition at line 88 of file labelModel.h.
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] |
Definition at line 79 of file labelModel.h.
void BALL::VIEW::LabelModel::setFont | ( | const QFont & | font | ) | [inline] |
Definition at line 73 of file labelModel.h.
void BALL::VIEW::LabelModel::setMode | ( | Mode | mode | ) | [inline] |
Definition at line 85 of file labelModel.h.
void BALL::VIEW::LabelModel::setText | ( | const String & | text | ) | [inline] |
Definition at line 91 of file labelModel.h.
Vector3 BALL::VIEW::LabelModel::center_ [protected] |
Definition at line 117 of file labelModel.h.
Definition at line 118 of file labelModel.h.
ColorRGBA BALL::VIEW::LabelModel::color_ [protected] |
Definition at line 113 of file labelModel.h.
QFont BALL::VIEW::LabelModel::font_ [protected] |
Definition at line 112 of file labelModel.h.
Mode BALL::VIEW::LabelModel::mode_ [protected] |
Definition at line 114 of file labelModel.h.
Size BALL::VIEW::LabelModel::nr_objects_ [protected] |
Definition at line 116 of file labelModel.h.
String BALL::VIEW::LabelModel::text_ [protected] |
Definition at line 115 of file labelModel.h.