Salome HOME
5cf972aae1237921d6d7f292e1145cfb4bf8dda1
[modules/homard.git] / src / HOMARD / HOMARD_Boundary.hxx
1 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
2 //
3 // Copyright (C) 2011-2012  CEA/DEN, EDF R&D
4 //
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License.
9 //
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 // Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18 //
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //
21 //  File   : HOMARD_Boundary.hxx
22 //  Author : Paul RASCLE, EDF
23 //  Module : HOMARD
24 //
25 // Remarques :
26 // L'ordre de description des fonctions est le meme dans tous les fichiers
27 // HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
28 // 1. Les generalites : Name, Delete, DumpPython, Dump, Restore
29 // 2. Les caracteristiques
30 // 3. Le lien avec les autres structures
31 //
32 // Quand les 2 fonctions Setxxx et Getxxx sont presentes, Setxxx est decrit en premier
33
34 #ifndef _HOMARD_Boundary_HXX_
35 #define _HOMARD_Boundary_HXX_
36
37 #include <vector>
38 #include <string>
39 #include <list>
40
41 class HOMARD_Boundary
42 {
43 public:
44   HOMARD_Boundary();
45   ~HOMARD_Boundary();
46
47 // Generalites
48   void                          SetName( const char* Name );
49   std::string                   GetName() const;
50
51   std::string                   GetDumpPython() const;
52
53 // Caracteristiques
54   void                          SetType( int Type );
55   int                           GetType() const;
56
57   void                          SetMeshName( const char* MeshName );
58   std::string                   GetMeshName() const;
59
60   void                          SetMeshFile( const char* MeshFile );
61   std::string                   GetMeshFile() const;
62
63   void                          SetCylinder( double X0, double X1, double X2, double X3,
64                                              double X4, double X5, double X6 );
65   void                          SetSphere( double X0, double X1, double X2, double X3 );
66
67   std::vector<double>           GetCoords() const;
68
69   void                          SetLimit( double X0, double X1, double X2 );
70   std::vector<double>           GetLimit() const;
71
72   void                          AddGroup( const char* LeGroupe);
73   void                          SetGroups(const std::list<std::string>& ListGroup );
74   const std::list<std::string>& GetGroups() const;
75
76 // Liens avec les autres structures
77   std::string                   GetCaseCreation() const;
78   void                          SetCaseCreation( const char* NomCasCreation );
79
80 private:
81   std::string                   _Name;
82   std::string                   _NomCasCreation;
83   std::string                   _MeshFile;
84   std::string                   _MeshName;
85   int                           _Type;
86   double                        _Xmin, _Xmax, _Ymin, _Ymax, _Zmin, _Zmax;
87   double                        _Xaxe, _Yaxe, _Zaxe;
88   double                        _Xcentre, _Ycentre, _Zcentre, _rayon;
89   double                        _Xincr, _Yincr, _Zincr;
90
91   std::list<std::string>        _ListGroupSelected;
92
93 };
94
95
96 #endif