BALL
1.4.79
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
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
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
BALL::VIEW::SDWidget::Default::SHOW_HYDROGENS
static const bool SHOW_HYDROGENS
Definition:
SDWidget.h:43
system.h
BALL::VIEW::SDWidget
Definition:
SDWidget.h:22
BALL::TVector3< float >
QWidget
BALL::VIEW::SDWidget::lower_
Vector3 lower_
Definition:
SDWidget.h:101
BALL::VIEW::SDWidget::getSystem
System & getSystem()
Definition:
SDWidget.h:72
BALL::VIEW::SDWidget::setSystem
void setSystem(const System &system)
Definition:
SDWidget.h:78
BALL::System
Definition:
KERNEL/system.h:38
QPaintDevice
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
BALL::Options
Definition:
options.h:46
BALL::VIEW::SDWidget::system_
System system_
Definition:
SDWidget.h:96
BALL::VIEW::SDWidget::Default
Default values for options.
Definition:
SDWidget.h:41
global.h
BALL::VIEW::SDWidget::upper_
Vector3 upper_
Definition:
SDWidget.h:100
BALL::VIEW::SDWidget::getSystem
const System & getSystem() const
Definition:
SDWidget.h:75
BALL::VIEW::SDWidget::Option::SHOW_HYDROGENS
static const char * SHOW_HYDROGENS
Definition:
SDWidget.h:37
options.h
BALL::VIEW::SDWidget::resize_to_parent_
bool resize_to_parent_
Definition:
SDWidget.h:98
Generated by
1.8.7