1 // Copyright (C) 2011-2013 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.
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 // L'ordre de description des fonctions est le meme dans tous les fichiers
21 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
22 // 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
23 // 2. Les caracteristiques
24 // 3. Le lien avec les autres structures
26 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
29 #ifndef _HOMARD_Zone_I_HXX_
30 #define _HOMARD_Zone_I_HXX_
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(HOMARD_Gen)
34 #include CORBA_SERVER_HEADER(HOMARD_Zone)
36 #include "SALOME_Component_i.hxx"
37 #include "SALOME_NamingService.hxx"
38 #include "Utils_CorbaException.hxx"
45 public virtual Engines_Component_i,
46 public virtual POA_HOMARD::HOMARD_Zone,
47 public virtual PortableServer::ServantBase
50 HOMARD_Zone_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
53 virtual ~HOMARD_Zone_i();
56 void SetName( const char* Name );
61 char* GetDumpPython();
63 std::string Dump() const;
64 bool Restore( const std::string& stream );
67 void SetType( CORBA::Long Type );
68 CORBA::Long GetType();
70 void SetBox( double Xmini, double Xmaxi,
71 double Ymini, double Ymaxi,
72 double Zmini, double Zmaxi );
74 void SetCylinder( double Xcentre, double Ycentre, double ZCentre,
75 double Xaxis, double Yaxis, double Zaxis,
76 double Rayon, double Haut );
78 void SetPipe( double Xcentre, double Ycentre, double ZCentre,
79 double Xaxis, double Yaxis, double Zaxis,
80 double Rayon, double Haut, double Rayonint );
82 void SetSphere( double Xcentre, double Ycentre, double ZCentre,
85 HOMARD::double_array* GetCoords();
87 void SetLimit( double Xincr, double Yincr, double Zincr);
88 HOMARD::double_array* GetLimit();
90 // Liens avec les autres structures
91 void AddHypo( const char *NomHypo );
92 HOMARD::listeHypo* GetHypo();
93 void SupprHypo( const char *NomHypo );
96 ::HOMARD_Zone* myHomardZone;
99 HOMARD::HOMARD_Gen_var _gen_i;