Salome HOME
76b826ff48e2c89dc317d5dc435079ab467843c7
[plugins/blsurfplugin.git] / src / BLSURFPlugin / BLSURFPlugin_Hypothesis_i.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
2 //
3 //  This library is free software; you can redistribute it and/or
4 //  modify it under the terms of the GNU Lesser General Public
5 //  License as published by the Free Software Foundation; either
6 //  version 2.1 of the License.
7 //
8 //  This library is distributed in the hope that it will be useful,
9 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 //  Lesser General Public License for more details.
12 //
13 //  You should have received a copy of the GNU Lesser General Public
14 //  License along with this library; if not, write to the Free Software
15 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 // ---
20 // File    : BLSURFPlugin_Hypothesis.hxx
21 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
22 // ---
23 //
24 #ifndef _BLSURFPlugin_Hypothesis_i_HXX_
25 #define _BLSURFPlugin_Hypothesis_i_HXX_
26
27 #include <SALOMEconfig.h>
28 #include CORBA_SERVER_HEADER(BLSURFPlugin_Algorithm)
29
30 #include "SMESH_Hypothesis_i.hxx"
31 #include "BLSURFPlugin_Hypothesis.hxx"
32
33 class SMESH_Gen;
34
35 // BLSURFPlugin parameters hypothesis
36
37 class BLSURFPlugin_Hypothesis_i:
38   public virtual POA_BLSURFPlugin::BLSURFPlugin_Hypothesis,
39   public virtual SMESH_Hypothesis_i
40 {
41  public:
42   // Constructor
43   BLSURFPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
44                              int                     theStudyId,
45                              ::SMESH_Gen*            theGenImpl);
46   // Destructor
47   virtual ~BLSURFPlugin_Hypothesis_i();
48
49   void SetTopology(CORBA::Long theValue);
50   CORBA::Long GetTopology();
51
52   void SetPhysicalMesh(CORBA::Long theValue);
53   CORBA::Long GetPhysicalMesh();
54
55   void SetPhySize(CORBA::Double theValue);
56   CORBA::Double GetPhySize();
57
58   void SetPhyMin(CORBA::Double theMinSize);
59   CORBA::Double GetPhyMin();
60
61   void SetPhyMax(CORBA::Double theMaxSize);
62   CORBA::Double GetPhyMax();
63
64   void SetGeometricMesh(CORBA::Long theValue);
65   CORBA::Long GetGeometricMesh();
66
67   void SetAngleMeshS(CORBA::Double theValue);
68   CORBA::Double GetAngleMeshS();
69
70   void SetAngleMeshC(CORBA::Double angle);
71   CORBA::Double GetAngleMeshC();
72
73   void SetGeoMin(CORBA::Double theMinSize);
74   CORBA::Double GetGeoMin();
75
76   void SetGeoMax(CORBA::Double theMaxSize);
77   CORBA::Double GetGeoMax();
78
79   void SetGradation(CORBA::Double theValue);
80   CORBA::Double GetGradation();
81
82   void SetQuadAllowed(CORBA::Boolean theValue);
83   CORBA::Boolean GetQuadAllowed();
84
85   void SetDecimesh(CORBA::Boolean theValue);
86   CORBA::Boolean GetDecimesh();
87
88   void SetVerbosity(CORBA::Short theVal) throw (SALOME::SALOME_Exception);
89   CORBA::Short GetVerbosity();
90
91   void SetOptionValue(const char* optionName,
92                       const char* optionValue) throw (SALOME::SALOME_Exception);
93   char* GetOptionValue(const char* optionName) throw (SALOME::SALOME_Exception);
94
95   void UnsetOption(const char* optionName);
96
97   BLSURFPlugin::string_array* GetOptionValues();
98
99   void SetOptionValues(const BLSURFPlugin::string_array& options) throw (SALOME::SALOME_Exception);
100
101   // Get implementation
102   ::BLSURFPlugin_Hypothesis* GetImpl();
103   
104   // Verify whether hypothesis supports given entity type 
105   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
106 };
107
108 #endif