Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_Hypothesis_2D_i.hxx
1 //  NETGENPlugin : C++ implementation
2 //
3 //  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
4 // 
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. 
9 // 
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. 
14 // 
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 
18 // 
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //
21 //
22 // File      : NETGENPlugin_Hypothesis_2D_i.hxx
23 // Author    : Michael Sazonov (OCN)
24 // Date      : 03/04/2006
25 // Project   : SALOME
26 // $Header$
27 //=============================================================================
28
29 #ifndef _NETGENPlugin_Hypothesis_2D_i_HXX_
30 #define _NETGENPlugin_Hypothesis_2D_i_HXX_
31
32 #include "NETGENPlugin_Defs.hxx"
33
34 #include <SALOMEconfig.h>
35 #include CORBA_SERVER_HEADER(NETGENPlugin_Algorithm)
36
37 #include "NETGENPlugin_Hypothesis_i.hxx"
38 #include "NETGENPlugin_Hypothesis_2D.hxx"
39
40 class SMESH_Gen;
41
42 // NETGENPlugin parameters hypothesis (2D case)
43
44 class NETGENPLUGIN_EXPORT  NETGENPlugin_Hypothesis_2D_i:
45   public virtual POA_NETGENPlugin::NETGENPlugin_Hypothesis_2D,
46   public NETGENPlugin_Hypothesis_i
47 {
48  public:
49   // Constructor
50   NETGENPlugin_Hypothesis_2D_i (PortableServer::POA_ptr thePOA,
51                                 int                     theStudyId,
52                                 ::SMESH_Gen*            theGenImpl);
53   // Destructor
54   virtual ~NETGENPlugin_Hypothesis_2D_i();
55
56   void SetQuadAllowed(CORBA::Boolean theVal);
57   CORBA::Boolean GetQuadAllowed();
58
59   // Get implementation
60   ::NETGENPlugin_Hypothesis_2D* GetImpl();
61   
62   // Verify whether hypothesis supports given entity type 
63   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
64 };
65
66 #endif