Salome HOME
Merge from V6_main 01/04/2013
[modules/homard.git] / src / HOMARDGUI / MonCreateBoundaryAn.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_CREATEBOUNDARYAN_H
21 #define MON_CREATEBOUNDARYAN_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 #include CORBA_CLIENT_HEADER(HOMARD_Boundary)
30
31 #include <CreateBoundaryAn.h>
32 #include <QDialog>
33
34 class MonCreateCase;
35 class MonCreateBoundaryAn : public QDialog, public Ui_CreateBoundaryAn
36 {
37     Q_OBJECT
38
39 public:
40     MonCreateBoundaryAn( MonCreateCase* parent, bool modal,
41                    HOMARD::HOMARD_Gen_var myHomardGen,
42                    QString caseName);
43     virtual ~MonCreateBoundaryAn();
44
45 protected :
46     MonCreateBoundaryAn( MonCreateCase* parent,
47                    HOMARD::HOMARD_Gen_var myHomardGen,
48                    QString caseName);
49
50     MonCreateCase * _parent;
51
52     QString _aName;
53     QString _aCaseName;
54
55     double _Xmin, _Xmax, _Xincr, _Ymin, _Ymax, _Yincr, _Zmin, _Zmax, _Zincr, _DMax ;
56     int _Type;
57     double _BoundaryAnXcentre, _BoundaryAnYcentre, _BoundaryAnZcentre, _BoundaryAnRayon;
58     double _BoundaryAnXaxis, _BoundaryAnYaxis, _BoundaryAnZaxis;
59     double _Xcentre, _Ycentre, _Zcentre, _Rayon ;
60     double _BoundaryAnXcone1, _BoundaryAnYcone1, _BoundaryAnZcone1, _BoundaryAnRayon1;
61     double _BoundaryAnXcone2, _BoundaryAnYcone2, _BoundaryAnZcone2, _BoundaryAnRayon2;
62     double _BoundaryAnXaxisCone, _BoundaryAnYaxisCone, _BoundaryAnZaxisCone;
63     double _BoundaryAnXorigCone, _BoundaryAnYorigCone, _BoundaryAnZorigCone;
64     double _BoundaryAngle;
65
66
67     bool Chgt;
68
69     HOMARD::HOMARD_Boundary_var aBoundaryAn ;
70     HOMARD::HOMARD_Gen_var _myHomardGen;
71
72     virtual void InitConnect();
73     virtual void InitValBoundaryAn();
74     virtual void InitMinMax();
75     virtual void SetNewBoundaryAnName();
76     virtual void convertRayonAngle(int option);
77     virtual bool CreateOrUpdateBoundaryAn();
78
79 public slots:
80     virtual void SetCylinder();
81     virtual void SetSphere();
82     virtual void SetCone();
83     virtual void SetConeR();
84     virtual void SetConeA();
85     virtual void PushOnOK();
86     virtual bool PushOnApply();
87     virtual void PushOnHelp();
88
89 };
90
91 #endif // MON_CREATEBOUNDARYAN_H