Salome HOME
Nouvelles icones
[modules/homard.git] / src / HOMARDGUI / MonCreateZone.h
1 // Copyright (C) 2011-2013  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.
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
24 #include <SALOMEconfig.h>
25 #include <SalomeApp_Module.h>
26
27 #include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
28 #include CORBA_CLIENT_HEADER(HOMARD_Gen)
29
30 #include <CreateZone.h>
31 #include <QDialog>
32
33 class MonCreateHypothesis;
34 class MonCreateZone : public QDialog, public Ui_CreateZone
35 {
36     Q_OBJECT
37
38 public:
39     MonCreateZone( MonCreateHypothesis* parent, bool modal,
40                    HOMARD::HOMARD_Gen_var myHomardGen,
41                    QString caseName);
42     virtual ~MonCreateZone();
43
44 protected :
45     MonCreateZone( MonCreateHypothesis* parent,
46                    HOMARD::HOMARD_Gen_var myHomardGen,
47                    QString caseName);
48
49     MonCreateHypothesis * _parent;
50
51     QString _Name;
52     QString _aCaseName;
53
54     int _Orient;
55     int _Type;
56     double _Xcentre, _Ycentre, _Zcentre, _Rayon ;
57     double _ZoneXcentre, _ZoneYcentre, _ZoneZcentre, _ZoneRayon ;
58     double _Xmin, _Xmax, _Xincr, _Ymin, _Ymax, _Yincr, _Zmin, _Zmax, _Zincr ;
59     double _ZoneXmin, _ZoneXmax,  _ZoneYmin, _ZoneYmax,  _ZoneZmin, _ZoneZmax ;
60     double _Xaxis, _Yaxis, _Zaxis, _RayonInt, _Haut ;
61     double _ZoneXaxis, _ZoneYaxis, _ZoneZaxis, _ZoneRayonInt, _ZoneHaut ;
62     double _DMax ;
63
64
65     bool Chgt;
66
67     HOMARD::HOMARD_Zone_var aZone ;
68     HOMARD::HOMARD_Gen_var myHomardGen;
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