Langmuir
Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pointdialog.h
Go to the documentation of this file.
1 #ifndef POINTDIALOG_H
2 #define POINTDIALOG_H
3 
4 #include "pointcloud.h"
5 
6 #include <QDialog>
7 
8 namespace Ui {
9 class PointDialog;
10 }
11 
12 namespace LangmuirView {
13 
14 class LangmuirViewer;
15 
19 class PointDialog : public QDialog
20 {
21  Q_OBJECT
22 
23 public:
29  explicit PointDialog(LangmuirViewer &viewer, QWidget *parent = 0);
30 
34  ~PointDialog();
35 
36 public slots:
40  void init();
41 
45  void update();
46 
50  void remember();
51 
55  void reset();
56 
62 
68 
74 
80 
85  void updateSpinBoxElectrons(float d);
86 
91  void updateSpinBoxDefects(float d);
92 
97  void updateSpinBoxHoles(float d);
98 
103  void updateSpinBoxTraps(float d);
104 
109  void updateCheckBoxElectrons(bool checked);
110 
115  void updateCheckBoxDefects(bool checked);
116 
121  void updateCheckBoxHoles(bool checked);
122 
127  void updateCheckBoxTraps(bool checked);
128 
133  void on_comboBoxElectrons_currentTextChanged(const QString & text);
134 
139  void on_comboBoxDefects_currentTextChanged(const QString & text);
140 
145  void on_comboBoxHoles_currentTextChanged(const QString & text);
146 
151  void on_comboBoxTraps_currentTextChanged(const QString & text);
152 
157  void on_spinBoxElectrons_valueChanged(double d);
158 
163  void on_spinBoxDefects_valueChanged(double d);
164 
169  void on_spinBoxHoles_valueChanged(double d);
170 
175  void on_spinBoxTraps_valueChanged(double d);
176 
181  void on_checkBoxElectrons_stateChanged(int state);
182 
187  void on_checkBoxDefects_stateChanged(int state);
188 
193  void on_checkBoxHoles_stateChanged(int state);
194 
199  void on_checkBoxTraps_stateChanged(int state);
200 
205 
209  void on_buttonBox_rejected();
210 
211 private:
213  Ui::PointDialog *ui;
214 
217 
220 
223 
226 
229 
232 
235 
238 
241 
243  bool e_visible;
244 
246  bool d_visible;
247 
249  bool h_visible;
250 
252  bool t_visible;
253 };
254 
255 }
256 
257 #endif // POINTDIALOG_H
PointDialog(LangmuirViewer &viewer, QWidget *parent=0)
create the PointDialog
PointCloud::Mode t_mode_old
old mode (for undo)
Definition: pointdialog.h:240
void updateComboBoxDefects(PointCloud::Mode mode)
update combo box text
void on_pushButtonReset_clicked()
reset values
void on_spinBoxElectrons_valueChanged(double d)
set pointcloud point size
void init()
initialize dialog
PointCloud::Mode d_mode_old
old mode (for undo)
Definition: pointdialog.h:234
LangmuirViewer & m_viewer
reference to OpenGL widget
Definition: pointdialog.h:216
void on_comboBoxDefects_currentTextChanged(const QString &text)
set pointcloud render mode
void updateCheckBoxDefects(bool checked)
update check box state
Definition: isosurfacedialog.h:8
void updateComboBoxElectrons(PointCloud::Mode mode)
update combo box text
void on_comboBoxTraps_currentTextChanged(const QString &text)
set pointcloud render mode
void on_checkBoxDefects_stateChanged(int state)
set pointcloud visible state
void updateComboBoxHoles(PointCloud::Mode mode)
update combo box text
void updateSpinBoxHoles(float d)
update spin box value
Mode
The rendering mode for the cloud.
Definition: pointcloud.h:36
void updateCheckBoxTraps(bool checked)
update check box state
void on_checkBoxElectrons_stateChanged(int state)
set pointcloud visible state
void on_spinBoxTraps_valueChanged(double d)
set pointcloud point size
void updateCheckBoxHoles(bool checked)
update check box state
float e_pointSize_old
old pointSize (for undo)
Definition: pointdialog.h:219
A class to get point cloud properties from the user.
Definition: pointdialog.h:19
void on_checkBoxTraps_stateChanged(int state)
set pointcloud visible state
void on_checkBoxHoles_stateChanged(int state)
set pointcloud visible state
void updateSpinBoxDefects(float d)
update spin box value
bool h_visible
old visible state (for undo)
Definition: pointdialog.h:249
void remember()
remember settings (for undo)
Definition: axis.h:6
void on_comboBoxHoles_currentTextChanged(const QString &text)
set pointcloud render mode
Ui::PointDialog * ui
dialog UI
Definition: pointdialog.h:213
float h_pointSize_old
old pointSize (for undo)
Definition: pointdialog.h:225
bool e_visible
old visible state (for undo)
Definition: pointdialog.h:243
bool d_visible
old visible state (for undo)
Definition: pointdialog.h:246
Widget to view Langmuir Simulation in real time.
Definition: langmuirviewer.h:47
PointCloud::Mode h_mode_old
old mode (for undo)
Definition: pointdialog.h:237
void on_buttonBox_rejected()
reset values
void updateCheckBoxElectrons(bool checked)
update check box state
float d_pointSize_old
old pointSize (for undo)
Definition: pointdialog.h:222
void updateSpinBoxTraps(float d)
update spin box value
void on_spinBoxDefects_valueChanged(double d)
set pointcloud point size
bool t_visible
old visible state (for undo)
Definition: pointdialog.h:252
void update()
update dialog
void updateComboBoxTraps(PointCloud::Mode mode)
update combo box text
~PointDialog()
destroy the PointDialog
void reset()
undo settings
PointCloud::Mode e_mode_old
old mode (for undo)
Definition: pointdialog.h:231
void on_spinBoxHoles_valueChanged(double d)
set pointcloud point size
void on_comboBoxElectrons_currentTextChanged(const QString &text)
set pointcloud render mode
float t_pointSize_old
old pointSize (for undo)
Definition: pointdialog.h:228
void updateSpinBoxElectrons(float d)
update spin box value