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