Salome HOME
version 5_1_4 HOMARD_SRC
[modules/homard.git] / src / HOMARD / HOMARD_Boundary.hxx
1 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
21 //
22 //
23 //
24 //  File   : HOMARD_Boundary.hxx
25 //  Author : Paul RASCLE, EDF
26 //  Module : HOMARD
27
28 #ifndef _HOMARD_Boundary_HXX_
29 #define _HOMARD_Boundary_HXX_
30
31 #include <vector>
32 #include <string>
33 #include <list>
34
35 class HOMARD_Boundary
36 {
37 public:
38   HOMARD_Boundary();
39   ~HOMARD_Boundary();
40
41   void                          SetName( const char* NomBoundary );
42   std::string                   GetName() const;
43   std::string                   GetDumpPython() const;
44
45   void                          SetLimit( double X0, double X1, double X2 );
46   std::vector<double>           GetLimit() const;
47
48   void                          SetMeshFile( const char* MeshFile );
49   std::string                   GetMeshFile() const;
50
51   void                          SetMeshName( const char* MeshName );
52   std::string                   GetMeshName() const;
53
54   void                          SetCylinder( double X0, double X1, double X2, double X3,
55                                              double X4, double X5, double X6 );
56   std::vector<double>           GetCylinder() const;
57
58   void                          SetSphere( double X0, double X1, double X2, double X3 );
59   std::vector<double>           GetSphere() const;
60
61   void                          SetBoundaryType( int BoundaryType );
62   int                           GetBoundaryType() const;
63
64   std::string                   GetCaseCreation() const;
65   void                          SetCaseCreation( const char* NomCasCreation );
66
67   void                          AddGroup( const char* LeGroupe);
68   void                          SetGroups(const std::list<std::string>& ListGroup );
69   const std::list<std::string>& GetGroups() const;
70
71 private:
72   std::string                   _NomBoundary;
73   std::string                   _NomCasCreation;
74   std::string                   _MeshFile;
75   std::string                   _MeshName;
76   int                           _BoundaryType;
77   double                        _Xmin, _Xmax, _Ymin, _Ymax, _Zmin, _Zmax;
78   double                        _Xaxe, _Yaxe, _Zaxe;
79   double                        _Xcentre, _Ycentre, _Zcentre, _rayon;
80   double                        _Xincr, _Yincr, _Zincr;
81
82   std::list<std::string>        _ListGroupSelected;
83
84 };
85
86
87 #endif