Salome HOME
version 5_1_4 HOMARD_SRC
[modules/homard.git] / src / HOMARDGUI / MonCreateZone.h
1 #ifndef MON_CREATEZONE_H
2 #define MON_CREATEZONE_H
3
4
5 #include <SALOMEconfig.h>
6 #include <SalomeApp_Module.h>
7
8 #include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
9 #include CORBA_CLIENT_HEADER(HOMARD_Gen)
10
11 #include <CreateZone.h>
12 #include <QDialog>
13
14 class MonCreateHypothesis;
15 class MonCreateZone : public QDialog, public Ui_CreateZone
16 {
17     Q_OBJECT
18
19 public:
20     MonCreateZone( MonCreateHypothesis* parent, bool modal,
21                    HOMARD::HOMARD_Gen_var myHomardGen,
22                    QString caseName);
23     virtual ~MonCreateZone();
24
25 protected :
26     MonCreateZone( MonCreateHypothesis* parent,
27                    HOMARD::HOMARD_Gen_var myHomardGen,
28                    QString caseName);
29
30     MonCreateHypothesis * _parent;
31
32     QString _aZoneName;
33     QString _aCaseName;
34
35     int _ZoneType;
36     double _Xcentre, _Ycentre, _Zcentre, _Rayon ;
37     double _ZoneXcentre, _ZoneYcentre, _ZoneZcentre, _ZoneRayon;
38     double _Xmin, _Xmax, _Xincr, _Ymin, _Ymax, _Yincr, _Zmin, _Zmax, _Zincr, _DMax ;
39     double _ZoneXmin, _ZoneXmax,  _ZoneYmin, _ZoneYmax,  _ZoneZmin, _ZoneZmax;
40
41
42     bool Chgt;
43
44     HOMARD::HOMARD_Zone_var aZone ;
45     HOMARD::HOMARD_Gen_var _myHomardGen;
46
47     virtual void InitConnect();
48     virtual void InitValZone();
49     virtual void InitMinMax();
50     virtual void SetNewZoneName();
51     virtual bool CreateOrUpdateZone();
52
53 public slots:
54     virtual void SetBox();
55     virtual void SetSphere();
56     virtual void PushOnOK();
57     virtual bool PushOnApply();
58     virtual void PushOnHelp();
59
60 };
61
62 #endif // MON_CREATEZONE_H