#include <labelModel.h>
Inheritance diagram for VIEW::LabelModel:
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 ColorRGBA & | getColor () const throw () |
void | setMode (Mode mode) throw () |
Mode | getType () const throw () |
void | setText (const String &text) |
const String & | getText () 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_ |
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.
|
Default Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
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. |
|
Operator method.
Reimplemented from UnaryProcessor< Composite >. |