Salome HOME
Merge branch 'master' into gni/adaptation
[modules/smesh.git] / src / ADAPTGUI / MonCreateZone.h
1 // Copyright (C) 2011-2020  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_CREATEZONE_H
21 #define MON_CREATEZONE_H
22
23 #include "HOMARDGUI_Exports.hxx"
24
25 #include <SALOMEconfig.h>
26 #include <SalomeApp_Module.h>
27
28 #include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
29 #include CORBA_CLIENT_HEADER(ADAPT_Gen)
30
31 #include "ui_CreateZone.h"
32 #include <QDialog>
33
34 class MonCreateHypothesis;
35 class HOMARD_EXPORT MonCreateZone : public QDialog, public Ui_CreateZone
36 {
37     Q_OBJECT
38
39 public:
40     MonCreateZone( MonCreateHypothesis* parent, bool modal,
41                    ADAPT::ADAPT_Gen_var myAdaptGen,
42                    QString caseName);
43     virtual ~MonCreateZone();
44
45 protected :
46     MonCreateZone( MonCreateHypothesis* parent,
47                    ADAPT::ADAPT_Gen_var myAdaptGen,
48                    QString caseName);
49
50     MonCreateHypothesis * _parent;
51
52     QString _Name;
53     QString _aCaseName;
54
55     int _Orient;
56     int _Type;
57     double _Xcentre, _Ycentre, _Zcentre, _Rayon ;
58     double _Xmin, _Xmax, _Xincr, _Ymin, _Ymax, _Yincr, _Zmin, _Zmax, _Zincr ;
59     double _ZoneXcentre, _ZoneYcentre, _ZoneZcentre, _ZoneRayon ;
60     double _ZoneXmin, _ZoneXmax,  _ZoneYmin, _ZoneYmax,  _ZoneZmin, _ZoneZmax ;
61     double _Xaxis, _Yaxis, _Zaxis, _RayonInt, _Haut ;
62     double _ZoneXaxis, _ZoneYaxis, _ZoneZaxis, _ZoneRayonInt, _ZoneHaut ;
63     double _DMax ;
64
65     bool Chgt;
66
67     ADAPT::HOMARD_Zone_var aZone ;
68     ADAPT::ADAPT_Gen_var myAdaptGen;
69
70     virtual void InitConnect();
71     virtual void InitValZone();
72     virtual void InitMinMax();
73     virtual void SetNewName();
74     virtual bool CreateOrUpdateZone();
75
76 public slots:
77     virtual void SetBox();
78     virtual void SetSphere();
79     virtual void SetCylinder();
80     virtual void SetPipe();
81     virtual void PushOnOK();
82     virtual bool PushOnApply();
83     virtual void PushOnHelp();
84
85 };
86
87 #endif // MON_CREATEZONE_H