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.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : NETGENPlugin_SimpleHypothesis_2D_i.hxx
23 // Author : Edward AGAPOV
25 //=============================================================================
27 #ifndef _NETGENPlugin_SimpleHypothesis_2D_i_HXX_
28 #define _NETGENPlugin_SimpleHypothesis_2D_i_HXX_
30 #include "NETGENPlugin_Defs.hxx"
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(NETGENPlugin_Algorithm)
35 #include "SMESH_Hypothesis_i.hxx"
38 class NETGENPlugin_SimpleHypothesis_2D;
40 // Simplified NETGEN parameters (2D case)
42 class NETGENPLUGIN_EXPORT NETGENPlugin_SimpleHypothesis_2D_i:
43 public virtual POA_NETGENPlugin::NETGENPlugin_SimpleHypothesis_2D,
44 public virtual SMESH_Hypothesis_i
48 NETGENPlugin_SimpleHypothesis_2D_i (PortableServer::POA_ptr thePOA,
50 ::SMESH_Gen* theGenImpl);
52 virtual ~NETGENPlugin_SimpleHypothesis_2D_i();
54 void SetNumberOfSegments(CORBA::Short nb) throw ( SALOME::SALOME_Exception );
55 CORBA::Short GetNumberOfSegments();
57 void SetLocalLength(CORBA::Double segmentLength);
58 CORBA::Double GetLocalLength();
61 void LengthFromEdges();
63 void SetMaxElementArea(CORBA::Double area);
64 CORBA::Double GetMaxElementArea();
68 ::NETGENPlugin_SimpleHypothesis_2D* GetImpl();
70 // Verify whether hypothesis supports given entity type
71 CORBA::Boolean IsDimSupported( SMESH::Dimension type );