BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
VIEW
MODELS
labelModel.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
5
#ifndef BALL_VIEW_MODELS_LABELMODEL_H
6
#define BALL_VIEW_MODELS_LABELMODEL_H
7
8
#ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
9
# include <
BALL/VIEW/MODELS/modelProcessor.h
>
10
#endif
11
12
#ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
13
# include <
BALL/VIEW/DATATYPE/colorRGBA.h
>
14
#endif
15
16
#ifndef BALL_STRUCTURE_GEOMETRICPROPERTIES_H
17
# include <
BALL/STRUCTURE/geometricProperties.h
>
18
#endif
19
20
21
#include <QtGui/QFont>
22
23
namespace
BALL
24
{
25
namespace
VIEW
26
{
27
36
class
BALL_VIEW_EXPORT
LabelModel
:
public
ModelProcessor
37
{
38
public
:
39
40
BALL_CREATE
(
LabelModel
)
41
42
43
enum
Mode
44
{
46
ALL_ITEMS
,
48
ALL_ATOMS
,
50
ALL_RESIDUES
,
52
ONE_LABEL
53
};
54
55
59
62
LabelModel
();
63
66
LabelModel
(
const
LabelModel
& model);
67
70
virtual
~
LabelModel
();
71
73
void
setFont
(
const
QFont& font) { font_ = font;}
74
76
const
QFont&
getFont
()
const
{
return
font_;}
77
79
void
setColor
(
const
ColorRGBA
& color) { color_ = color;}
80
82
const
ColorRGBA
&
getColor
()
const
{
return
color_;}
83
85
void
setMode
(
Mode
mode) { mode_ = mode;}
86
88
Mode
getType
()
const
{
return
mode_;}
89
91
void
setText
(
const
String
& text) { text_ = text;}
92
94
const
String
&
getText
()
const
{
return
text_;}
95
96
98
101
104
virtual
Processor::Result
operator() (
Composite
& composite);
105
107
virtual
bool
createGeometricObjects();
109
110
protected
:
111
112
QFont
font_
;
113
ColorRGBA
color_
;
114
Mode
mode_
;
115
String
text_
;
116
Size
nr_objects_
;
117
Vector3
center_
;
118
GeometricCenterProcessor
center_processor_
;
119
};
120
121
}
// namespace VIEW
122
}
// namspace BALL
123
124
#endif // BALL_VIEW_MODELS_LabelMODEL_H
Generated by
1.8.3.1