BALL
1.5.0
Loading...
Searching...
No Matches
include
BALL
VIEW
KERNEL
representation.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_KERNEL_REPRESENTATION_H
6
#define BALL_VIEW_KERNEL_REPRESENTATION_H
7
8
#ifndef BALL_CONCEPT_PROPERTY_H
9
# include <
BALL/CONCEPT/property.h
>
10
#endif
11
12
#ifndef BALL_CONCEPT_COMPOSITE_H
13
# include <
BALL/CONCEPT/composite.h
>
14
#endif
15
16
#ifndef BALL_VIEW_KERNEL_COMMON_H
17
# include <
BALL/VIEW/KERNEL/common.h
>
18
#endif
19
20
#ifndef BALL_CONCEPT_MOLECULARINFORMATION_H
21
# include <
BALL/CONCEPT/molecularInformation.h
>
22
#endif
23
24
#ifndef BALL_VIEW_KERNEL_MODELINFORMATION_H
25
# include <
BALL/VIEW/KERNEL/modelInformation.h
>
26
#endif
27
28
// next two defines need to be included in header file, because of iC file
29
#ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
30
# include <
BALL/VIEW/MODELS/modelProcessor.h
>
31
#endif
32
33
#ifndef BALL_VIEW_MODELS_COLORPROCESSOR_H
34
# include <
BALL/VIEW/MODELS/colorProcessor.h
>
35
#endif
36
37
38
namespace
BALL
39
{
40
namespace
VIEW
41
{
42
class
ModelProcessor
;
43
class
ColorProcessor
;
44
class
GeometricObject
;
45
class
UpdateRepresentationThread
;
46
class
RepresentationManager
;
47
57
class
BALL_VIEW_EXPORT
Representation
58
:
public
PropertyManager
59
{
60
friend
class
UpdateRepresentationThread
;
61
friend
class
RepresentationManager
;
62
public
:
63
64
BALL_CREATE
(
Representation
)
65
66
69
70
71
enum
Properties
72
{
74
PROPERTY__ALWAYS_FRONT
= 0,
75
77
PROPERTY__IS_COORDINATE_SYSTEM
78
};
79
81
84
87
Representation
();
88
90
Representation
(
ModelType
model_type,
91
DrawingPrecision
drawing_precision,
92
DrawingMode
drawing_mode);
93
96
Representation
(
const
Representation
& representation);
97
100
virtual
~Representation
();
101
103
106
108
const
Representation
& operator = (
const
Representation
& rep);
109
111
void
clear
();
112
114
void
setHidden
(
bool
state) ;
115
117
bool
isHidden
()
const
;
118
120
void
setDrawingPrecision
(
DrawingPrecision
precision);
121
123
DrawingPrecision
getDrawingPrecision
()
const
;
124
126
float
getSurfaceDrawingPrecision
()
const
;
127
129
void
setSurfaceDrawingPrecision
(
float
precision);
130
132
void
setDrawingMode
(
DrawingMode
mode);
133
135
DrawingMode
getDrawingMode
()
const
;
136
138
Size
getTransparency
()
const
;
139
141
void
setTransparency
(
Size
value);
142
144
const
GeometricObjectList
&
getGeometricObjects
()
const
;
145
147
GeometricObjectList
&
getGeometricObjects
();
148
150
void
setGeometricObjects
(
GeometricObjectList
& gol)
151
{
geometric_objects_
= gol;}
152
154
void
insert
(
GeometricObject
&
object
) ;
155
157
const
std::list<const Composite*>&
getComposites
()
const
158
{
return
composites_
;}
159
161
void
setComposites
(
const
std::list<const Composite*>& composites);
162
164
void
setComposite
(
const
Composite
* composite);
165
167
const
ModelProcessor
*
getModelProcessor
()
const
;
168
170
ModelProcessor
*
getModelProcessor
();
171
173
void
setModelProcessor
(
ModelProcessor
* processor);
174
176
ColorProcessor
*
getColorProcessor
();
177
179
void
setColorProcessor
(
ColorProcessor
* processor);
180
182
void
setModelType
(
ModelType
type);
183
185
ModelType
getModelType
()
const
;
186
188
String
getName
()
const
;
189
191
void
setName
(