Salome HOME
Merge from V6_3_BR 06/06/2011
[modules/homard.git] / src / HOMARD / HOMARD_Zone.hxx
1 //  HOMARD HOMARD : implementaion of HOMARD idl descriptions
2 //
3 // Copyright (C) 2011  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_Zone.hxx
22 //  Author : Paul RASCLE, EDF
23 //  Module : HOMARD
24
25 #ifndef _HOMARD_Zone_HXX_
26 #define _HOMARD_Zone_HXX_
27
28 #include <vector>
29 #include <string>
30 #include <list>
31
32 class HOMARD_Zone
33 {
34 public:
35   HOMARD_Zone();
36   ~HOMARD_Zone();
37
38   void                          SetName( const char* NomZone );
39   std::string                   GetName() const;
40   std::string                   GetDumpPython() const;
41   
42   void                          SetBox( double X0, double X1, double X2, 
43                                         double X3, double X4, double X5 );
44   std::vector<double>           GetBox() const;
45
46   void                          SetSphere( double X0, double X1,
47                                            double X2, double X3 );
48   std::vector<double>           GetSphere() const;
49
50   void                          SetLimit( double X0, double X1, double X2 );
51   std::vector<double>           GetLimit() const;
52   
53   void                          SetZoneType( int ZoneType );
54   int                           GetZoneType() const;
55   
56   void                          AddHypo( const char* NomHypo );
57   void                          SupprHypo( const char* NomHypo );
58   const std::list<std::string>& GetHypo() const;
59   void                          SupprHypos();
60
61 private:
62   std::string                   _NomZone;
63   int                           _ZoneType;
64   std::list<std::string>        _ListHypo;
65   double                        _Xmin, _Xmax, _Ymin, _Ymax, _Zmin, _Zmax;
66   double                        _Xcentre, _Ycentre, _Zcentre, _rayon;
67   double                        _Xincr, _Yincr, _Zincr;
68 };
69
70 #endif