1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : BLSURFPlugin_Hypothesis.hxx
21 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
24 #ifndef _BLSURFPlugin_Hypothesis_i_HXX_
25 #define _BLSURFPlugin_Hypothesis_i_HXX_
27 #include <SALOMEconfig.h>
28 #include CORBA_SERVER_HEADER(BLSURFPlugin_Algorithm)
30 #include "SMESH_Hypothesis_i.hxx"
31 #include "BLSURFPlugin_Hypothesis.hxx"
35 // BLSURFPlugin parameters hypothesis
37 class BLSURFPlugin_Hypothesis_i:
38 public virtual POA_BLSURFPlugin::BLSURFPlugin_Hypothesis,
39 public virtual SMESH_Hypothesis_i
43 BLSURFPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
45 ::SMESH_Gen* theGenImpl);
47 virtual ~BLSURFPlugin_Hypothesis_i();
49 void SetTopology(CORBA::Long theValue);
50 CORBA::Long GetTopology();
52 void SetPhysicalMesh(CORBA::Long theValue);
53 CORBA::Long GetPhysicalMesh();
55 void SetPhySize(CORBA::Double theValue);
56 CORBA::Double GetPhySize();
58 void SetPhyMin(CORBA::Double theMinSize);
59 CORBA::Double GetPhyMin();
61 void SetPhyMax(CORBA::Double theMaxSize);
62 CORBA::Double GetPhyMax();
64 void SetGeometricMesh(CORBA::Long theValue);
65 CORBA::Long GetGeometricMesh();
67 void SetAngleMeshS(CORBA::Double theValue);
68 CORBA::Double GetAngleMeshS();
70 void SetAngleMeshC(CORBA::Double angle);
71 CORBA::Double GetAngleMeshC();
73 void SetGeoMin(CORBA::Double theMinSize);
74 CORBA::Double GetGeoMin();
76 void SetGeoMax(CORBA::Double theMaxSize);
77 CORBA::Double GetGeoMax();
79 void SetGradation(CORBA::Double theValue);
80 CORBA::Double GetGradation();
82 void SetQuadAllowed(CORBA::Boolean theValue);
83 CORBA::Boolean GetQuadAllowed();
85 void SetDecimesh(CORBA::Boolean theValue);
86 CORBA::Boolean GetDecimesh();
88 void SetVerbosity(CORBA::Short theVal) throw (SALOME::SALOME_Exception);
89 CORBA::Short GetVerbosity();
91 void SetOptionValue(const char* optionName,
92 const char* optionValue) throw (SALOME::SALOME_Exception);
93 char* GetOptionValue(const char* optionName) throw (SALOME::SALOME_Exception);
95 void UnsetOption(const char* optionName);
97 BLSURFPlugin::string_array* GetOptionValues();
99 void SetOptionValues(const BLSURFPlugin::string_array& options) throw (SALOME::SALOME_Exception);
101 // Get implementation
102 ::BLSURFPlugin_Hypothesis* GetImpl();
104 // Verify whether hypothesis supports given entity type
105 CORBA::Boolean IsDimSupported( SMESH::Dimension type );