1 // Copyright (C) 2011-2012 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 #ifndef _HOMARD_Boundary_I_HXX_
21 #define _HOMARD_Boundary_I_HXX_
23 #include <SALOMEconfig.h>
24 #include CORBA_SERVER_HEADER(HOMARD_Gen)
25 #include CORBA_SERVER_HEADER(HOMARD_Boundary)
27 #include "SALOME_Component_i.hxx"
28 #include "SALOME_NamingService.hxx"
29 #include "Utils_CorbaException.hxx"
33 class HOMARD_Boundary;
35 class HOMARD_Boundary_i:
36 public virtual Engines_Component_i,
37 public virtual POA_HOMARD::HOMARD_Boundary,
38 public virtual PortableServer::ServantBase
41 HOMARD_Boundary_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
44 virtual ~HOMARD_Boundary_i();
46 void SetName( const char* Name );
48 char* GetDumpPython();
50 void SetType( CORBA::Long Type );
52 CORBA::Long GetType();
54 void SetMeshFile( const char* MeshFile );
57 void SetMeshName( const char* MeshName );
60 void SetCylinder( double Xcentre, double Ycentre, double ZCentre,
61 double Xaxe, double Yaxe, double Zaxe,
63 void SetSphere( double Xcentre, double Ycentre, double ZCentre,
65 HOMARD::double_array* GetCoords();
67 HOMARD::double_array* GetLimit();
68 void SetLimit( double Xincr, double Yincr, double Zincr);
71 std::string Dump() const;
72 bool Restore( const std::string& stream );
74 void SetCaseCreation( const char* NomCaseCreation );
75 char* GetCaseCreation();
77 void AddGroup( const char* Group);
78 void SetGroups(const HOMARD::ListGroupType& ListGroup);
79 HOMARD::ListGroupType* GetGroups();
83 ::HOMARD_Boundary* myHomardBoundary;
86 HOMARD::HOMARD_Gen_var _gen_i;