]> SALOME platform Git repositories - modules/smesh.git/blob - src/SMESHGUI/SMESHGUI_HomardBoundaryDlg.h
Salome HOME
bos #29143 [CEA] Compute takes too much time in polyhedron per solid use case
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_HomardBoundaryDlg.h
1 // Copyright (C) 2011-2021  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef MON_CREATEBOUNDARY_H
21 #define MON_CREATEBOUNDARY_H
22
23 #include "SMESH_SMESHGUI.hxx"
24
25 #include <SALOMEconfig.h>
26 #include <SalomeApp_Module.h>
27
28 #include CORBA_CLIENT_HEADER(SMESH_Homard)
29
30 #include <QDialog>
31
32 #include <QtCore/QVariant>
33 #include <QtGui/QIcon>
34 #include <QtWidgets/QApplication>
35 #include <QtWidgets/QCheckBox>
36 #include <QtWidgets/QDialog>
37 #include <QtWidgets/QDoubleSpinBox>
38 #include <QtWidgets/QGridLayout>
39 #include <QtWidgets/QGroupBox>
40 #include <QtWidgets/QLabel>
41 #include <QtWidgets/QLineEdit>
42 #include <QtWidgets/QPushButton>
43 #include <QtWidgets/QRadioButton>
44
45 class SMESHGUI_HomardAdaptDlg;
46
47 class SMESH_Ui_CreateBoundaryAn
48 {
49 public:
50     QGridLayout *gridLayout_5;
51     QLabel *Name;
52     QLineEdit *LEName;
53     QGroupBox *TypeBoundary;
54     QGridLayout *gridLayout;
55     QRadioButton *RBCylindre;
56     QRadioButton *RBSphere;
57     QRadioButton *RBCone;
58     QRadioButton *RBTore;
59     QGroupBox *gBCylindre;
60     QGridLayout *gridLayout1;
61     QDoubleSpinBox *SpinBox_Xcent;
62     QLabel *TLXcent;
63     QDoubleSpinBox *SpinBox_Radius;
64     QDoubleSpinBox *SpinBox_Zcent;
65     QLabel *TLradius;
66     QLabel *TLZcent;
67     QLabel *TLYcent;
68     QDoubleSpinBox *SpinBox_Ycent;
69     QLabel *TLXaxis;
70     QLabel *TLYaxis;
71     QLabel *TLZaxis;
72     QDoubleSpinBox *SpinBox_Zaxis;
73     QDoubleSpinBox *SpinBox_Yaxis;
74     QDoubleSpinBox *SpinBox_Xaxis;
75     QGroupBox *gBSphere;
76     QGridLayout *gridLayout2;
77     QDoubleSpinBox *SpinBox_Rayon;
78     QDoubleSpinBox *SpinBox_Zcentre;
79     QLabel *TLRayon;
80     QLabel *TLZcentre;
81     QLabel *TLYcentre;
82     QDoubleSpinBox *SpinBox_Ycentre;
83     QDoubleSpinBox *SpinBox_Xcentre;
84     QLabel *TLXcentre;
85     QGroupBox *gBCone;
86     QGridLayout *gridLayout_3;
87     QGroupBox *groupBox;
88     QGridLayout *gridLayout_2;
89     QRadioButton *RB_Def_radius;
90     QRadioButton *RB_Def_angle;
91     QLabel *TLCone_X1;
92     QDoubleSpinBox *SpinBox_Cone_X1;
93     QLabel *TLCone_X2;
94     QDoubleSpinBox *SpinBox_Cone_X2;
95     QLabel *TLCone_Y1;
96     QDoubleSpinBox *SpinBox_Cone_Y1;
97     QLabel *TLCone_Y2;
98     QDoubleSpinBox *SpinBox_Cone_Y2;
99     QLabel *TLCone_Z1;
100     QDoubleSpinBox *SpinBox_Cone_Z1;
101     QLabel *TLCone_Z2;
102     QDoubleSpinBox *SpinBox_Cone_Z2;
103     QLabel *TLCone_V1;
104     QDoubleSpinBox *SpinBox_Cone_V1;
105     QLabel *TLCone_V2;
106     QDoubleSpinBox *SpinBox_Cone_V2;
107     QGroupBox *gBTore;
108     QGridLayout *gridLayout_4;
109     QLabel *TLToreXcent;
110     QDoubleSpinBox *SpinBoxToreXcent;
111     QLabel *TLToreXaxe;
112     QDoubleSpinBox *SpinBoxToreXaxe;
113     QLabel *TLToreYcent;
114     QDoubleSpinBox *SpinBoxToreYcent;
115     QLabel *TLToreYaxe;
116     QDoubleSpinBox *SpinBoxToreYaxe;
117     QLabel *TLToreZcent;
118     QDoubleSpinBox *SpinBoxToreZcent;
119     QLabel *TLToreZaxe;
120     QDoubleSpinBox *SpinBoxToreZaxe;
121     QLabel *TLToreRayRev;
122     QDoubleSpinBox *SpinBoxToreRRev;
123     QLabel *TLToreRayPri;
124     QDoubleSpinBox *SpinBoxToreRPri;
125     QGroupBox *GBButtons;
126     QGridLayout *gridLayout3;
127     QPushButton *buttonHelp;
128     QPushButton *buttonCancel;
129     QPushButton *buttonApply;
130     QPushButton *buttonOk;
131
132     void setupUi(QDialog *CreateBoundaryAn)
133     {
134         if (CreateBoundaryAn->objectName().isEmpty())
135             CreateBoundaryAn->setObjectName(QString::fromUtf8("CreateBoundaryAn"));
136         CreateBoundaryAn->resize(522, 835);
137         CreateBoundaryAn->setAutoFillBackground(true);
138         CreateBoundaryAn->setSizeGripEnabled(true);
139         gridLayout_5 = new QGridLayout(CreateBoundaryAn);
140         gridLayout_5->setObjectName(QString::fromUtf8("gridLayout_5"));
141         Name = new QLabel(CreateBoundaryAn);
142         Name->setObjectName(QString::fromUtf8("Name"));
143
144         gridLayout_5->addWidget(Name, 0, 0, 1, 1);
145
146         LEName = new QLineEdit(CreateBoundaryAn);
147         LEName->setObjectName(QString::fromUtf8("LEName"));
148         LEName->setMaxLength(32);
149
150         gridLayout_5->addWidget(LEName, 0, 1, 1, 1);
151
152         TypeBoundary = new QGroupBox(CreateBoundaryAn);
153         TypeBoundary->setObjectName(QString::fromUtf8("TypeBoundary"));
154         QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
155         sizePolicy.setHorizontalStretch(0);
156         sizePolicy.setVerticalStretch(0);
157         sizePolicy.setHeightForWidth(TypeBoundary->sizePolicy().hasHeightForWidth());
158         TypeBoundary->setSizePolicy(sizePolicy);
159         TypeBoundary->setMinimumSize(QSize(340, 0));
160         gridLayout = new QGridLayout(TypeBoundary);
161         gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
162         RBCylindre = new QRadioButton(TypeBoundary);
163         RBCylindre->setObjectName(QString::fromUtf8("RBCylindre"));
164         QIcon icon;
165         icon.addFile(QString::fromUtf8("../../resources/cylinderpointvector.png"), QSize(), QIcon::Normal, QIcon::Off);
166         RBCylindre->setIcon(icon);
167         RBCylindre->setCheckable(true);
168         RBCylindre->setChecked(true);
169
170         gridLayout->addWidget(RBCylindre, 0, 0, 1, 1);
171
172         RBSphere = new QRadioButton(TypeBoundary);
173         RBSphere->setObjectName(QString::fromUtf8("RBSphere"));
174         QIcon icon1;
175         icon1.addFile(QString::fromUtf8("../../resources/zone_spherepoint.png"), QSize(), QIcon::Normal, QIcon::Off);
176         RBSphere->setIcon(icon1);
177
178         gridLayout->addWidget(RBSphere, 0, 1, 1, 1);
179
180         RBCone = new QRadioButton(TypeBoundary);
181         RBCone->setObjectName(QString::fromUtf8("RBCone"));
182         QIcon icon2;
183         icon2.addFile(QString::fromUtf8("../../resources/cone.png"), QSize(), QIcon::Normal, QIcon::Off);
184         RBCone->setIcon(icon2);
185
186         gridLayout->addWidget(RBCone, 0, 2, 1, 1);
187
188         RBTore = new QRadioButton(TypeBoundary);
189         RBTore->setObjectName(QString::fromUtf8("RBTore"));
190         QIcon icon3;
191         icon3.addFile(QString::fromUtf8("../../resources/toruspointvector.png"), QSize(), QIcon::Normal, QIcon::Off);
192         RBTore->setIcon(icon3);
193         RBTore->setCheckable(true);
194         RBTore->setChecked(false);
195
196         gridLayout->addWidget(RBTore, 0, 3, 1, 1);
197
198
199         gridLayout_5->addWidget(TypeBoundary, 1, 0, 1, 2);
200
201         gBCylindre = new QGroupBox(CreateBoundaryAn);
202         gBCylindre->setObjectName(QString::fromUtf8("gBCylindre"));
203         sizePolicy.setHeightForWidth(gBCylindre->sizePolicy().hasHeightForWidth());
204         gBCylindre->setSizePolicy(sizePolicy);
205         gridLayout1 = new QGridLayout(gBCylindre);
206 #ifndef Q_OS_MAC
207         gridLayout1->setSpacing(6);
208 #endif
209 #ifndef Q_OS_MAC
210         gridLayout1->setContentsMargins(9, 9, 9, 9);
211 #endif
212         gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
213         SpinBox_Xcent = new QDoubleSpinBox(gBCylindre);
214         SpinBox_Xcent->setObjectName(QString::fromUtf8("SpinBox_Xcent"));
215         SpinBox_Xcent->setDecimals(5);
216         SpinBox_Xcent->setMinimum(-999999999.000000000000000);
217         SpinBox_Xcent->setMaximum(999999999.000000000000000);
218         SpinBox_Xcent->setValue(0.000000000000000);
219
220         gridLayout1->addWidget(SpinBox_Xcent, 0, 1, 1, 1);
221
222         TLXcent = new QLabel(gBCylindre);
223         TLXcent->setObjectName(QString::fromUtf8("TLXcent"));
224         sizePolicy.setHeightForWidth(TLXcent->sizePolicy().hasHeightForWidth());
225         TLXcent->setSizePolicy(sizePolicy);
226         TLXcent->setWordWrap(false);
227
228         gridLayout1->addWidget(TLXcent, 0, 0, 1, 1);
229
230         SpinBox_Radius = new QDoubleSpinBox(gBCylindre);
231         SpinBox_Radius->setObjectName(QString::fromUtf8("SpinBox_Radius"));
232         SpinBox_Radius->setDecimals(5);
233         SpinBox_Radius->setMaximum(1000000000.000000000000000);
234
235         gridLayout1->addWidget(SpinBox_Radius, 3, 1, 1, 2);
236
237         SpinBox_Zcent = new QDoubleSpinBox(gBCylindre);
238         SpinBox_Zcent->setObjectName(QString::fromUtf8("SpinBox_Zcent"));
239         SpinBox_Zcent->setDecimals(5);
240         SpinBox_Zcent->setMinimum(-999999999.000000000000000);
241         SpinBox_Zcent->setMaximum(999999999.000000000000000);
242         SpinBox_Zcent->setValue(0.000000000000000);
243
244         gridLayout1->addWidget(SpinBox_Zcent, 2, 1, 1, 1);
245
246         TLradius = new QLabel(gBCylindre);
247         TLradius->setObjectName(QString::fromUtf8("TLradius"));
248         sizePolicy.setHeightForWidth(TLradius->sizePolicy().hasHeightForWidth());
249         TLradius->setSizePolicy(sizePolicy);
250         TLradius->setWordWrap(false);
251
252         gridLayout1->addWidget(TLradius, 3, 0, 1, 1);
253
254         TLZcent = new QLabel(gBCylindre);
255         TLZcent->setObjectName(QString::fromUtf8("TLZcent"));
256         sizePolicy.setHeightForWidth(TLZcent->sizePolicy().hasHeightForWidth());
257         TLZcent->setSizePolicy(sizePolicy);
258         TLZcent->setWordWrap(false);
259
260         gridLayout1->addWidget(TLZcent, 2, 0, 1, 1);
261
262         TLYcent = new QLabel(gBCylindre);
263         TLYcent->setObjectName(QString::fromUtf8("TLYcent"));
264         sizePolicy.setHeightForWidth(TLYcent->sizePolicy().hasHeightForWidth());
265         TLYcent->setSizePolicy(sizePolicy);
266         TLYcent->setWordWrap(false);
267
268         gridLayout1->addWidget(TLYcent, 1, 0, 1, 1);
269
270         SpinBox_Ycent = new QDoubleSpinBox(gBCylindre);
271         SpinBox_Ycent->setObjectName(QString::fromUtf8("SpinBox_Ycent"));
272         SpinBox_Ycent->setDecimals(5);
273         SpinBox_Ycent->setMinimum(-999999999.000000000000000);
274         SpinBox_Ycent->setMaximum(999999999.000000000000000);
275         SpinBox_Ycent->setValue(0.000000000000000);
276
277         gridLayout1->addWidget(SpinBox_Ycent, 1, 1, 1, 1);
278
279         TLXaxis = new QLabel(gBCylindre);
280         TLXaxis->setObjectName(QString::fromUtf8("TLXaxis"));
281         sizePolicy.setHeightForWidth(TLXaxis->sizePolicy().hasHeightForWidth());
282         TLXaxis->setSizePolicy(sizePolicy);
283         TLXaxis->setWordWrap(false);
284
285         gridLayout1->addWidget(TLXaxis, 0, 2, 1, 1);
286
287         TLYaxis = new QLabel(gBCylindre);
288         TLYaxis->setObjectName(QString::fromUtf8("TLYaxis"));
289         sizePolicy.setHeightForWidth(TLYaxis->sizePolicy().hasHeightForWidth());
290         TLYaxis->setSizePolicy(sizePolicy);
291         TLYaxis->setWordWrap(false);
292
293         gridLayout1->addWidget(TLYaxis, 1, 2, 1, 1);
294
295         TLZaxis = new QLabel(gBCylindre);
296         TLZaxis->setObjectName(QString::fromUtf8("TLZaxis"));
297         sizePolicy.setHeightForWidth(TLZaxis->sizePolicy().hasHeightForWidth());
298         TLZaxis->setSizePolicy(sizePolicy);
299         TLZaxis->setWordWrap(false);
300
301         gridLayout1->addWidget(TLZaxis, 2, 2, 1, 1);
302
303         SpinBox_Zaxis = new QDoubleSpinBox(gBCylindre);
304         SpinBox_Zaxis->setObjectName(QString::fromUtf8("SpinBox_Zaxis"));
305         SpinBox_Zaxis->setDecimals(5);
306         SpinBox_Zaxis->setMinimum(-999999999.000000000000000);
307         SpinBox_Zaxis->setMaximum(999999999.000000000000000);
308         SpinBox_Zaxis->setValue(0.000000000000000);
309
310         gridLayout1->addWidget(SpinBox_Zaxis, 2, 3, 1, 1);
311
312         SpinBox_Yaxis = new QDoubleSpinBox(gBCylindre);
313         SpinBox_Yaxis->setObjectName(QString::fromUtf8("SpinBox_Yaxis"));
314         SpinBox_Yaxis->setDecimals(5);
315         SpinBox_Yaxis->setMinimum(-999999999.000000000000000);
316         SpinBox_Yaxis->setMaximum(999999999.000000000000000);
317         SpinBox_Yaxis->setValue(0.000000000000000);
318
319         gridLayout1->addWidget(SpinBox_Yaxis, 1, 3, 1, 1);
320
321         SpinBox_Xaxis = new QDoubleSpinBox(gBCylindre);
322         SpinBox_Xaxis->setObjectName(QString::fromUtf8("SpinBox_Xaxis"));
323         SpinBox_Xaxis->setDecimals(5);
324         SpinBox_Xaxis->setMinimum(-999999999.000000000000000);
325         SpinBox_Xaxis->setMaximum(999999999.000000000000000);
326         SpinBox_Xaxis->setValue(0.000000000000000);
327
328         gridLayout1->addWidget(SpinBox_Xaxis, 0, 3, 1, 1);
329
330
331         gridLayout_5->addWidget(gBCylindre, 2, 0, 1, 2);
332
333         gBSphere = new QGroupBox(CreateBoundaryAn);
334         gBSphere->setObjectName(QString::fromUtf8("gBSphere"));
335         sizePolicy.setHeightForWidth(gBSphere->sizePolicy().hasHeightForWidth());
336         gBSphere->setSizePolicy(sizePolicy);
337         gridLayout2 = new QGridLayout(gBSphere);
338 #ifndef Q_OS_MAC
339         gridLayout2->setSpacing(6);
340 #endif
341 #ifndef Q_OS_MAC
342         gridLayout2->setContentsMargins(9, 9, 9, 9);
343 #endif
344         gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
345         SpinBox_Rayon = new QDoubleSpinBox(gBSphere);
346         SpinBox_Rayon->setObjectName(QString::fromUtf8("SpinBox_Rayon"));
347         SpinBox_Rayon->setDecimals(5);
348         SpinBox_Rayon->setMinimum(0.000000000000000);
349         SpinBox_Rayon->setMaximum(999999999.000000000000000);
350         SpinBox_Rayon->setValue(0.000000000000000);
351
352         gridLayout2->addWidget(SpinBox_Rayon, 1, 3, 1, 1);
353
354         SpinBox_Zcentre = new QDoubleSpinBox(gBSphere);
355         SpinBox_Zcentre->setObjectName(QString::fromUtf8("SpinBox_Zcentre"));
356         SpinBox_Zcentre->setDecimals(5);
357         SpinBox_Zcentre->setMinimum(-999999999.000000000000000);
358         SpinBox_Zcentre->setMaximum(999999999.000000000000000);
359         SpinBox_Zcentre->setValue(0.000000000000000);
360
361         gridLayout2->addWidget(SpinBox_Zcentre, 2, 1, 1, 1);
362
363         TLRayon = new QLabel(gBSphere);
364         TLRayon->setObjectName(QString::fromUtf8("TLRayon"));
365         sizePolicy.setHeightForWidth(TLRayon->sizePolicy().hasHeightForWidth());
366         TLRayon->setSizePolicy(sizePolicy);
367         TLRayon->setWordWrap(false);
368
369         gridLayout2->addWidget(TLRayon, 1, 2, 1, 1);
370
371         TLZcentre = new QLabel(gBSphere);
372         TLZcentre->setObjectName(QString::fromUtf8("TLZcentre"));
373         sizePolicy.setHeightForWidth(TLZcentre->sizePolicy().hasHeightForWidth());
374         TLZcentre->setSizePolicy(sizePolicy);
375         TLZcentre->setWordWrap(false);
376
377         gridLayout2->addWidget(TLZcentre, 2, 0, 1, 1);
378
379         TLYcentre = new QLabel(gBSphere);
380         TLYcentre->setObjectName(QString::fromUtf8("TLYcentre"));
381         sizePolicy.setHeightForWidth(TLYcentre->sizePolicy().hasHeightForWidth());
382         TLYcentre->setSizePolicy(sizePolicy);
383         TLYcentre->setWordWrap(false);
384
385         gridLayout2->addWidget(TLYcentre, 1, 0, 1, 1);
386
387         SpinBox_Ycentre = new QDoubleSpinBox(gBSphere);
388         SpinBox_Ycentre->setObjectName(QString::fromUtf8("SpinBox_Ycentre"));
389         SpinBox_Ycentre->setDecimals(5);
390         SpinBox_Ycentre->setMinimum(-999999999.000000000000000);
391         SpinBox_Ycentre->setMaximum(999999999.000000000000000);
392         SpinBox_Ycentre->setValue(0.000000000000000);
393
394         gridLayout2->addWidget(SpinBox_Ycentre, 1, 1, 1, 1);
395
396         SpinBox_Xcentre = new QDoubleSpinBox(gBSphere);
397         SpinBox_Xcentre->setObjectName(QString::fromUtf8("SpinBox_Xcentre"));
398         SpinBox_Xcentre->setDecimals(5);
399         SpinBox_Xcentre->setMinimum(-999999999.000000000000000);
400         SpinBox_Xcentre->setMaximum(999999999.000000000000000);
401         SpinBox_Xcentre->setValue(0.000000000000000);
402
403         gridLayout2->addWidget(SpinBox_Xcentre, 0, 1, 1, 1);
404
405         TLXcentre = new QLabel(gBSphere);
406         TLXcentre->setObjectName(QString::fromUtf8("TLXcentre"));
407         sizePolicy.setHeightForWidth(TLXcentre->sizePolicy().hasHeightForWidth());
408         TLXcentre->setSizePolicy(sizePolicy);
409         TLXcentre->setWordWrap(false);
410
411         gridLayout2->addWidget(TLXcentre, 0, 0, 1, 1);
412
413
414         gridLayout_5->addWidget(gBSphere, 3, 0, 1, 2);
415
416         gBCone = new QGroupBox(CreateBoundaryAn);
417         gBCone->setObjectName(QString::fromUtf8("gBCone"));
418         sizePolicy.setHeightForWidth(gBCone->sizePolicy().hasHeightForWidth());
419         gBCone->setSizePolicy(sizePolicy);
420         gridLayout_3 = new QGridLayout(gBCone);
421         gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
422         groupBox = new QGroupBox(gBCone);
423         groupBox->setObjectName(QString::fromUtf8("groupBox"));
424         gridLayout_2 = new QGridLayout(groupBox);
425         gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
426         RB_Def_radius = new QRadioButton(groupBox);
427         RB_Def_radius->setObjectName(QString::fromUtf8("RB_Def_radius"));
428         QIcon icon4;
429         icon4.addFile(QString::fromUtf8("../../resources/conedxyz.png"), QSize(), QIcon::Normal, QIcon::Off);
430         RB_Def_radius->setIcon(icon4);
431         RB_Def_radius->setChecked(true);
432
433         gridLayout_2->addWidget(RB_Def_radius, 0, 0, 1, 1);
434
435         RB_Def_angle = new QRadioButton(groupBox);
436         RB_Def_angle->setObjectName(QString::fromUtf8("RB_Def_angle"));
437         QIcon icon5;
438         icon5.addFile(QString::fromUtf8("../../resources/conepointvector.png"), QSize(), QIcon::Normal, QIcon::Off);
439         RB_Def_angle->setIcon(icon5);
440
441         gridLayout_2->addWidget(RB_Def_angle, 0, 1, 1, 1);
442
443
444         gridLayout_3->addWidget(groupBox, 0, 0, 1, 2);
445
446         TLCone_X1 = new QLabel(gBCone);
447         TLCone_X1->setObjectName(QString::fromUtf8("TLCone_X1"));
448         sizePolicy.setHeightForWidth(TLCone_X1->sizePolicy().hasHeightForWidth());
449         TLCone_X1->setSizePolicy(sizePolicy);
450         TLCone_X1->setWordWrap(false);
451
452         gridLayout_3->addWidget(TLCone_X1, 1, 0, 1, 1);
453
454         SpinBox_Cone_X1 = new QDoubleSpinBox(gBCone);
455         SpinBox_Cone_X1->setObjectName(QString::fromUtf8("SpinBox_Cone_X1"));
456         SpinBox_Cone_X1->setDecimals(5);
457         SpinBox_Cone_X1->setMinimum(-999999999.000000000000000);
458         SpinBox_Cone_X1->setMaximum(999999999.000000000000000);
459         SpinBox_Cone_X1->setValue(0.000000000000000);
460
461         gridLayout_3->addWidget(SpinBox_Cone_X1, 1, 1, 1, 1);
462
463         TLCone_X2 = new QLabel(gBCone);
464         TLCone_X2->setObjectName(QString::fromUtf8("TLCone_X2"));
465         sizePolicy.setHeightForWidth(TLCone_X2->sizePolicy().hasHeightForWidth());
466         TLCone_X2->setSizePolicy(sizePolicy);
467         TLCone_X2->setWordWrap(false);
468
469         gridLayout_3->addWidget(TLCone_X2, 1, 2, 1, 1);
470
471         SpinBox_Cone_X2 = new QDoubleSpinBox(gBCone);
472         SpinBox_Cone_X2->setObjectName(QString::fromUtf8("SpinBox_Cone_X2"));
473         SpinBox_Cone_X2->setDecimals(5);
474         SpinBox_Cone_X2->setMinimum(-999999999.000000000000000);
475         SpinBox_Cone_X2->setMaximum(999999999.000000000000000);
476         SpinBox_Cone_X2->setValue(0.000000000000000);
477
478         gridLayout_3->addWidget(SpinBox_Cone_X2, 1, 3, 1, 1);
479
480         TLCone_Y1 = new QLabel(gBCone);
481         TLCone_Y1->setObjectName(QString::fromUtf8("TLCone_Y1"));
482         sizePolicy.setHeightForWidth(TLCone_Y1->sizePolicy().hasHeightForWidth());
483         TLCone_Y1->setSizePolicy(sizePolicy);
484         TLCone_Y1->setWordWrap(false);
485
486         gridLayout_3->addWidget(TLCone_Y1, 2, 0, 1, 1);
487
488         SpinBox_Cone_Y1 = new QDoubleSpinBox(gBCone);
489         SpinBox_Cone_Y1->setObjectName(QString::fromUtf8("SpinBox_Cone_Y1"));
490         SpinBox_Cone_Y1->setDecimals(5);
491         SpinBox_Cone_Y1->setMinimum(-999999999.000000000000000);
492         SpinBox_Cone_Y1->setMaximum(999999999.000000000000000);
493         SpinBox_Cone_Y1->setValue(0.000000000000000);
494
495         gridLayout_3->addWidget(SpinBox_Cone_Y1, 2, 1, 1, 1);
496
497         TLCone_Y2 = new QLabel(gBCone);
498         TLCone_Y2->setObjectName(QString::fromUtf8("TLCone_Y2"));
499         sizePolicy.setHeightForWidth(TLCone_Y2->sizePolicy().hasHeightForWidth());
500         TLCone_Y2->setSizePolicy(sizePolicy);
501         TLCone_Y2->setWordWrap(false);
502
503         gridLayout_3->addWidget(TLCone_Y2, 2, 2, 1, 1);
504
505         SpinBox_Cone_Y2 = new QDoubleSpinBox(gBCone);
506         SpinBox_Cone_Y2->setObjectName(QString::fromUtf8("SpinBox_Cone_Y2"));
507         SpinBox_Cone_Y2->setDecimals(5);
508         SpinBox_Cone_Y2->setMinimum(-999999999.000000000000000);
509         SpinBox_Cone_Y2->setMaximum(999999999.000000000000000);
510         SpinBox_Cone_Y2->setValue(0.000000000000000);
511
512         gridLayout_3->addWidget(SpinBox_Cone_Y2, 2, 3, 1, 1);
513
514         TLCone_Z1 = new QLabel(gBCone);
515         TLCone_Z1->setObjectName(QString::fromUtf8("TLCone_Z1"));
516         sizePolicy.setHeightForWidth(TLCone_Z1->sizePolicy().hasHeightForWidth());
517         TLCone_Z1->setSizePolicy(sizePolicy);
518         TLCone_Z1->setWordWrap(false);
519
520         gridLayout_3->addWidget(TLCone_Z1, 3, 0, 1, 1);
521
522         SpinBox_Cone_Z1 = new QDoubleSpinBox(gBCone);
523         SpinBox_Cone_Z1->setObjectName(QString::fromUtf8("SpinBox_Cone_Z1"));
524         SpinBox_Cone_Z1->setDecimals(5);
525         SpinBox_Cone_Z1->setMinimum(-999999999.000000000000000);
526         SpinBox_Cone_Z1->setMaximum(999999999.000000000000000);
527         SpinBox_Cone_Z1->setValue(0.000000000000000);
528
529         gridLayout_3->addWidget(SpinBox_Cone_Z1, 3, 1, 1, 1);
530
531         TLCone_Z2 = new QLabel(gBCone);
532         TLCone_Z2->setObjectName(QString::fromUtf8("TLCone_Z2"));
533         sizePolicy.setHeightForWidth(TLCone_Z2->sizePolicy().hasHeightForWidth());
534         TLCone_Z2->setSizePolicy(sizePolicy);
535         TLCone_Z2->setWordWrap(false);
536
537         gridLayout_3->addWidget(TLCone_Z2, 3, 2, 1, 1);
538
539         SpinBox_Cone_Z2 = new QDoubleSpinBox(gBCone);
540         SpinBox_Cone_Z2->setObjectName(QString::fromUtf8("SpinBox_Cone_Z2"));
541         SpinBox_Cone_Z2->setDecimals(5);
542         SpinBox_Cone_Z2->setMinimum(-999999999.000000000000000);
543         SpinBox_Cone_Z2->setMaximum(999999999.000000000000000);
544         SpinBox_Cone_Z2->setValue(0.000000000000000);
545
546         gridLayout_3->addWidget(SpinBox_Cone_Z2, 3, 3, 1, 1);
547
548         TLCone_V1 = new QLabel(gBCone);
549         TLCone_V1->setObjectName(QString::fromUtf8("TLCone_V1"));
550         sizePolicy.setHeightForWidth(TLCone_V1->sizePolicy().hasHeightForWidth());
551         TLCone_V1->setSizePolicy(sizePolicy);
552         TLCone_V1->setWordWrap(false);
553
554         gridLayout_3->addWidget(TLCone_V1, 4, 0, 1, 1);
555
556         SpinBox_Cone_V1 = new QDoubleSpinBox(gBCone);
557         SpinBox_Cone_V1->setObjectName(QString::fromUtf8("SpinBox_Cone_V1"));
558         SpinBox_Cone_V1->setDecimals(5);
559         SpinBox_Cone_V1->setMaximum(1000000000.000000000000000);
560
561         gridLayout_3->addWidget(SpinBox_Cone_V1, 4, 1, 1, 1);
562
563         TLCone_V2 = new QLabel(gBCone);
564         TLCone_V2->setObjectName(QString::fromUtf8("TLCone_V2"));
565         sizePolicy.setHeightForWidth(TLCone_V2->sizePolicy().hasHeightForWidth());
566         TLCone_V2->setSizePolicy(sizePolicy);
567         TLCone_V2->setWordWrap(false);
568
569         gridLayout_3->addWidget(TLCone_V2, 4, 2, 1, 1);
570
571         SpinBox_Cone_V2 = new QDoubleSpinBox(gBCone);
572         SpinBox_Cone_V2->setObjectName(QString::fromUtf8("SpinBox_Cone_V2"));
573         SpinBox_Cone_V2->setDecimals(5);
574         SpinBox_Cone_V2->setMaximum(1000000000.000000000000000);
575
576         gridLayout_3->addWidget(SpinBox_Cone_V2, 4, 3, 1, 1);
577
578
579         gridLayout_5->addWidget(gBCone, 4, 0, 1, 2);
580
581         gBTore = new QGroupBox(CreateBoundaryAn);
582         gBTore->setObjectName(QString::fromUtf8("gBTore"));
583         sizePolicy.setHeightForWidth(gBTore->sizePolicy().hasHeightForWidth());
584         gBTore->setSizePolicy(sizePolicy);
585         gridLayout_4 = new QGridLayout(gBTore);
586         gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4"));
587         TLToreXcent = new QLabel(gBTore);
588         TLToreXcent->setObjectName(QString::fromUtf8("TLToreXcent"));
589         sizePolicy.setHeightForWidth(TLToreXcent->sizePolicy().hasHeightForWidth());
590         TLToreXcent->setSizePolicy(sizePolicy);
591         TLToreXcent->setWordWrap(false);
592
593         gridLayout_4->addWidget(TLToreXcent, 0, 0, 1, 1);
594
595         SpinBoxToreXcent = new QDoubleSpinBox(gBTore);
596         SpinBoxToreXcent->setObjectName(QString::fromUtf8("SpinBoxToreXcent"));
597         SpinBoxToreXcent->setDecimals(5);
598         SpinBoxToreXcent->setMinimum(-999999999.000000000000000);
599         SpinBoxToreXcent->setMaximum(999999999.000000000000000);
600         SpinBoxToreXcent->setValue(0.000000000000000);
601
602         gridLayout_4->addWidget(SpinBoxToreXcent, 0, 1, 1, 1);
603
604         TLToreXaxe = new QLabel(gBTore);
605         TLToreXaxe->setObjectName(QString::fromUtf8("TLToreXaxe"));
606         sizePolicy.setHeightForWidth(TLToreXaxe->sizePolicy().hasHeightForWidth());
607         TLToreXaxe->setSizePolicy(sizePolicy);
608         TLToreXaxe->setWordWrap(false);
609
610         gridLayout_4->addWidget(TLToreXaxe, 0, 2, 1, 1);
611
612         SpinBoxToreXaxe = new QDoubleSpinBox(gBTore);
613         SpinBoxToreXaxe->setObjectName(QString::fromUtf8("SpinBoxToreXaxe"));
614         SpinBoxToreXaxe->setDecimals(5);
615         SpinBoxToreXaxe->setMinimum(-999999999.000000000000000);
616         SpinBoxToreXaxe->setMaximum(999999999.000000000000000);
617         SpinBoxToreXaxe->setValue(0.000000000000000);
618
619         gridLayout_4->addWidget(SpinBoxToreXaxe, 0, 3, 1, 1);
620
621         TLToreYcent = new QLabel(gBTore);
622         TLToreYcent->setObjectName(QString::fromUtf8("TLToreYcent"));
623         sizePolicy.setHeightForWidth(TLToreYcent->sizePolicy().hasHeightForWidth());
624         TLToreYcent->setSizePolicy(sizePolicy);
625         TLToreYcent->setWordWrap(false);
626
627         gridLayout_4->addWidget(TLToreYcent, 1, 0, 1, 1);
628
629         SpinBoxToreYcent = new QDoubleSpinBox(gBTore);
630         SpinBoxToreYcent->setObjectName(QString::fromUtf8("SpinBoxToreYcent"));
631         SpinBoxToreYcent->setDecimals(5);
632         SpinBoxToreYcent->setMinimum(-999999999.000000000000000);
633         SpinBoxToreYcent->setMaximum(999999999.000000000000000);
634         SpinBoxToreYcent->setValue(0.000000000000000);
635
636         gridLayout_4->addWidget(SpinBoxToreYcent, 1, 1, 1, 1);
637
638         TLToreYaxe = new QLabel(gBTore);
639         TLToreYaxe->setObjectName(QString::fromUtf8("TLToreYaxe"));
640         sizePolicy.setHeightForWidth(TLToreYaxe->sizePolicy().hasHeightForWidth());
641         TLToreYaxe->setSizePolicy(sizePolicy);
642         TLToreYaxe->setWordWrap(false);
643
644         gridLayout_4->addWidget(TLToreYaxe, 1, 2, 1, 1);
645
646         SpinBoxToreYaxe = new QDoubleSpinBox(gBTore);
647         SpinBoxToreYaxe->setObjectName(QString::fromUtf8("SpinBoxToreYaxe"));
648         SpinBoxToreYaxe->setDecimals(5);
649         SpinBoxToreYaxe->setMinimum(-999999999.000000000000000);
650         SpinBoxToreYaxe->setMaximum(999999999.000000000000000);
651         SpinBoxToreYaxe->setValue(0.000000000000000);
652
653         gridLayout_4->addWidget(SpinBoxToreYaxe, 1, 3, 1, 1);
654
655         TLToreZcent = new QLabel(gBTore);
656         TLToreZcent->setObjectName(QString::fromUtf8("TLToreZcent"));
657         sizePolicy.setHeightForWidth(TLToreZcent->sizePolicy().hasHeightForWidth());
658         TLToreZcent->setSizePolicy(sizePolicy);
659         TLToreZcent->setWordWrap(false);
660
661         gridLayout_4->addWidget(TLToreZcent, 2, 0, 1, 1);
662
663         SpinBoxToreZcent = new QDoubleSpinBox(gBTore);
664         SpinBoxToreZcent->setObjectName(QString::fromUtf8("SpinBoxToreZcent"));
665         SpinBoxToreZcent->setDecimals(5);
666         SpinBoxToreZcent->setMinimum(-999999999.000000000000000);
667         SpinBoxToreZcent->setMaximum(999999999.000000000000000);
668         SpinBoxToreZcent->setValue(0.000000000000000);
669
670         gridLayout_4->addWidget(SpinBoxToreZcent, 2, 1, 1, 1);
671
672         TLToreZaxe = new QLabel(gBTore);
673         TLToreZaxe->setObjectName(QString::fromUtf8("TLToreZaxe"));
674         sizePolicy.setHeightForWidth(TLToreZaxe->sizePolicy().hasHeightForWidth());
675         TLToreZaxe->setSizePolicy(sizePolicy);
676         TLToreZaxe->setWordWrap(false);
677
678         gridLayout_4->addWidget(TLToreZaxe, 2, 2, 1, 1);
679
680         SpinBoxToreZaxe = new QDoubleSpinBox(gBTore);
681         SpinBoxToreZaxe->setObjectName(QString::fromUtf8("SpinBoxToreZaxe"));
682         SpinBoxToreZaxe->setDecimals(5);
683         SpinBoxToreZaxe->setMinimum(-999999999.000000000000000);
684         SpinBoxToreZaxe->setMaximum(999999999.000000000000000);
685         SpinBoxToreZaxe->setValue(0.000000000000000);
686
687         gridLayout_4->addWidget(SpinBoxToreZaxe, 2, 3, 1, 1);
688
689         TLToreRayRev = new QLabel(gBTore);
690         TLToreRayRev->setObjectName(QString::fromUtf8("TLToreRayRev"));
691         sizePolicy.setHeightForWidth(TLToreRayRev->sizePolicy().hasHeightForWidth());
692         TLToreRayRev->setSizePolicy(sizePolicy);
693         TLToreRayRev->setWordWrap(false);
694
695         gridLayout_4->addWidget(TLToreRayRev, 3, 0, 1, 1);
696
697         SpinBoxToreRRev = new QDoubleSpinBox(gBTore);
698         SpinBoxToreRRev->setObjectName(QString::fromUtf8("SpinBoxToreRRev"));
699         SpinBoxToreRRev->setDecimals(5);
700         SpinBoxToreRRev->setMaximum(1000000000.000000000000000);
701
702         gridLayout_4->addWidget(SpinBoxToreRRev, 3, 1, 1, 1);
703
704         TLToreRayPri = new QLabel(gBTore);
705         TLToreRayPri->setObjectName(QString::fromUtf8("TLToreRayPri"));
706         sizePolicy.setHeightForWidth(TLToreRayPri->sizePolicy().hasHeightForWidth());
707         TLToreRayPri->setSizePolicy(sizePolicy);
708         TLToreRayPri->setWordWrap(false);
709
710         gridLayout_4->addWidget(TLToreRayPri, 3, 2, 1, 1);
711
712         SpinBoxToreRPri = new QDoubleSpinBox(gBTore);
713         SpinBoxToreRPri->setObjectName(QString::fromUtf8("SpinBoxToreRPri"));
714         SpinBoxToreRPri->setDecimals(5);
715         SpinBoxToreRPri->setMaximum(1000000000.000000000000000);
716
717         gridLayout_4->addWidget(SpinBoxToreRPri, 3, 3, 1, 1);
718
719
720         gridLayout_5->addWidget(gBTore, 5, 0, 1, 2);
721
722         GBButtons = new QGroupBox(CreateBoundaryAn);
723         GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
724         sizePolicy.setHeightForWidth(GBButtons->sizePolicy().hasHeightForWidth());
725         GBButtons->setSizePolicy(sizePolicy);
726         gridLayout3 = new QGridLayout(GBButtons);
727 #ifndef Q_OS_MAC
728         gridLayout3->setSpacing(6);
729 #endif
730 #ifndef Q_OS_MAC
731         gridLayout3->setContentsMargins(9, 9, 9, 9);
732 #endif
733         gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
734         buttonHelp = new QPushButton(GBButtons);
735         buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
736
737         gridLayout3->addWidget(buttonHelp, 0, 3, 1, 1);
738
739         buttonCancel = new QPushButton(GBButtons);
740         buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
741
742         gridLayout3->addWidget(buttonCancel, 0, 2, 1, 1);
743
744         buttonApply = new QPushButton(GBButtons);
745         buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
746
747         gridLayout3->addWidget(buttonApply, 0, 1, 1, 1);
748
749         buttonOk = new QPushButton(GBButtons);
750         buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
751
752         gridLayout3->addWidget(buttonOk, 0, 0, 1, 1);
753
754
755         gridLayout_5->addWidget(GBButtons, 6, 0, 1, 2);
756
757
758         retranslateUi(CreateBoundaryAn);
759
760         QMetaObject::connectSlotsByName(CreateBoundaryAn);
761     } // setupUi
762
763     void retranslateUi(QDialog *CreateBoundaryAn)
764     {
765         CreateBoundaryAn->setWindowTitle(QApplication::translate("CreateBoundaryAn", "Create an analytical boundary", nullptr));
766         Name->setText(QApplication::translate("CreateBoundaryAn", "Name", nullptr));
767         TypeBoundary->setTitle(QApplication::translate("CreateBoundaryAn", "Type of boundary", nullptr));
768         RBCylindre->setText(QApplication::translate("CreateBoundaryAn", "Cylinder", nullptr));
769         RBSphere->setText(QApplication::translate("CreateBoundaryAn", "Sphere", nullptr));
770         RBCone->setText(QApplication::translate("CreateBoundaryAn", "Cone", nullptr));
771         RBTore->setText(QApplication::translate("CreateBoundaryAn", "Torus", nullptr));
772         gBCylindre->setTitle(QApplication::translate("CreateBoundaryAn", "Coordinates", nullptr));
773         TLXcent->setText(QApplication::translate("CreateBoundaryAn", "X centre", nullptr));
774         TLradius->setText(QApplication::translate("CreateBoundaryAn", "Radius", nullptr));
775         TLZcent->setText(QApplication::translate("CreateBoundaryAn", "Z centre", nullptr));
776         TLYcent->setText(QApplication::translate("CreateBoundaryAn", "Y centre", nullptr));
777         TLXaxis->setText(QApplication::translate("CreateBoundaryAn", "X axis", nullptr));
778         TLYaxis->setText(QApplication::translate("CreateBoundaryAn", "Y axis", nullptr));
779         TLZaxis->setText(QApplication::translate("CreateBoundaryAn", "Z axis", nullptr));
780         gBSphere->setTitle(QApplication::translate("CreateBoundaryAn", "Coordinates", nullptr));
781         TLRayon->setText(QApplication::translate("CreateBoundaryAn", "Radius", nullptr));
782         TLZcentre->setText(QApplication::translate("CreateBoundaryAn", "Z centre", nullptr));
783         TLYcentre->setText(QApplication::translate("CreateBoundaryAn", "Y centre", nullptr));
784         TLXcentre->setText(QApplication::translate("CreateBoundaryAn", "X centre", nullptr));
785         gBCone->setTitle(QApplication::translate("CreateBoundaryAn", "Coordinates", nullptr));
786         groupBox->setTitle(QApplication::translate("CreateBoundaryAn", "Definition", nullptr));
787         RB_Def_radius->setText(QApplication::translate("CreateBoundaryAn", "Radius", nullptr));
788         RB_Def_angle->setText(QApplication::translate("CreateBoundaryAn", "Angle", nullptr));
789         TLCone_X1->setText(QApplication::translate("CreateBoundaryAn", "X 1", nullptr));
790         TLCone_X2->setText(QApplication::translate("CreateBoundaryAn", "X 2", nullptr));
791         TLCone_Y1->setText(QApplication::translate("CreateBoundaryAn", "Y 1", nullptr));
792         TLCone_Y2->setText(QApplication::translate("CreateBoundaryAn", "Y 2", nullptr));
793         TLCone_Z1->setText(QApplication::translate("CreateBoundaryAn", "Z 1", nullptr));
794         TLCone_Z2->setText(QApplication::translate("CreateBoundaryAn", "Z 2", nullptr));
795         TLCone_V1->setText(QApplication::translate("CreateBoundaryAn", "V 1", nullptr));
796         TLCone_V2->setText(QApplication::translate("CreateBoundaryAn", "V 2", nullptr));
797         gBTore->setTitle(QApplication::translate("CreateBoundaryAn", "Coordinates", nullptr));
798         TLToreXcent->setText(QApplication::translate("CreateBoundaryAn", "X centre", nullptr));
799         TLToreXaxe->setText(QApplication::translate("CreateBoundaryAn", "X axis", nullptr));
800         TLToreYcent->setText(QApplication::translate("CreateBoundaryAn", "Y centre", nullptr));
801         TLToreYaxe->setText(QApplication::translate("CreateBoundaryAn", "Y axis", nullptr));
802         TLToreZcent->setText(QApplication::translate("CreateBoundaryAn", "Z centre", nullptr));
803         TLToreZaxe->setText(QApplication::translate("CreateBoundaryAn", "Z axis", nullptr));
804         TLToreRayRev->setText(QApplication::translate("CreateBoundaryAn", "R revolution", nullptr));
805         TLToreRayPri->setText(QApplication::translate("CreateBoundaryAn", "Primary R", nullptr));
806         GBButtons->setTitle(QString());
807         buttonHelp->setText(QApplication::translate("CreateBoundaryAn", "Help", nullptr));
808         buttonCancel->setText(QApplication::translate("CreateBoundaryAn", "Cancel", nullptr));
809         buttonApply->setText(QApplication::translate("CreateBoundaryAn", "Apply", nullptr));
810         buttonOk->setText(QApplication::translate("CreateBoundaryAn", "OK", nullptr));
811     } // retranslateUi
812 };
813
814 class SMESH_Ui_CreateBoundaryCAO
815 {
816 public:
817     QGridLayout *gridLayout;
818     QGroupBox *GBButtons;
819     QGridLayout *gridLayout1;
820     QPushButton *buttonHelp;
821     QPushButton *buttonCancel;
822     QPushButton *buttonApply;
823     QPushButton *buttonOk;
824     QCheckBox *CBGroupe;
825     QLineEdit *LEFileName;
826     QPushButton *PushFichier;
827     QLabel *XAO;
828     QLineEdit *LEName;
829     QLabel *Name;
830
831     void setupUi(QDialog *CreateBoundaryCAO)
832     {
833         if (CreateBoundaryCAO->objectName().isEmpty())
834             CreateBoundaryCAO->setObjectName(QString::fromUtf8("CreateBoundaryCAO"));
835         CreateBoundaryCAO->resize(566, 195);
836         QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
837         sizePolicy.setHorizontalStretch(0);
838         sizePolicy.setVerticalStretch(0);
839         sizePolicy.setHeightForWidth(CreateBoundaryCAO->sizePolicy().hasHeightForWidth());
840         CreateBoundaryCAO->setSizePolicy(sizePolicy);
841         CreateBoundaryCAO->setAutoFillBackground(true);
842         CreateBoundaryCAO->setSizeGripEnabled(true);
843         gridLayout = new QGridLayout(CreateBoundaryCAO);
844 #ifndef Q_OS_MAC
845         gridLayout->setSpacing(6);
846 #endif
847 #ifndef Q_OS_MAC
848         gridLayout->setContentsMargins(9, 9, 9, 9);
849 #endif
850         gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
851         GBButtons = new QGroupBox(CreateBoundaryCAO);
852         GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
853         gridLayout1 = new QGridLayout(GBButtons);
854 #ifndef Q_OS_MAC
855         gridLayout1->setSpacing(6);
856 #endif
857 #ifndef Q_OS_MAC
858         gridLayout1->setContentsMargins(9, 9, 9, 9);
859 #endif
860         gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
861         buttonHelp = new QPushButton(GBButtons);
862         buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
863
864         gridLayout1->addWidget(buttonHelp, 0, 3, 1, 1);
865
866         buttonCancel = new QPushButton(GBButtons);
867         buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
868
869         gridLayout1->addWidget(buttonCancel, 0, 2, 1, 1);
870
871         buttonApply = new QPushButton(GBButtons);
872         buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
873
874         gridLayout1->addWidget(buttonApply, 0, 1, 1, 1);
875
876         buttonOk = new QPushButton(GBButtons);
877         buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
878
879         gridLayout1->addWidget(buttonOk, 0, 0, 1, 1);
880
881
882         gridLayout->addWidget(GBButtons, 3, 0, 1, 3);
883
884         CBGroupe = new QCheckBox(CreateBoundaryCAO);
885         CBGroupe->setObjectName(QString::fromUtf8("CBGroupe"));
886
887         gridLayout->addWidget(CBGroupe, 2, 0, 1, 3);
888
889         LEFileName = new QLineEdit(CreateBoundaryCAO);
890         LEFileName->setObjectName(QString::fromUtf8("LEFileName"));
891         LEFileName->setMinimumSize(QSize(370, 21));
892
893         gridLayout->addWidget(LEFileName, 1, 2, 1, 1);
894
895         PushFichier = new QPushButton(CreateBoundaryCAO);
896         PushFichier->setObjectName(QString::fromUtf8("PushFichier"));
897
898         gridLayout->addWidget(PushFichier, 1, 1, 1, 1);
899
900         XAO = new QLabel(CreateBoundaryCAO);
901         XAO->setObjectName(QString::fromUtf8("XAO"));
902
903         gridLayout->addWidget(XAO, 1, 0, 1, 1);
904
905         LEName = new QLineEdit(CreateBoundaryCAO);
906         LEName->setObjectName(QString::fromUtf8("LEName"));
907         LEName->setMinimumSize(QSize(382, 21));
908         LEName->setMaxLength(32);
909
910         gridLayout->addWidget(LEName, 0, 1, 1, 2);
911
912         Name = new QLabel(CreateBoundaryCAO);
913         Name->setObjectName(QString::fromUtf8("Name"));
914
915         gridLayout->addWidget(Name, 0, 0, 1, 1);
916
917
918         retranslateUi(CreateBoundaryCAO);
919
920         QMetaObject::connectSlotsByName(CreateBoundaryCAO);
921     } // setupUi
922
923     void retranslateUi(QDialog *CreateBoundaryCAO)
924     {
925         CreateBoundaryCAO->setWindowTitle(QApplication::translate("CreateBoundaryCAO", "Get CAO", nullptr));
926         GBButtons->setTitle(QString());
927         buttonHelp->setText(QApplication::translate("CreateBoundaryCAO", "Help", nullptr));
928         buttonCancel->setText(QApplication::translate("CreateBoundaryCAO", "Cancel", nullptr));
929         buttonApply->setText(QApplication::translate("CreateBoundaryCAO", "Apply", nullptr));
930         buttonOk->setText(QApplication::translate("CreateBoundaryCAO", "OK", nullptr));
931         CBGroupe->setText(QApplication::translate("CreateBoundaryCAO", "Filtering with groups", nullptr));
932         PushFichier->setText(QString());
933         XAO->setText(QApplication::translate("CreateBoundaryCAO", "XAO", nullptr));
934         Name->setText(QApplication::translate("CreateBoundaryCAO", "Name", nullptr));
935     } // retranslateUi
936 };
937
938 class SMESH_Ui_CreateBoundaryDi
939 {
940 public:
941     QGridLayout *gridLayout;
942     QGroupBox *GBButtons;
943     QGridLayout *gridLayout1;
944     QPushButton *buttonHelp;
945     QPushButton *buttonCancel;
946     QPushButton *buttonApply;
947     QPushButton *buttonOk;
948     QCheckBox *CBGroupe;
949     QLineEdit *LEFileName;
950     QPushButton *PushFichier;
951     QLabel *Mesh;
952     QLineEdit *LEName;
953     QLabel *Name;
954
955     void setupUi(QDialog *CreateBoundaryDi)
956     {
957         if (CreateBoundaryDi->objectName().isEmpty())
958             CreateBoundaryDi->setObjectName(QString::fromUtf8("CreateBoundaryDi"));
959         CreateBoundaryDi->resize(566, 169);
960         QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
961         sizePolicy.setHorizontalStretch(0);
962         sizePolicy.setVerticalStretch(0);
963         sizePolicy.setHeightForWidth(CreateBoundaryDi->sizePolicy().hasHeightForWidth());
964         CreateBoundaryDi->setSizePolicy(sizePolicy);
965         CreateBoundaryDi->setAutoFillBackground(true);
966         CreateBoundaryDi->setSizeGripEnabled(true);
967         gridLayout = new QGridLayout(CreateBoundaryDi);
968 #ifndef Q_OS_MAC
969         gridLayout->setSpacing(6);
970 #endif
971 #ifndef Q_OS_MAC
972         gridLayout->setContentsMargins(9, 9, 9, 9);
973 #endif
974         gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
975         GBButtons = new QGroupBox(CreateBoundaryDi);
976         GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
977         gridLayout1 = new QGridLayout(GBButtons);
978 #ifndef Q_OS_MAC
979         gridLayout1->setSpacing(6);
980 #endif
981 #ifndef Q_OS_MAC
982         gridLayout1->setContentsMargins(9, 9, 9, 9);
983 #endif
984         gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
985         buttonHelp = new QPushButton(GBButtons);
986         buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
987
988         gridLayout1->addWidget(buttonHelp, 0, 3, 1, 1);
989
990         buttonCancel = new QPushButton(GBButtons);
991         buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
992
993         gridLayout1->addWidget(buttonCancel, 0, 2, 1, 1);
994
995         buttonApply = new QPushButton(GBButtons);
996         buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
997
998         gridLayout1->addWidget(buttonApply, 0, 1, 1, 1);
999
1000         buttonOk = new QPushButton(GBButtons);
1001         buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
1002
1003         gridLayout1->addWidget(buttonOk, 0, 0, 1, 1);
1004
1005
1006         gridLayout->addWidget(GBButtons, 3, 0, 1, 3);
1007
1008         CBGroupe = new QCheckBox(CreateBoundaryDi);
1009         CBGroupe->setObjectName(QString::fromUtf8("CBGroupe"));
1010
1011         gridLayout->addWidget(CBGroupe, 2, 0, 1, 3);
1012
1013         LEFileName = new QLineEdit(CreateBoundaryDi);
1014         LEFileName->setObjectName(QString::fromUtf8("LEFileName"));
1015         LEFileName->setMinimumSize(QSize(370, 21));
1016
1017         gridLayout->addWidget(LEFileName, 1, 2, 1, 1);
1018
1019         PushFichier = new QPushButton(CreateBoundaryDi);
1020         PushFichier->setObjectName(QString::fromUtf8("PushFichier"));
1021
1022         gridLayout->addWidget(PushFichier, 1, 1, 1, 1);
1023
1024         Mesh = new QLabel(CreateBoundaryDi);
1025         Mesh->setObjectName(QString::fromUtf8("Mesh"));
1026
1027         gridLayout->addWidget(Mesh, 1, 0, 1, 1);
1028
1029         LEName = new QLineEdit(CreateBoundaryDi);
1030         LEName->setObjectName(QString::fromUtf8("LEName"));
1031         LEName->setMinimumSize(QSize(382, 21));
1032         LEName->setMaxLength(32);
1033
1034         gridLayout->addWidget(LEName, 0, 1, 1, 2);
1035
1036         Name = new QLabel(CreateBoundaryDi);
1037         Name->setObjectName(QString::fromUtf8("Name"));
1038
1039         gridLayout->addWidget(Name, 0, 0, 1, 1);
1040
1041
1042         retranslateUi(CreateBoundaryDi);
1043
1044         QMetaObject::connectSlotsByName(CreateBoundaryDi);
1045     } // setupUi
1046
1047     void retranslateUi(QDialog *CreateBoundaryDi)
1048     {
1049         CreateBoundaryDi->setWindowTitle(QApplication::translate("CreateBoundaryDi", "Create a discrete boundary", nullptr));
1050         GBButtons->setTitle(QString());
1051         buttonHelp->setText(QApplication::translate("CreateBoundaryDi", "Help", nullptr));
1052         buttonCancel->setText(QApplication::translate("CreateBoundaryDi", "Cancel", nullptr));
1053         buttonApply->setText(QApplication::translate("CreateBoundaryDi", "Apply", nullptr));
1054         buttonOk->setText(QApplication::translate("CreateBoundaryDi", "OK", nullptr));
1055         CBGroupe->setText(QApplication::translate("CreateBoundaryDi", "Filtering with groups", nullptr));
1056         PushFichier->setText(QString());
1057         Mesh->setText(QApplication::translate("CreateBoundaryDi", "Mesh", nullptr));
1058         Name->setText(QApplication::translate("CreateBoundaryDi", "Name", nullptr));
1059     } // retranslateUi
1060 };
1061
1062 class SMESHGUI_EXPORT SMESH_CreateBoundaryAn : public QDialog, public SMESH_Ui_CreateBoundaryAn
1063 {
1064   Q_OBJECT
1065
1066 public:
1067   SMESH_CreateBoundaryAn (SMESHGUI_HomardAdaptDlg* parent, bool modal,
1068                           SMESHHOMARD::HOMARD_Gen_var myHomardGen0,
1069                           QString caseName);
1070   virtual ~SMESH_CreateBoundaryAn();
1071
1072 protected :
1073   SMESH_CreateBoundaryAn (SMESHGUI_HomardAdaptDlg* parent,
1074                           SMESHHOMARD::HOMARD_Gen_var myHomardGen0,
1075                           QString caseName);
1076
1077   SMESHGUI_HomardAdaptDlg * _parent;
1078
1079   QString _Name;
1080
1081   int _Type;
1082   double _BoundaryAnXcentre, _BoundaryAnYcentre, _BoundaryAnZcentre, _BoundaryAnRayon;
1083   double _BoundaryAnXaxis, _BoundaryAnYaxis, _BoundaryAnZaxis;
1084   double _Xcentre, _Ycentre, _Zcentre, _Rayon ;
1085   double _Xmin, _Xmax, _Xincr, _Ymin, _Ymax, _Yincr, _Zmin, _Zmax, _Zincr, _DMax ;
1086   double _BoundaryAnXcone1, _BoundaryAnYcone1, _BoundaryAnZcone1, _BoundaryAnRayon1;
1087   double _BoundaryAnXcone2, _BoundaryAnYcone2, _BoundaryAnZcone2, _BoundaryAnRayon2;
1088   double _BoundaryAnXaxisCone, _BoundaryAnYaxisCone, _BoundaryAnZaxisCone;
1089   double _BoundaryAnXorigCone, _BoundaryAnYorigCone, _BoundaryAnZorigCone;
1090   double _BoundaryAngle;
1091   double _BoundaryAnToreXcentre, _BoundaryAnToreYcentre, _BoundaryAnToreZcentre;
1092   double _BoundaryAnToreXaxe, _BoundaryAnToreYaxe, _BoundaryAnToreZaxe;
1093   double _BoundaryAnToreRRev, _BoundaryAnToreRPri;
1094
1095   bool Chgt;
1096
1097   SMESHHOMARD::HOMARD_Boundary_var aBoundaryAn;
1098   SMESHHOMARD::HOMARD_Gen_var myHomardGen;
1099
1100   virtual void InitConnect();
1101   virtual void InitValBoundaryAn();
1102   virtual void InitMinMax();
1103   virtual void SetNewName();
1104   virtual bool CreateOrUpdateBoundaryAn();
1105   virtual void convertRayonAngle(int option);
1106
1107 public slots:
1108     virtual void SetCylinder();
1109     virtual void SetSphere();
1110     virtual void SetCone();
1111     virtual void SetConeR();
1112     virtual void SetConeA();
1113     virtual void SetTore();
1114     virtual void PushOnOK();
1115     virtual bool PushOnApply();
1116     virtual void PushOnHelp();
1117 };
1118
1119 class SMESHGUI_EXPORT SMESH_EditBoundaryAn : public SMESH_CreateBoundaryAn
1120 {
1121     Q_OBJECT
1122 public:
1123     SMESH_EditBoundaryAn( SMESHGUI_HomardAdaptDlg* parent, bool modal,
1124                           SMESHHOMARD::HOMARD_Gen_var myHomardGen0,
1125                           QString caseName, QString Name);
1126     virtual ~SMESH_EditBoundaryAn();
1127
1128 protected :
1129     bool CreateOrUpdateBoundaryAn();
1130     void InitValEdit();
1131     void InitValBoundaryAnLimit();
1132     void SetCylinder();
1133     void SetSphere();
1134     void SetConeR();
1135     void SetConeA();
1136     void SetTore();
1137     void InitValBoundaryAnCylindre();
1138     void InitValBoundaryAnSphere();
1139     void InitValBoundaryAnConeR();
1140     void InitValBoundaryAnConeA();
1141     void InitValBoundaryAnTore();
1142 };
1143
1144 class SMESHGUI_EXPORT SMESH_CreateBoundaryCAO : public QDialog, public SMESH_Ui_CreateBoundaryCAO
1145 {
1146     Q_OBJECT
1147
1148 public:
1149     SMESH_CreateBoundaryCAO( SMESHGUI_HomardAdaptDlg* parent, bool modal,
1150                              SMESHHOMARD::HOMARD_Gen_var myHomardGen0,
1151                              QString caseName, QString BoundaryName );
1152     ~SMESH_CreateBoundaryCAO();
1153     virtual void setGroups (QStringList listGroup);
1154
1155 protected :
1156
1157     SMESHGUI_HomardAdaptDlg *_parent;
1158
1159     QString _aName;
1160
1161     SMESHHOMARD::HOMARD_Boundary_var aBoundary;
1162     SMESHHOMARD::HOMARD_Gen_var myHomardGen;
1163
1164     QStringList  _listeGroupesBoundary;
1165
1166     virtual void AssocieLesGroupes();
1167     virtual void InitConnect();
1168     virtual void SetNewName();
1169
1170 public slots:
1171
1172     virtual void SetCAOFile();
1173     virtual void SetFiltrage();
1174     virtual void PushOnOK();
1175     virtual bool PushOnApply();
1176     virtual void PushOnHelp();
1177 };
1178
1179 class SMESHGUI_EXPORT SMESH_EditBoundaryCAO : public SMESH_CreateBoundaryCAO
1180 {
1181     Q_OBJECT
1182 public:
1183     SMESH_EditBoundaryCAO( SMESHGUI_HomardAdaptDlg* parent, bool modal,
1184                            SMESHHOMARD::HOMARD_Gen_var myHomardGen0,
1185                            QString caseName, QString Name );
1186     virtual ~SMESH_EditBoundaryCAO();
1187
1188 protected :
1189     virtual void InitValEdit();
1190     virtual bool PushOnApply();
1191     virtual void SetFiltrage();
1192 };
1193
1194 class SMESHGUI_EXPORT SMESH_CreateBoundaryDi : public QDialog, public SMESH_Ui_CreateBoundaryDi
1195 {
1196     Q_OBJECT
1197
1198 public:
1199     SMESH_CreateBoundaryDi( SMESHGUI_HomardAdaptDlg* parent, bool modal,
1200                             SMESHHOMARD::HOMARD_Gen_var myHomardGen0,
1201                             QString caseName, QString BoundaryName );
1202     ~SMESH_CreateBoundaryDi();
1203     virtual void setGroups (QStringList listGroup);
1204
1205 protected :
1206
1207     SMESHGUI_HomardAdaptDlg *_parent;
1208
1209     QString _aName;
1210
1211     SMESHHOMARD::HOMARD_Boundary_var aBoundary;
1212     SMESHHOMARD::HOMARD_Gen_var myHomardGen;
1213
1214     QStringList  _listeGroupesBoundary;
1215
1216     virtual void AssocieLesGroupes();
1217     virtual void InitConnect();
1218     virtual void SetNewName();
1219
1220 public slots:
1221
1222     virtual void SetMeshFile();
1223     virtual void SetFiltrage();
1224     virtual void PushOnOK();
1225     virtual bool PushOnApply();
1226     virtual void PushOnHelp();
1227 };
1228
1229 class SMESHGUI_EXPORT SMESH_EditBoundaryDi : public SMESH_CreateBoundaryDi
1230 {
1231     Q_OBJECT
1232 public:
1233     SMESH_EditBoundaryDi( SMESHGUI_HomardAdaptDlg* parent, bool modal,
1234                           SMESHHOMARD::HOMARD_Gen_var myHomardGen0,
1235                           QString caseName, QString Name );
1236     virtual ~SMESH_EditBoundaryDi();
1237
1238 protected :
1239     virtual void InitValEdit();
1240     virtual bool PushOnApply();
1241     virtual void SetFiltrage();
1242 };
1243
1244 #endif // MON_CREATEBOUNDARY_H