]> SALOME platform Git repositories - modules/homard.git/blob - src/HOMARD/HOMARD_Hypothesis.hxx
Salome HOME
Merge from V6_main 01/04/2013
[modules/homard.git] / src / HOMARD / HOMARD_Hypothesis.hxx
1 //  HOMARD HOMARD : implementaion 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_Hypothesis.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_HYPOTHESIS_HXX_
35 #define _HOMARD_HYPOTHESIS_HXX_
36
37 #include <string>
38 #include <list>
39
40 class HOMARD_Hypothesis
41 {
42 public:
43   HOMARD_Hypothesis();
44   ~HOMARD_Hypothesis();
45
46 // Generalites
47   void                          SetName( const char* Name );
48   std::string                   GetName() const;
49
50   std::string                   GetDumpPython() const;
51
52 // Caracteristiques
53   void                          SetAdapType( int TypeAdap );
54   int                           GetAdapType() const;
55   void                          SetRefinTypeDera( int TypeRaff, int TypeDera );
56   int                           GetRefinType() const;
57   int                           GetUnRefType() const;
58
59   void                          SetField( const char* FieldName );
60   std::string                   GetFieldName() const;
61   void                          SetUseField( int UsField );
62   int                           GetUseField()    const;
63
64   void                          SetUseComp( int UsCmpI );
65   int                           GetUseComp()    const;
66   void                          AddComp( const char* NomComposant );
67   void                          SupprComp();
68   const std::list<std::string>& GetListComp() const;
69
70   void                          SetRefinThr( int TypeThR, double ThreshR );
71   int                           GetRefinThrType()   const;
72   double                        GetThreshR()   const;
73   void                          SetUnRefThr( int TypeThC, double ThreshC );
74   int                           GetUnRefThrType()   const;
75   double                        GetThreshC()   const;
76
77   void                          SetNivMax( int NivMax );
78   const int                     GetNivMax() const;
79
80   void                          SetDiamMin( double DiamMin );
81   const double                  GetDiamMin() const;
82
83   void                          SetAdapInit( int AdapInit );
84   const int                     GetAdapInit() const;
85
86   void                          SetLevelOutput( int LevelOutput );
87   const int                     GetLevelOutput() const;
88
89   void                          AddGroup( const char* LeGroupe);
90   void                          SetGroups(const std::list<std::string>& ListGroup );
91   const std::list<std::string>& GetGroups() const;
92
93   void                          SetTypeFieldInterp( int TypeFieldInterp );
94   int                           GetTypeFieldInterp() const;
95   void                          AddFieldInterp( const char* FieldInterp );
96   void                          SupprFieldInterp();
97   const std::list<std::string>& GetListFieldInterp() const;
98
99 // Liens avec les autres structures
100   void                          SetCaseCreation( const char* NomCasCreation );
101   std::string                   GetCaseCreation() const;
102
103   void                          LinkIteration( const char* NomIter );
104   void                          UnLinkIteration( const char* NomIter );
105   void                          UnLinkIterations();
106   const std::list<std::string>& GetIterations() const;
107
108   void                          AddZone( const char* NomZone, int TypeUse );
109   void                          SupprZone( const char* NomZone );
110   void                          SupprZones();
111   const std::list<std::string>& GetZones() const;
112
113 private:
114   std::string                   _Name;
115   std::string                   _NomCasCreation;
116
117   int                           _TypeAdap; // -1 pour une adapation Uniforme,
118                                            //  0 si l adaptation depend des zones,
119                                            //  1 pour des champs
120
121   int                           _TypeRaff;
122   int                           _TypeDera;
123
124   std::string                   _Field;
125   int                           _TypeThR;
126   int                           _TypeThC;
127   double                        _ThreshR;
128   double                        _ThreshC;
129   int                           _UsField;
130   int                           _UsCmpI;
131   int                           _TypeFieldInterp; // 0 pour aucune interpolation,
132                                                   // 1 pour interpolation de tous les champs,
133                                                   // 2 pour une liste
134   int                           _NivMax;
135   double                        _DiamMin;
136   int                           _AdapInit;
137   int                           _LevelOutput;
138
139   std::list<std::string>        _ListIter;
140   std::list<std::string>        _ListZone;
141   std::list<std::string>        _ListComposant;
142   std::list<std::string>        _ListGroupSelected;
143   std::list<std::string>        _ListFieldInterp;
144 };
145
146 #endif