BALL
1.4.1
|
#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 () |
![]() | |
ModelProcessor () | |
ModelProcessor (const ModelProcessor &model_processor) | |
virtual | ~ModelProcessor () |
virtual void | clear () |
Clear all datastructures, but dont destroy the geometric objects. | |
virtual bool | isValid () const |
virtual void | clearComposites () |
virtual void | dump (std::ostream &, Size) const |
GeometricObjectList & | getGeometricObjects () |
Return the list with the created geometric objects. | |
const GeometricObjectList & | getGeometricObjects () const |
Return the list with the created geometric objects. | |
void | setDrawingPrecision (Index precision) |
Index | getDrawingPrecision () const |
void | setSurfaceDrawingPrecision (float precision) |
float | getSurfaceDrawingPrecision () const |
![]() | |
UnaryProcessor () | |
UnaryProcessor (const UnaryProcessor &) | |
virtual | ~UnaryProcessor () |
virtual bool | start () |
virtual bool | finish () |
![]() | |
BALL_INLINE | PropertyManager () |
Default constructor. | |
BALL_INLINE | PropertyManager (const PropertyManager &property_manager) |
Copy constructor. | |
virtual | ~PropertyManager () |
Destructor. | |
virtual void | destroy () |
Clears all properties. | |
void | set (const PropertyManager &property_manager) |
const PropertyManager & | operator= (const PropertyManager &property_manager) |
void | get (PropertyManager &property_manager) const |
void | swap (PropertyManager &property_manager) |
BitVector & | getBitVector () |
const BitVector & | getBitVector () const |
operator BitVector & () | |
void | setProperty (Property property) |
void | clearProperty (Property property) |
void | toggleProperty (Property property) |
Size | countProperties () const |
const NamedProperty & | getNamedProperty (Position index) const |
NamedProperty & | getNamedProperty (Position index) |
void | setProperty (const NamedProperty &property) |
void | setProperty (const string &name) |
void | setProperty (const string &name, bool value) |
void | setProperty (const string &name, int value) |
void | setProperty (const string &name, unsigned int value) |
void | setProperty (const string &name, float value) |
void | setProperty (const string &name, double value) |
void | setProperty (const string &name, const string &value) |
void | setProperty (const string &name, const PersistentObject &value) |
const NamedProperty & | getProperty (const string &name) const |
NamedPropertyIterator | beginNamedProperty () |
NamedPropertyIterator | endNamedProperty () |
void | clearProperty (const string &name) |
Size | countNamedProperties () const |
bool | hasProperty (Property property) const |
Query for an unnamed property. | |
bool | hasProperty (const string &name) const |
Query for a named property. | |
bool | operator== (const PropertyManager &pm) const |
bool | operator!= (const PropertyManager &pm) const |
Inequality operator. | |
void | write (PersistenceManager &pm) const |
Persistent stream writing. | |
bool | read (PersistenceManager &pm) |
Persistent stream reading. |
Protected Attributes | |
QFont | font_ |
ColorRGBA | color_ |
Mode | mode_ |
String | text_ |
Size | nr_objects_ |
Vector3 | center_ |
GeometricCenterProcessor | center_processor_ |
![]() | |
GeometricObjectList | geometric_objects_ |
Index | drawing_precision_ |
float | surface_drawing_precision_ |
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 |
Destructor.
|
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.
|
inline |
Definition at line 82 of file labelModel.h.
|
inline |
Definition at line 76 of file labelModel.h.
|
inline |
Definition at line 94 of file labelModel.h.
|
inline |
Definition at line 88 of file labelModel.h.
|
virtual |
Operator method.
Reimplemented from BALL::UnaryProcessor< Composite >.
|
inline |
Definition at line 79 of file labelModel.h.
|
inline |
Definition at line 73 of file labelModel.h.
|
inline |
Definition at line 85 of file labelModel.h.
|
inline |
Definition at line 91 of file labelModel.h.
|
protected |
Definition at line 117 of file labelModel.h.
|
protected |
Definition at line 118 of file labelModel.h.
|
protected |
Definition at line 113 of file labelModel.h.
|
protected |
Definition at line 112 of file labelModel.h.
|
protected |
Definition at line 114 of file labelModel.h.
|
protected |
Definition at line 116 of file labelModel.h.
|
protected |
Definition at line 115 of file labelModel.h.