1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // NETGENPlugin : C++ implementation
24 // File : NETGENPlugin_Hypothesis_i.hxx
25 // Author : Michael Sazonov (OCN)
29 //=============================================================================
31 #ifndef _NETGENPlugin_Hypothesis_i_HXX_
32 #define _NETGENPlugin_Hypothesis_i_HXX_
34 #include "NETGENPlugin_Defs.hxx"
36 #include <SALOMEconfig.h>
37 #include CORBA_SERVER_HEADER(NETGENPlugin_Algorithm)
39 #include "SMESH_Hypothesis_i.hxx"
40 #include "NETGENPlugin_Hypothesis.hxx"
45 // NETGENPlugin parameters hypothesis
47 class NETGENPLUGIN_EXPORT NETGENPlugin_Hypothesis_i:
48 public virtual POA_NETGENPlugin::NETGENPlugin_Hypothesis,
49 public virtual SMESH_Hypothesis_i
53 NETGENPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
55 ::SMESH_Gen* theGenImpl);
57 virtual ~NETGENPlugin_Hypothesis_i();
59 void SetMaxSize(CORBA::Double theSize);
60 CORBA::Double GetMaxSize();
62 void SetSecondOrder(CORBA::Boolean theVal);
63 CORBA::Boolean GetSecondOrder();
65 void SetOptimize(CORBA::Boolean theVal);
66 CORBA::Boolean GetOptimize();
68 void SetFineness(CORBA::Long theFineness);
69 CORBA::Long GetFineness();
71 void SetGrowthRate(CORBA::Double theRate);
72 CORBA::Double GetGrowthRate();
74 void SetNbSegPerEdge(CORBA::Double theVal);
75 CORBA::Double GetNbSegPerEdge();
77 void SetNbSegPerRadius(CORBA::Double theVal);
78 CORBA::Double GetNbSegPerRadius();
80 void SetLocalSizeOnShape(GEOM::GEOM_Object_ptr GeomObj, CORBA::Double localSize);
81 void SetLocalSizeOnEntry(const char* entry, CORBA::Double localSize);
82 CORBA::Double GetLocalSizeOnEntry(const char* entry);
83 NETGENPlugin::string_array* GetLocalSizeEntries();
84 void UnsetLocalSizeOnEntry(const char* entry);
87 ::NETGENPlugin_Hypothesis* GetImpl();
89 // Verify whether hypothesis supports given entity type
90 CORBA::Boolean IsDimSupported( SMESH::Dimension type );