1 // Copyright (C) 2011-2021 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef MON_CREATEBOUNDARY_H
21 #define MON_CREATEBOUNDARY_H
23 #include "SMESH_SMESHGUI.hxx"
25 #include <SALOMEconfig.h>
26 #include <SalomeApp_Module.h>
28 //#include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
29 #include CORBA_CLIENT_HEADER(SMESH_Homard)
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>
46 class SMESHGUI_HomardAdaptDlg;
50 class SMESH_Ui_CreateBoundaryAn
53 QGridLayout *gridLayout_5;
56 QGroupBox *TypeBoundary;
57 QGridLayout *gridLayout;
58 QRadioButton *RBCylindre;
59 QRadioButton *RBSphere;
62 QGroupBox *gBCylindre;
63 QGridLayout *gridLayout1;
64 QDoubleSpinBox *SpinBox_Xcent;
66 QDoubleSpinBox *SpinBox_Radius;
67 QDoubleSpinBox *SpinBox_Zcent;
71 QDoubleSpinBox *SpinBox_Ycent;
75 QDoubleSpinBox *SpinBox_Zaxis;
76 QDoubleSpinBox *SpinBox_Yaxis;
77 QDoubleSpinBox *SpinBox_Xaxis;
79 QGridLayout *gridLayout2;
80 QDoubleSpinBox *SpinBox_Rayon;
81 QDoubleSpinBox *SpinBox_Zcentre;
85 QDoubleSpinBox *SpinBox_Ycentre;
86 QDoubleSpinBox *SpinBox_Xcentre;
89 QGridLayout *gridLayout_3;
91 QGridLayout *gridLayout_2;
92 QRadioButton *RB_Def_radius;
93 QRadioButton *RB_Def_angle;
95 QDoubleSpinBox *SpinBox_Cone_X1;
97 QDoubleSpinBox *SpinBox_Cone_X2;
99 QDoubleSpinBox *SpinBox_Cone_Y1;
101 QDoubleSpinBox *SpinBox_Cone_Y2;
103 QDoubleSpinBox *SpinBox_Cone_Z1;
105 QDoubleSpinBox *SpinBox_Cone_Z2;
107 QDoubleSpinBox *SpinBox_Cone_V1;
109 QDoubleSpinBox *SpinBox_Cone_V2;
111 QGridLayout *gridLayout_4;
113 QDoubleSpinBox *SpinBoxToreXcent;
115 QDoubleSpinBox *SpinBoxToreXaxe;
117 QDoubleSpinBox *SpinBoxToreYcent;
119 QDoubleSpinBox *SpinBoxToreYaxe;
121 QDoubleSpinBox *SpinBoxToreZcent;
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;
135 void setupUi(QDialog *CreateBoundaryAn)
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"));
147 gridLayout_5->addWidget(Name, 0, 0, 1, 1);
149 LEName = new QLineEdit(CreateBoundaryAn);
150 LEName->setObjectName(QString::fromUtf8("LEName"));
151 LEName->setMaxLength(32);
153 gridLayout_5->addWidget(LEName, 0, 1, 1, 1);
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"));
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);
173 gridLayout->addWidget(RBCylindre, 0, 0, 1, 1);
175 RBSphere = new QRadioButton(TypeBoundary);
176 RBSphere->setObjectName(QString::fromUtf8("RBSphere"));
178 icon1.addFile(QString::fromUtf8("../../resources/zone_spherepoint.png"), QSize(), QIcon::Normal, QIcon::Off);
179 RBSphere->setIcon(icon1);
181 gridLayout->addWidget(RBSphere, 0, 1, 1, 1);
183 RBCone = new QRadioButton(TypeBoundary);
184 RBCone->setObjectName(QString::fromUtf8("RBCone"));
186 icon2.addFile(QString::fromUtf8("../../resources/cone.png"), QSize(), QIcon::Normal, QIcon::Off);
187 RBCone->setIcon(icon2);
189 gridLayout->addWidget(RBCone, 0, 2, 1, 1);
191 RBTore = new QRadioButton(TypeBoundary);
192 RBTore->setObjectName(QString::fromUtf8("RBTore"));
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);
199 gridLayout->addWidget(RBTore, 0, 3, 1, 1);
202 gridLayout_5->addWidget(TypeBoundary, 1, 0, 1, 2);
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);
210 gridLayout1->setSpacing(6);
213 gridLayout1->setContentsMargins(9, 9, 9, 9);
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);
223 gridLayout1->addWidget(SpinBox_Xcent, 0, 1, 1, 1);
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);
231 gridLayout1->addWidget(TLXcent, 0, 0, 1, 1);
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);
238 gridLayout1->addWidget(SpinBox_Radius, 3, 1, 1, 2);
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);
247 gridLayout1->addWidget(SpinBox_Zcent, 2, 1, 1, 1);
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);
255 gridLayout1->addWidget(TLradius, 3, 0, 1, 1);
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);
263 gridLayout1->addWidget(TLZcent, 2, 0, 1, 1);
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);
271 gridLayout1->addWidget(TLYcent, 1, 0, 1, 1);
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);
280 gridLayout1->addWidget(SpinBox_Ycent, 1, 1, 1, 1);
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);
288 gridLayout1->addWidget(TLXaxis, 0, 2, 1, 1);
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);
296 gridLayout1->addWidget(TLYaxis, 1, 2, 1, 1);
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);
304 gridLayout1->addWidget(TLZaxis, 2, 2, 1, 1);
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);
313 gridLayout1->addWidget(SpinBox_Zaxis, 2, 3, 1, 1);
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);
322 gridLayout1->addWidget(SpinBox_Yaxis, 1, 3, 1, 1);
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);
331 gridLayout1->addWidget(SpinBox_Xaxis, 0, 3, 1, 1);
334 gridLayout_5->addWidget(gBCylindre, 2, 0, 1, 2);
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);
342 gridLayout2->setSpacing(6);
345 gridLayout2->setContentsMargins(9, 9, 9, 9);
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);
355 gridLayout2->addWidget(SpinBox_Rayon, 1, 3, 1, 1);
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);
364 gridLayout2->addWidget(SpinBox_Zcentre, 2, 1, 1, 1);
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);
372 gridLayout2->addWidget(TLRayon, 1, 2, 1, 1);
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);
380 gridLayout2->addWidget(TLZcentre, 2, 0, 1, 1);
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);
388 gridLayout2->addWidget(TLYcentre, 1, 0, 1, 1);
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);
397 gridLayout2->addWidget(SpinBox_Ycentre, 1, 1, 1, 1);
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);
406 gridLayout2->addWidget(SpinBox_Xcentre, 0, 1, 1, 1);
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);
414 gridLayout2->addWidget(TLXcentre, 0, 0, 1, 1);
417 gridLayout_5->addWidget(gBSphere, 3, 0, 1, 2);
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"));
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);
436 gridLayout_2->addWidget(RB_Def_radius, 0, 0, 1, 1);
438 RB_Def_angle = new QRadioButton(groupBox);
439 RB_Def_angle->setObjectName(QString::fromUtf8("RB_Def_angle"));
441 icon5.addFile(QString::fromUtf8("../../resources/conepointvector.png"), QSize(), QIcon::Normal, QIcon::Off);
442 RB_Def_angle->setIcon(icon5);
444 gridLayout_2->addWidget(RB_Def_angle, 0, 1, 1, 1);
447 gridLayout_3->addWidget(groupBox, 0, 0, 1, 2);
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);
455 gridLayout_3->addWidget(TLCone_X1, 1, 0, 1, 1);
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);
464 gridLayout_3->addWidget(SpinBox_Cone_X1, 1, 1, 1, 1);
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);
472 gridLayout_3->addWidget(TLCone_X2, 1, 2, 1, 1);
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);
481 gridLayout_3->addWidget(SpinBox_Cone_X2, 1, 3, 1, 1);
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);
489 gridLayout_3->addWidget(TLCone_Y1, 2, 0, 1, 1);
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);
498 gridLayout_3->addWidget(SpinBox_Cone_Y1, 2, 1, 1, 1);
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);
506 gridLayout_3->addWidget(TLCone_Y2, 2, 2, 1, 1);
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);
515 gridLayout_3->addWidget(SpinBox_Cone_Y2, 2, 3, 1, 1);
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);
523 gridLayout_3->addWidget(TLCone_Z1, 3, 0, 1, 1);
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);
532 gridLayout_3->addWidget(SpinBox_Cone_Z1, 3, 1, 1, 1);
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);
540 gridLayout_3->addWidget(TLCone_Z2, 3, 2, 1, 1);
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);
549 gridLayout_3->addWidget(SpinBox_Cone_Z2, 3, 3, 1, 1);
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);
557 gridLayout_3->addWidget(TLCone_V1, 4, 0, 1, 1);
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);
564 gridLayout_3->addWidget(SpinBox_Cone_V1, 4, 1, 1, 1);
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);
572 gridLayout_3->addWidget(TLCone_V2, 4, 2, 1, 1);
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);
579 gridLayout_3->addWidget(SpinBox_Cone_V2, 4, 3, 1, 1);
582 gridLayout_5->addWidget(gBCone, 4, 0, 1, 2);
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);
596 gridLayout_4->addWidget(TLToreXcent, 0, 0, 1, 1);
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);
605 gridLayout_4->addWidget(SpinBoxToreXcent, 0, 1, 1, 1);
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);
613 gridLayout_4->addWidget(TLToreXaxe, 0, 2, 1, 1);
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);
622 gridLayout_4->addWidget(SpinBoxToreXaxe, 0, 3, 1, 1);
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);
630 gridLayout_4->addWidget(TLToreYcent, 1, 0, 1, 1);
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);
639 gridLayout_4->addWidget(SpinBoxToreYcent, 1, 1, 1, 1);
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);
647 gridLayout_4->addWidget(TLToreYaxe, 1, 2, 1, 1);
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);
656 gridLayout_4->addWidget(SpinBoxToreYaxe, 1, 3, 1, 1);
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);
664 gridLayout_4->addWidget(TLToreZcent, 2, 0, 1, 1);
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);
673 gridLayout_4->addWidget(SpinBoxToreZcent, 2, 1, 1, 1);
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);
681 gridLayout_4->addWidget(TLToreZaxe, 2, 2, 1, 1);
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);
690 gridLayout_4->addWidget(SpinBoxToreZaxe, 2, 3, 1, 1);
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);
698 gridLayout_4->addWidget(TLToreRayRev, 3, 0, 1, 1);
700 SpinBoxToreRRev = new QDoubleSpinBox(gBTore);
701 SpinBoxToreRRev->setObjectName(QString::fromUtf8("SpinBoxToreRRev"));
702 SpinBoxToreRRev->setDecimals(5);
703 SpinBoxToreRRev->setMaximum(1000000000.000000000000000);
705 gridLayout_4->addWidget(SpinBoxToreRRev, 3, 1, 1, 1);
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);
713 gridLayout_4->addWidget(TLToreRayPri, 3, 2, 1, 1);
715 SpinBoxToreRPri = new QDoubleSpinBox(gBTore);
716 SpinBoxToreRPri->setObjectName(QString::fromUtf8("SpinBoxToreRPri"));
717 SpinBoxToreRPri->setDecimals(5);
718 SpinBoxToreRPri->setMaximum(1000000000.000000000000000);
720 gridLayout_4->addWidget(SpinBoxToreRPri, 3, 3, 1, 1);
723 gridLayout_5->addWidget(gBTore, 5, 0, 1, 2);
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);
731 gridLayout3->setSpacing(6);
734 gridLayout3->setContentsMargins(9, 9, 9, 9);
736 gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
737 buttonHelp = new QPushButton(GBButtons);
738 buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
740 gridLayout3->addWidget(buttonHelp, 0, 3, 1, 1);
742 buttonCancel = new QPushButton(GBButtons);
743 buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
745 gridLayout3->addWidget(buttonCancel, 0, 2, 1, 1);
747 buttonApply = new QPushButton(GBButtons);
748 buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
750 gridLayout3->addWidget(buttonApply, 0, 1, 1, 1);
752 buttonOk = new QPushButton(GBButtons);
753 buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
755 gridLayout3->addWidget(buttonOk, 0, 0, 1, 1);
758 gridLayout_5->addWidget(GBButtons, 6, 0, 1, 2);
761 retranslateUi(CreateBoundaryAn);
763 QMetaObject::connectSlotsByName(CreateBoundaryAn);
766 void retranslateUi(QDialog *CreateBoundaryAn)
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));
819 class CreateBoundaryAn: public SMESH_Ui_CreateBoundaryAn {};
822 class SMESH_Ui_CreateBoundaryCAO
825 QGridLayout *gridLayout;
826 QGroupBox *GBButtons;
827 QGridLayout *gridLayout1;
828 QPushButton *buttonHelp;
829 QPushButton *buttonCancel;
830 QPushButton *buttonApply;
831 QPushButton *buttonOk;
833 QLineEdit *LEFileName;
834 QPushButton *PushFichier;
839 void setupUi(QDialog *CreateBoundaryCAO)
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);
853 gridLayout->setSpacing(6);
856 gridLayout->setContentsMargins(9, 9, 9, 9);
858 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
859 GBButtons = new QGroupBox(CreateBoundaryCAO);
860 GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
861 gridLayout1 = new QGridLayout(GBButtons);
863 gridLayout1->setSpacing(6);
866 gridLayout1->setContentsMargins(9, 9, 9, 9);
868 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
869 buttonHelp = new QPushButton(GBButtons);
870 buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
872 gridLayout1->addWidget(buttonHelp, 0, 3, 1, 1);
874 buttonCancel = new QPushButton(GBButtons);
875 buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
877 gridLayout1->addWidget(buttonCancel, 0, 2, 1, 1);
879 buttonApply = new QPushButton(GBButtons);
880 buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
882 gridLayout1->addWidget(buttonApply, 0, 1, 1, 1);
884 buttonOk = new QPushButton(GBButtons);
885 buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
887 gridLayout1->addWidget(buttonOk, 0, 0, 1, 1);
890 gridLayout->addWidget(GBButtons, 3, 0, 1, 3);
892 CBGroupe = new QCheckBox(CreateBoundaryCAO);
893 CBGroupe->setObjectName(QString::fromUtf8("CBGroupe"));
895 gridLayout->addWidget(CBGroupe, 2, 0, 1, 3);
897 LEFileName = new QLineEdit(CreateBoundaryCAO);
898 LEFileName->setObjectName(QString::fromUtf8("LEFileName"));
899 LEFileName->setMinimumSize(QSize(370, 21));
901 gridLayout->addWidget(LEFileName, 1, 2, 1, 1);
903 PushFichier = new QPushButton(CreateBoundaryCAO);
904 PushFichier->setObjectName(QString::fromUtf8("PushFichier"));
906 gridLayout->addWidget(PushFichier, 1, 1, 1, 1);
908 XAO = new QLabel(CreateBoundaryCAO);
909 XAO->setObjectName(QString::fromUtf8("XAO"));
911 gridLayout->addWidget(XAO, 1, 0, 1, 1);
913 LEName = new QLineEdit(CreateBoundaryCAO);
914 LEName->setObjectName(QString::fromUtf8("LEName"));
915 LEName->setMinimumSize(QSize(382, 21));
916 LEName->setMaxLength(32);
918 gridLayout->addWidget(LEName, 0, 1, 1, 2);
920 Name = new QLabel(CreateBoundaryCAO);
921 Name->setObjectName(QString::fromUtf8("Name"));
923 gridLayout->addWidget(Name, 0, 0, 1, 1);
926 retranslateUi(CreateBoundaryCAO);
928 QMetaObject::connectSlotsByName(CreateBoundaryCAO);
931 void retranslateUi(QDialog *CreateBoundaryCAO)
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));
948 class CreateBoundaryCAO: public SMESH_Ui_CreateBoundaryCAO {};
951 class SMESH_Ui_CreateBoundaryDi
954 QGridLayout *gridLayout;
955 QGroupBox *GBButtons;
956 QGridLayout *gridLayout1;
957 QPushButton *buttonHelp;
958 QPushButton *buttonCancel;
959 QPushButton *buttonApply;
960 QPushButton *buttonOk;
962 QLineEdit *LEFileName;
963 QPushButton *PushFichier;
968 void setupUi(QDialog *CreateBoundaryDi)
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);
982 gridLayout->setSpacing(6);
985 gridLayout->setContentsMargins(9, 9, 9, 9);
987 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
988 GBButtons = new QGroupBox(CreateBoundaryDi);
989 GBButtons->setObjectName(QString::fromUtf8("GBButtons"));
990 gridLayout1 = new QGridLayout(GBButtons);
992 gridLayout1->setSpacing(6);
995 gridLayout1->setContentsMargins(9, 9, 9, 9);
997 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
998 buttonHelp = new QPushButton(GBButtons);
999 buttonHelp->setObjectName(QString::fromUtf8("buttonHelp"));
1001 gridLayout1->addWidget(buttonHelp, 0, 3, 1, 1);
1003 buttonCancel = new QPushButton(GBButtons);
1004 buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
1006 gridLayout1->addWidget(buttonCancel, 0, 2, 1, 1);
1008 buttonApply = new QPushButton(GBButtons);
1009 buttonApply->setObjectName(QString::fromUtf8("buttonApply"));
1011 gridLayout1->addWidget(buttonApply, 0, 1, 1, 1);
1013 buttonOk = new QPushButton(GBButtons);
1014 buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
1016 gridLayout1->addWidget(buttonOk, 0, 0, 1, 1);
1019 gridLayout->addWidget(GBButtons, 3, 0, 1, 3);
1021 CBGroupe = new QCheckBox(CreateBoundaryDi);
1022 CBGroupe->setObjectName(QString::fromUtf8("CBGroupe"));
1024 gridLayout->addWidget(CBGroupe, 2, 0, 1, 3);
1026 LEFileName = new QLineEdit(CreateBoundaryDi);
1027 LEFileName->setObjectName(QString::fromUtf8("LEFileName"));
1028 LEFileName->setMinimumSize(QSize(370, 21));
1030 gridLayout->addWidget(LEFileName, 1, 2, 1, 1);
1032 PushFichier = new QPushButton(CreateBoundaryDi);
1033 PushFichier->setObjectName(QString::fromUtf8("PushFichier"));
1035 gridLayout->addWidget(PushFichier, 1, 1, 1, 1);
1037 Mesh = new QLabel(CreateBoundaryDi);
1038 Mesh->setObjectName(QString::fromUtf8("Mesh"));
1040 gridLayout->addWidget(Mesh, 1, 0, 1, 1);
1042 LEName = new QLineEdit(CreateBoundaryDi);
1043 LEName->setObjectName(QString::fromUtf8("LEName"));
1044 LEName->setMinimumSize(QSize(382, 21));
1045 LEName->setMaxLength(32);
1047 gridLayout->addWidget(LEName, 0, 1, 1, 2);
1049 Name = new QLabel(CreateBoundaryDi);
1050 Name->setObjectName(QString::fromUtf8("Name"));
1052 gridLayout->addWidget(Name, 0, 0, 1, 1);
1055 retranslateUi(CreateBoundaryDi);
1057 QMetaObject::connectSlotsByName(CreateBoundaryDi);
1060 void retranslateUi(QDialog *CreateBoundaryDi)
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));
1077 class CreateBoundaryDi: public SMESH_Ui_CreateBoundaryDi {};
1082 class SMESHGUI_EXPORT SMESH_CreateBoundaryAn : public QDialog, public SMESH_Ui_CreateBoundaryAn
1087 SMESH_CreateBoundaryAn( SMESHGUI_HomardAdaptDlg* parent, bool modal,
1088 SMESHHOMARD::HOMARD_Gen_var myHomardGen,
1090 virtual ~SMESH_CreateBoundaryAn();
1093 SMESH_CreateBoundaryAn( SMESHGUI_HomardAdaptDlg* parent,
1094 SMESHHOMARD::HOMARD_Gen_var myHomardGen,
1097 SMESHGUI_HomardAdaptDlg * _parent;
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;
1118 SMESHHOMARD::HOMARD_Boundary_var aBoundaryAn ;
1119 SMESHHOMARD::HOMARD_Gen_var myHomardGen;
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);
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();
1141 class SMESHGUI_EXPORT SMESH_EditBoundaryAn : public SMESH_CreateBoundaryAn
1145 SMESH_EditBoundaryAn( SMESHGUI_HomardAdaptDlg* parent, bool modal,
1146 SMESHHOMARD::HOMARD_Gen_var myHomardGen,
1147 QString caseName, QString Name);
1148 virtual ~SMESH_EditBoundaryAn();
1151 bool CreateOrUpdateBoundaryAn();
1153 void InitValBoundaryAnLimit();
1159 void InitValBoundaryAnCylindre();
1160 void InitValBoundaryAnSphere();
1161 void InitValBoundaryAnConeR();
1162 void InitValBoundaryAnConeA();
1163 void InitValBoundaryAnTore();
1169 class SMESHGUI_EXPORT SMESH_CreateBoundaryCAO : public QDialog, public SMESH_Ui_CreateBoundaryCAO
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);
1182 SMESHGUI_HomardAdaptDlg *_parent;
1188 SMESHHOMARD::HOMARD_Boundary_var aBoundary;
1189 SMESHHOMARD::HOMARD_Gen_var myHomardGen;
1191 QStringList _listeGroupesBoundary;
1193 virtual void AssocieLesGroupes();
1194 virtual void InitConnect();
1195 virtual void SetNewName();
1199 virtual void SetCAOFile();
1200 virtual void SetFiltrage();
1201 virtual void PushOnOK();
1202 virtual bool PushOnApply();
1203 virtual void PushOnHelp();
1206 class SMESHGUI_EXPORT SMESH_EditBoundaryCAO : public SMESH_CreateBoundaryCAO
1210 SMESH_EditBoundaryCAO( SMESHGUI_HomardAdaptDlg* parent, bool modal,
1211 SMESHHOMARD::HOMARD_Gen_var myHomardGen,
1212 QString caseName, QString Name );
1213 virtual ~SMESH_EditBoundaryCAO();
1216 virtual void InitValEdit();
1217 virtual bool PushOnApply();
1218 virtual void SetFiltrage();
1224 class SMESHGUI_EXPORT SMESH_CreateBoundaryDi : public QDialog, public SMESH_Ui_CreateBoundaryDi
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);
1237 SMESHGUI_HomardAdaptDlg *_parent;
1243 SMESHHOMARD::HOMARD_Boundary_var aBoundary;
1244 SMESHHOMARD::HOMARD_Gen_var myHomardGen;
1246 QStringList _listeGroupesBoundary;
1248 virtual void AssocieLesGroupes();
1249 virtual void InitConnect();
1250 virtual void SetNewName();
1254 virtual void SetMeshFile();
1255 virtual void SetFiltrage();
1256 virtual void PushOnOK();
1257 virtual bool PushOnApply();
1258 virtual void PushOnHelp();
1261 class SMESHGUI_EXPORT SMESH_EditBoundaryDi : public SMESH_CreateBoundaryDi
1265 SMESH_EditBoundaryDi( SMESHGUI_HomardAdaptDlg* parent, bool modal,
1266 SMESHHOMARD::HOMARD_Gen_var myHomardGen,
1267 QString caseName, QString Name );
1268 virtual ~SMESH_EditBoundaryDi();
1271 virtual void InitValEdit();
1272 virtual bool PushOnApply();
1273 virtual void SetFiltrage();
1279 #endif // MON_CREATEBOUNDARY_H