1 // NETGENPlugin : C++ implementation
3 // Copyright (C) 2006 OPEN CASCADE, 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
22 // File : NETGENPlugin_Hypothesis_i.hxx
23 // Author : Michael Sazonov (OCN)
27 //=============================================================================
29 #ifndef _NETGENPlugin_Hypothesis_i_HXX_
30 #define _NETGENPlugin_Hypothesis_i_HXX_
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(NETGENPlugin_Algorithm)
35 #include "SMESH_Hypothesis_i.hxx"
36 #include "NETGENPlugin_Hypothesis.hxx"
40 // NETGENPlugin parameters hypothesis
42 class NETGENPlugin_Hypothesis_i:
43 public virtual POA_NETGENPlugin::NETGENPlugin_Hypothesis,
44 public virtual SMESH_Hypothesis_i
48 NETGENPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
50 ::SMESH_Gen* theGenImpl);
52 virtual ~NETGENPlugin_Hypothesis_i();
54 void SetMaxSize(CORBA::Double theSize);
55 CORBA::Double GetMaxSize();
57 void SetSecondOrder(CORBA::Boolean theVal);
58 CORBA::Boolean GetSecondOrder();
60 void SetOptimize(CORBA::Boolean theVal);
61 CORBA::Boolean GetOptimize();
63 void SetFineness(CORBA::Long theFineness);
64 CORBA::Long GetFineness();
66 void SetGrowthRate(CORBA::Double theRate);
67 CORBA::Double GetGrowthRate();
69 void SetNbSegPerEdge(CORBA::Double theVal);
70 CORBA::Double GetNbSegPerEdge();
72 void SetNbSegPerRadius(CORBA::Double theVal);
73 CORBA::Double GetNbSegPerRadius();
76 ::NETGENPlugin_Hypothesis* GetImpl();
78 // Verify whether hypothesis supports given entity type
79 CORBA::Boolean IsDimSupported( SMESH::Dimension type );