Langmuir
Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
isosurfacedialog.h
Go to the documentation of this file.
1 #ifndef ISOSURFACEDIALOG_H
2 #define ISOSURFACEDIALOG_H
3 
4 #include "mesh.h"
5 
6 #include <QDialog>
7 
8 namespace Ui {
9 class IsoSurfaceDialog;
10 }
11 
12 namespace LangmuirView {
13 
14 class LangmuirViewer;
15 
19 class IsoSurfaceDialog : public QDialog
20 {
21  Q_OBJECT
22 
23 public:
29  explicit IsoSurfaceDialog(LangmuirViewer &viewer, QWidget *parent = 0);
30 
35 
36 public slots:
40  void init();
41 
45  void update();
46 
51 
56  void setCalculateEnabled(bool enabled);
57 
63  void setProgressRange(int low, int high);
64 
69  void setProgress(int value);
70 
75  void updateComboBoxMode(Mesh::Mode mode);
76 
81  void updateSpinBoxAlpha(int value);
82 
87  void on_comboBoxMode_currentTextChanged(const QString & text);
88 
93  void on_spinBoxAlpha_valueChanged(int value);
94 
99  void extractAlpha(QColor color);
100 
101 signals:
106  void sendAlpha(int value);
107 
108 private:
110  Ui::IsoSurfaceDialog *ui;
111 
114 };
115 
116 }
117 
118 #endif // ISOSURFACEDIALOG_H
LangmuirViewer & m_viewer
reference to OpenGL widget
Definition: isosurfacedialog.h:113
void setProgressRange(int low, int high)
set progress bar range
Ui::IsoSurfaceDialog * ui
dialog UI
Definition: isosurfacedialog.h:110
void on_comboBoxMode_currentTextChanged(const QString &text)
set trap mesh render mode
A class to get isosurface parameters from the user.
Definition: isosurfacedialog.h:19
void on_spinBoxAlpha_valueChanged(int value)
set trap mesh alpha value
void updateSpinBoxAlpha(int value)
update spin box value
Definition: isosurfacedialog.h:8
Mode
The rendering mode for the cloud.
Definition: mesh.h:36
void setProgress(int value)
set current value of progress bar
void on_calculateButton_clicked()
start isosurface calculation
void init()
initialize dialog
Definition: axis.h:6
void extractAlpha(QColor color)
get alpha component of color and emit it (using sendAlpha)
Widget to view Langmuir Simulation in real time.
Definition: langmuirviewer.h:47
void update()
update dialog
IsoSurfaceDialog(LangmuirViewer &viewer, QWidget *parent=0)
create the IsoSurfaceDialog
void sendAlpha(int value)
sendAlpha
void setCalculateEnabled(bool enabled)
allow isosurface calculation
~IsoSurfaceDialog()
destroy the IsoSurfaceDialog
void updateComboBoxMode(Mesh::Mode mode)
update combo box text