1 // Project MULTIPR, IOLS WP1.2.1 - EDF/CS
2 // Partitioning/decimation module for the SALOME v3.2 platform
5 * \file MULTIPR_GUI_Dlg.h
7 * \brief MULTIPR GUI Dialog (QT)
9 * \author Olivier LE ROUX - CS, Virtual Reality Dpt
14 #ifndef __MULTIPR_GUI_DLG__
15 #define __MULTIPR_GUI_DLG__
18 //*****************************************************************************
20 //*****************************************************************************
23 #include <qprogressdialog.h>
25 #include "MULTIPR_ProgressCallback.hxx"
28 //*****************************************************************************
30 //*****************************************************************************
32 class SalomeApp_Application;
50 //*****************************************************************************
51 // Class MULTIPR_GUI_Partition1Dlg
52 // Dialog box used for extracting groups from sequential MED file
53 //*****************************************************************************
55 class MULTIPR_GUI_Partition1Dlg : public QDialog
60 MULTIPR_GUI_Partition1Dlg(MULTIPR_GUI* theModule);
61 ~MULTIPR_GUI_Partition1Dlg();
63 QButtonGroup* buttonGroupProcess;
64 QPushButton* pushButtonCancel;
65 QPushButton* pushButtonOK;
66 QButtonGroup* buttonGroupSelectMesh;
67 QComboBox* comboBoxSelectMesh;
68 QLabel* textLabelSelectMesh;
80 //*****************************************************************************
81 // Class MULTIPR_GUI_Partition2Dlg
82 // Dialog box used for splitting a group (use MEDSPLITTER)
83 //*****************************************************************************
85 class MULTIPR_GUI_Partition2Dlg : public QDialog
90 MULTIPR_GUI_Partition2Dlg(MULTIPR_GUI* theModule);
91 ~MULTIPR_GUI_Partition2Dlg();
93 QButtonGroup* buttonGroupSplitParameters;
94 QLabel* textLabelSelectNbParts;
95 QLabel* textLabelSelectSplitter;
96 QComboBox* comboBoxSelectSplitter;
97 QSpinBox* spinBoxNbParts;
98 QButtonGroup* buttonGroupProcess;
99 QPushButton* pushButtonOK;
100 QPushButton* pushButtonCancel;
107 MULTIPR_GUI* mModule;
111 //*****************************************************************************
112 // Class MULTIPR_GUI_DecimateDlg
113 // Dialog box used for decimating mesh (compute 2 lower resolution: medium and low)
114 //*****************************************************************************
116 class MULTIPR_GUI_DecimateDlg : public QDialog
121 MULTIPR_GUI_DecimateDlg(MULTIPR_GUI* theModule);
122 ~MULTIPR_GUI_DecimateDlg();
124 QButtonGroup* buttonGroupSelectField;
125 QLabel* textLabelSelectFieldName;
126 QLabel* textLabelSelectFieldIteration;
127 QComboBox* comboBoxSelectFieldIteration;
128 QComboBox* comboBoxSelectFieldName;
129 QButtonGroup* buttonGroupSelectFilter;
130 QLabel* textLabelSelectFilter;
131 QComboBox* comboBoxSelectFilter;
132 QButtonGroup* buttonGroupParameters;
133 QLabel* textLabelTMed;
134 QLabel* textLabelTLow;
135 QLabel* textLabelRadius;
136 QLabel* textLabelBoxing;
137 QLineEdit* lineEditTMed;
138 QLineEdit* lineEditTLow;
139 QLineEdit* lineEditRadius;
140 QSpinBox* spinBoxBoxing;
141 QButtonGroup* buttonGroupProcess;
142 QPushButton* pushButtonCancel;
143 QPushButton* pushButtonOK;
144 QPushButton* pushButtonThresholdAuto;
145 QPushButton* pushButtonRadiusAuto;
153 void OnThresholdAuto();
156 MULTIPR_GUI* mModule;
161 //*****************************************************************************
162 // Class MULTIPR_GUI_ProgressCallbackDlg
163 //*****************************************************************************
165 class MULTIPR_GUI_ProgressCallbackDlg :
166 public QProgressDialog,
167 public MULTIPR_ProgressCallback
174 MULTIPR_GUI_ProgressCallbackDlg(QWidget* parent);
176 ~MULTIPR_GUI_ProgressCallbackDlg();
178 virtual void start(const char* pTaskTitle, int pNumStep);
184 virtual void progress(float pPercent);
188 //*****************************************************************************
189 // Class MULTIPR_GUI_EmptyMeshCallbackDlg
190 //*****************************************************************************
192 class MULTIPR_GUI_EmptyMeshCallbackDlg : public MULTIPR_EmptyMeshCallback
196 MULTIPR_GUI_EmptyMeshCallbackDlg(QWidget* parent);
198 ~MULTIPR_GUI_EmptyMeshCallbackDlg();
200 virtual void reportEmptyMesh(std::string pInfo);
209 #endif // __MULTIPR_GUI_DLG__