Salome HOME
33d4a0c7cd5627096fe8807148653d67218d0b41
[modules/homard.git] / src / HOMARD_I / HOMARD_Zone_i.hxx
1 // Copyright (C) 2011-2012  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 _HOMARD_Zone_I_HXX_
21 #define _HOMARD_Zone_I_HXX_
22
23 #include <SALOMEconfig.h>
24 #include CORBA_SERVER_HEADER(HOMARD_Gen)
25 #include CORBA_SERVER_HEADER(HOMARD_Zone)
26
27 #include "SALOME_Component_i.hxx"
28 #include "SALOME_NamingService.hxx"
29 #include "Utils_CorbaException.hxx"
30
31 #include <string>
32
33 class HOMARD_Zone;
34
35 class HOMARD_Zone_i:
36   public virtual Engines_Component_i,
37   public virtual POA_HOMARD::HOMARD_Zone,
38   public virtual PortableServer::ServantBase
39 {
40 public:
41   HOMARD_Zone_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
42   HOMARD_Zone_i();
43
44   virtual ~HOMARD_Zone_i();
45
46   void                   SetName( const char* Name );
47   char*                  GetName();
48   char*                  GetDumpPython();
49
50   void                   SetType( CORBA::Long Type );
51
52   CORBA::Long            GetType();
53
54   HOMARD::double_array*  GetCoords();
55   void                   SetBox( double Xmini, double Xmaxi,
56                                  double Ymini, double Ymaxi,
57                                  double Zmini, double Zmaxi );
58
59   void                   SetSphere( double Xcentre, double Ycentre, double ZCentre,
60                                     double Rayon );
61
62   void                   SetCylinder( double Xcentre, double Ycentre, double ZCentre,
63                                       double Xaxis, double Yaxis, double Zaxis,
64                                       double Rayon, double Haut );
65   void                   SetPipe( double Xcentre, double Ycentre, double ZCentre,
66                                   double Xaxis, double Yaxis, double Zaxis,
67                                   double Rayon, double Haut, double Rayonint );
68
69   HOMARD::double_array*  GetLimit();
70   void                   SetLimit( double Xincr, double Yincr, double Zincr);
71
72   void                   AddHypo( const char *NomHypo );
73   void                   SupprHypo( const char *NomHypo );
74   HOMARD::listeHypo*     GetHypo();
75
76   std::string            Dump() const;
77   bool                   Restore( const std::string& stream );
78
79 private:
80   ::HOMARD_Zone*         myHomardZone;
81
82   CORBA::ORB_ptr         _orb;
83   HOMARD::HOMARD_Gen_var _gen_i;
84 };
85
86 #endif