]> SALOME platform Git repositories - modules/homard.git/blob - src/HOMARD/HOMARD_Boundary.hxx
Salome HOME
Porting HOMARD SALOME module on WIN32 platform.
[modules/homard.git] / src / HOMARD / HOMARD_Boundary.hxx
1 //  HOMARD HOMARD : implementation of HOMARD idl descriptions
2 //
3 // Copyright (C) 2011-2013  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 "HOMARD.hxx"
38
39 #include <vector>
40 #include <string>
41 #include <list>
42
43 #if defined WIN32
44 #pragma warning ( disable: 4251 )
45 #endif
46
47 class HOMARDIMPL_EXPORT HOMARD_Boundary
48 {
49 public:
50   HOMARD_Boundary();
51   ~HOMARD_Boundary();
52
53 // Generalites
54   void                          SetName( const char* Name );
55   std::string                   GetName() const;
56
57   std::string                   GetDumpPython() const;
58
59 // Caracteristiques
60   void                          SetType( int Type );
61   int                           GetType() const;
62
63   void                          SetMeshName( const char* MeshName );
64   std::string                   GetMeshName() const;
65
66   void                          SetMeshFile( const char* MeshFile );
67   std::string                   GetMeshFile() const;
68
69   void                          SetCylinder( double X0, double X1, double X2, double X3,
70                                              double X4, double X5, double X6 );
71   void                          SetSphere( double X0, double X1, double X2, double X3 );
72   void                          SetConeR( double Xcentre1, double Ycentre1, double Zcentre1, double Rayon1,
73                                           double Xcentre2, double Ycentre2, double Zcentre2, double Rayon2);
74   void                          SetConeA( double Xaxe, double Yaxe, double Zaxe, double Angle,
75                                           double Xcentre, double Ycentre, double ZCentre);
76
77   std::vector<double>           GetCoords() const;
78
79   void                          SetLimit( double X0, double X1, double X2 );
80   std::vector<double>           GetLimit() const;
81
82   void                          AddGroup( const char* LeGroupe);
83   void                          SetGroups(const std::list<std::string>& ListGroup );
84   const std::list<std::string>& GetGroups() const;
85
86 // Liens avec les autres structures
87   std::string                   GetCaseCreation() const;
88   void                          SetCaseCreation( const char* NomCasCreation );
89
90 private:
91   std::string                   _Name;
92   std::string                   _NomCasCreation;
93   std::string                   _MeshFile;
94   std::string                   _MeshName;
95   int                           _Type;
96   double                        _Xmin, _Xmax, _Ymin, _Ymax, _Zmin, _Zmax;
97   double                        _Xaxe, _Yaxe, _Zaxe;
98   double                        _Xcentre, _Ycentre, _Zcentre, _rayon;
99   double                        _Xincr, _Yincr, _Zincr;
100   double                        _Xcentre1, _Ycentre1, _Zcentre1, _Rayon1;
101   double                        _Xcentre2, _Ycentre2, _Zcentre2, _Rayon2;
102   double                        _Angle;
103
104   std::list<std::string>        _ListGroupSelected;
105
106 };
107
108
109 #endif