BALL 1.5.0
Loading...
Searching...
No Matches
modifyRepresentationDialog.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_DIALOGS_MODIFYSURFACEDIALOG_H
6#define BALL_VIEW_DIALOGS_MODIFYSURFACEDIALOG_H
7
8#ifndef BALL_COMMON_GLOBAL_H
9# include <BALL/COMMON/global.h>
10#endif
11
12#ifndef BALL_VIEW_DATATYPE_COLORRGBA_H
14#endif
15
16#ifndef BALL_VIEW_PRIMITIVES_MESH_H
18#endif
19
20#ifndef BALL_VIEW_KERNEL_REPRESENTATION_H
22#endif
23
24#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
26#endif
27
28#ifndef BALL_DATATYPE_REGULARDATA3D
30#endif
31
32#ifndef BALL_DATATYPE_HASHGRID_H
34#endif
35
36#ifndef BALL_VIEW_DIALOG_MATERIALSETTINGS_H
38#endif
39
40#include <BALL/VIEW/UIC/ui_modifyRepresentationDialog.h>
41
42namespace BALL
43{
44 namespace VIEW
45 {
52 : public QDialog,
53 public Ui_ModifyRepresentationDialogData,
54 public ModularWidget
55 {
56 Q_OBJECT
57
58 public:
59
61
62
63 ModifyRepresentationDialog(QWidget* parent = 0, const char* name = "ModifyRepresentationDialog",
64 bool modal = false, Qt::WindowFlags fl = 0);
65
68
70 virtual void onNotify(Message *message);
71
74
77
79 void setMinValue(float value);
80
82 void setMaxValue(float value);
83
85 void setMidValue(float value);
86
88 void setSplitRadius(float distance);
89
91 void setMode(Position pos);
92
93 public Q_SLOTS:
94
95 void accept();
96 void tabChanged();
97 void autoScale();
100 void show();
102
103 protected Q_SLOTS:
104
108
109 protected:
110
112
113 typedef HashGrid3<const Atom*> AtomGrid;
114 typedef HashGridBox3<const Atom*> AtomBox;
117 bool insertGrid_(RegularData3D& grid, const String& name);
123
124 void calculateIncludedVertices_(vector<bool>& include_vertex, const Mesh& org_mesh, HashSet<const Composite*>& roots);
125 inline bool checkInclude_(const AtomGrid& atom_grid, const Vector3& point) const;
126
129
131
136 };
137
138 } // namespace VIEW
139} // namespace BALL
140
141#endif
#define BALL_VIEW_EXPORT
Three-dimensional Hash Grid Class.
Definition hashGrid.h:755
bool checkInclude_(const AtomGrid &atom_grid, const Vector3 &point) const
void calculateIncludedVertices_(vector< bool > &include_vertex, const Mesh &org_mesh, HashSet< const Composite * > &roots)
void setRepresentation(Representation *rep)
bool insertGrid_(RegularData3D &grid, const String &name)
void setGrid(RegularData3D *grid)
ModifyRepresentationDialog(QWidget *parent=0, const char *name="ModifyRepresentationDialog", bool modal=false, Qt::WindowFlags fl=0)
void removeGrid_(RegularData3D &grid)
virtual void onNotify(Message *message)
ModularWidget(const char *name="<ModularWidget>")
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
TRegularData3D< float > RegularData3D
BALL_SIZE_TYPE Position
TVector3< float > Vector3
Definition vector3.h:1084
STL namespace.