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
WIDGETS
SDWidget.h
Go to the documentation of this file.
1
#ifndef BALL_VIEW_WIDGETS_SDWIDGET_H
2
#define BALL_VIEW_WIDGETS_SDWIDGET_H
3
4
#ifndef BALL_COMMON_GLOBAL_H
5
# include <
BALL/COMMON/global.h
>
6
#endif
7
8
#ifndef BALL_DATATYPE_OPTIONS_H
9
# include <
BALL/DATATYPE/options.h
>
10
#endif
11
12
#include <
BALL/KERNEL/system.h
>
13
14
#include <QtGui/QWidget>
15
16
namespace
BALL
17
{
18
namespace
VIEW
19
{
20
22
class
BALL_VIEW_EXPORT
SDWidget
23
:
public
QWidget
24
{
25
Q_OBJECT
26
27
public
:
28
32
33
struct
BALL_VIEW_EXPORT
Option
34
{
37
static
const
char
*
SHOW_HYDROGENS
;
38
};
39
41
struct
BALL_VIEW_EXPORT
Default
42
{
43
static
const
bool
SHOW_HYDROGENS
;
44
};
45
47
49
SDWidget
(
QWidget
*parent = 0,
bool
show_hydrogens =
false
);
50
52
SDWidget
(
const
System
& system,
QWidget
*parent = 0);
53
55
virtual
~
SDWidget
();
56
60
61
Options
options
;
62
65
void
setDefaultOptions();
67
69
void
plot(
const
System
& system,
bool
create_sd =
true
);
70
72
System
&
getSystem
() {
return
system_;};
73
75
const
System
&
getSystem
()
const
{
return
system_;};
76
78
void
setSystem
(
const
System
& system) {system_ = system;};
79
81
void
clear();
82
83
QSize sizeHint()
const
;
84
85
protected
slots:
86
void
exportImage_();
87
88
protected
:
89
void
setup_();
90
void
paintEvent(QPaintEvent *event);
91
92
void
renderSD_(
QPaintDevice
* paint_device);
93
void
drawFrame_();
94
95
QPointF getEndpoint_(QRectF& character_boundary, QPointF from, QPointF to,
bool
character_is_from);
96
System
system_
;
97
98
bool
resize_to_parent_
;
99
100
Vector3
upper_
;
101
Vector3
lower_
;
102
};
103
104
}
105
}
106
107
#endif
Generated by
1.8.3.1