Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_NETGEN_2D_i.cxx
1 //  NETGENPlugin : idl 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_NETGEN_2D_i.cxx
23 //  Author : Michael Sazonov (OCN)
24 //  Module : NETGENPlugin
25 //  $Header$
26
27 using namespace std;
28 #include "NETGENPlugin_NETGEN_2D_i.hxx"
29 #include "SMESH_Gen.hxx"
30
31 #include "Utils_CorbaException.hxx"
32 #include "utilities.h"
33
34 //=============================================================================
35 /*!
36  *  NETGENPlugin_NETGEN_2D_i::NETGENPlugin_NETGEN_2D_i
37  *
38  *  Constructor
39  */
40 //=============================================================================
41
42 NETGENPlugin_NETGEN_2D_i::NETGENPlugin_NETGEN_2D_i( PortableServer::POA_ptr thePOA,
43                                                     int                     theStudyId,
44                                                     ::SMESH_Gen*            theGenImpl )
45      : SALOME::GenericObj_i( thePOA ), 
46        SMESH_Hypothesis_i( thePOA ), 
47        SMESH_Algo_i( thePOA ),
48        SMESH_2D_Algo_i( thePOA )
49 {
50   MESSAGE( "NETGENPlugin_NETGEN_2D_i::NETGENPlugin_NETGEN_2D_i" );
51   myBaseImpl = new ::NETGENPlugin_NETGEN_2D( theGenImpl->GetANewId(),
52                                              theStudyId,
53                                              theGenImpl );
54 }
55
56 //=============================================================================
57 /*!
58  *  NETGENPlugin_NETGEN_2D_i::~NETGENPlugin_NETGEN_2D_i
59  *
60  *  Destructor
61  */
62 //=============================================================================
63
64 NETGENPlugin_NETGEN_2D_i::~NETGENPlugin_NETGEN_2D_i()
65 {
66   MESSAGE( "NETGENPlugin_NETGEN_2D_i::~NETGENPlugin_NETGEN_2D_i" );
67 }
68
69 //=============================================================================
70 /*!
71  *  NETGENPlugin_NETGEN_2D_i::GetImpl
72  *
73  *  Get implementation
74  */
75 //=============================================================================
76
77 ::NETGENPlugin_NETGEN_2D* NETGENPlugin_NETGEN_2D_i::GetImpl()
78 {
79   MESSAGE( "NETGENPlugin_NETGEN_2D_i::GetImpl" );
80   return ( ::NETGENPlugin_NETGEN_2D* )myBaseImpl;
81 }