Salome HOME
Copyright update 2022
[modules/homard.git] / src / HOMARD_I / HOMARD_Boundary_i.hxx
1 // Copyright (C) 2011-2022  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 // Remarques :
21 // L'ordre de description des fonctions est le meme dans tous les fichiers
22 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
23 // 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
24 // 2. Les caracteristiques
25 // 3. Le lien avec les autres structures
26 //
27 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
28 //
29
30 #ifndef _HOMARD_Boundary_I_HXX_
31 #define _HOMARD_Boundary_I_HXX_
32
33 #include <SALOMEconfig.h>
34 #include CORBA_SERVER_HEADER(HOMARD_Gen)
35 #include CORBA_SERVER_HEADER(HOMARD_Boundary)
36
37 #include "HOMARD_i.hxx"
38 #include "SALOME_Component_i.hxx"
39 #include "SALOME_NamingService.hxx"
40 #include "Utils_CorbaException.hxx"
41
42 #include <string>
43
44 class HOMARD_Boundary;
45
46 class HOMARDENGINE_EXPORT HOMARD_Boundary_i:
47   public virtual Engines_Component_i,
48   public virtual POA_HOMARD::HOMARD_Boundary,
49   public virtual PortableServer::ServantBase
50 {
51 public:
52   HOMARD_Boundary_i( CORBA::ORB_ptr orb, HOMARD::HOMARD_Gen_var gen_i );
53   HOMARD_Boundary_i();
54
55   virtual ~HOMARD_Boundary_i();
56
57 // Generalites
58   void                   SetName( const char* Name );
59   char*                  GetName();
60
61   CORBA::Long            Delete();
62
63   char*                  GetDumpPython();
64
65   std::string            Dump() const;
66   bool                   Restore( const std::string& stream );
67
68 // Caracteristiques
69   void                   SetType( CORBA::Long Type );
70   CORBA::Long            GetType();
71
72   void                   SetMeshName( const char* MeshName );
73   char*                  GetMeshName();
74
75   void                   SetDataFile( const char* DataFile );
76   char*                  GetDataFile();
77
78   void                   SetCylinder( double Xcentre, double Ycentre, double ZCentre,
79                                       double Xaxe, double Yaxe, double Zaxe,
80                                       double rayon );
81   void                   SetSphere( double Xcentre, double Ycentre, double ZCentre,
82                                     double rayon );
83   void                   SetConeR( double Xcentre1, double Ycentre1, double Zcentre1, double Rayon1,
84                                    double Xcentre2, double Ycentre2, double Zcentre2, double Rayon2);
85   void                   SetConeA( double Xaxe, double Yaxe, double Zaxe, double Angle,
86                                    double Xcentre, double Ycentre, double ZCentre);
87   void                   SetTorus( double Xcentre, double Ycentre, double ZCentre,
88                                       double Xaxe, double Yaxe, double Zaxe,
89                                       double rayonRev, double rayonPri );
90
91   HOMARD::double_array*  GetCoords();
92
93   void                   SetLimit( double Xincr, double Yincr, double Zincr);
94   HOMARD::double_array*  GetLimit();
95
96   void                   AddGroup( const char* Group);
97   void                   SetGroups(const HOMARD::ListGroupType& ListGroup);
98   HOMARD::ListGroupType* GetGroups();
99
100 // Liens avec les autres structures
101   void                   SetCaseCreation( const char* NomCaseCreation );
102   char*                  GetCaseCreation();
103
104
105 private:
106   ::HOMARD_Boundary*     myHomardBoundary;
107
108   CORBA::ORB_ptr         _orb;
109   HOMARD::HOMARD_Gen_var _gen_i;
110 };
111
112 #endif