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