1 // HOMARD HOMARD : implementaion of HOMARD idl descriptions
3 // Copyright (C) 2011-2012 CEA/DEN, EDF R&D
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.
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.
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
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 // File : HOMARD_Hypothesis.hxx
22 // Author : Paul RASCLE, EDF
25 #ifndef _HOMARD_HYPOTHESIS_HXX_
26 #define _HOMARD_HYPOTHESIS_HXX_
31 class HOMARD_Hypothesis
37 void SetName( const char* NomHypo );
38 std::string GetName() const;
39 void SetCaseCreation( const char* NomCasCreation );
40 std::string GetCaseCreation() const;
41 std::string GetDumpPython() const;
43 void SetAdapType( int TypeAdap );
44 int GetAdapType() const;
46 void SetRefinTypeDera( int TypeRaff, int TypeDera );
47 int GetRefinType() const;
48 int GetUnRefType() const;
50 void SetField( const char* FieldName );
51 void SetRefinThr( int TypeThR, double ThreshR );
52 void SetUnRefThr( int TypeThC, double ThreshC );
53 void SetUseComp( int UsCmpI );
54 void SetUseField( int UsField );
55 std::string GetFieldName() const;
56 int GetRefinThrType() const;
57 double GetThreshR() const;
58 int GetUnRefThrType() const;
59 double GetThreshC() const;
60 int GetUseField() const;
61 int GetUseCompI() const;
63 void AddComp( const char* NomComposant );
65 const std::list<std::string>& GetListComp() const;
67 void AddIteration( const char* NomIter );
68 void SupprIterations();
69 const std::list<std::string>& GetIterations() const;
71 void AddZone( const char* NomZone, int TypeUse );
72 void SupprZone( const char* NomZone );
74 const std::list<std::string>& GetZones() const;
76 void AddGroup( const char* LeGroupe);
77 void SetGroups(const std::list<std::string>& ListGroup );
78 const std::list<std::string>& GetGroups() const;
80 void SetTypeFieldInterp( int TypeFieldInterp );
81 int GetTypeFieldInterp() const;
82 void AddFieldInterp( const char* FieldInterp );
83 void SupprFieldInterp();
84 const std::list<std::string>& GetListFieldInterp() const;
86 void SetNivMax( int NivMax );
87 const int GetNivMax() const;
88 void SetDiamMin( double DiamMin );
89 const double GetDiamMin() const;
90 void SetAdapInit( int AdapInit );
91 const int GetAdapInit() const;
96 std::string _NomCasCreation;
98 int _TypeAdap; // -1 pour une adapation Uniforme,
99 // 0 si l adaptation depend des zones,
112 int _TypeFieldInterp; // 0 pour aucune interpolation,
113 // 1 pour interpolation de tous les champs,
119 std::list<std::string> _ListIter;
120 std::list<std::string> _ListZone;
121 std::list<std::string> _ListComposant;
122 std::list<std::string> _ListGroupSelected;
123 std::list<std::string> _ListFieldInterp;