1 // Copyright (C) 2011-2020 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef MON_CREATEZONE_H
21 #define MON_CREATEZONE_H
23 #include "HOMARDGUI_Exports.hxx"
25 #include <SALOMEconfig.h>
26 #include <SalomeApp_Module.h>
28 #include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
29 #include CORBA_CLIENT_HEADER(HOMARD_Gen)
31 #include "ui_CreateZone.h"
34 class MonCreateHypothesis;
35 class HOMARD_EXPORT MonCreateZone : public QDialog, public Ui_CreateZone
40 MonCreateZone( MonCreateHypothesis* parent, bool modal,
41 HOMARD::HOMARD_Gen_var myHomardGen,
43 virtual ~MonCreateZone();
46 MonCreateZone( MonCreateHypothesis* parent,
47 HOMARD::HOMARD_Gen_var myHomardGen,
50 MonCreateHypothesis * _parent;
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 ;
67 HOMARD::HOMARD_Zone_var aZone ;
68 HOMARD::HOMARD_Gen_var myHomardGen;
70 virtual void InitConnect();
71 virtual void InitValZone();
72 virtual void InitMinMax();
73 virtual void SetNewName();
74 virtual bool CreateOrUpdateZone();
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();
87 #endif // MON_CREATEZONE_H