Salome HOME
Import a new plugin, sent by Stephane LIAUZU
[plugins/hexoticplugin.git] / src / HexoticPlugin / HexoticPlugin_Hexotic_i.cxx
1 //  HexoticPlugin : 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
20 //
21 //
22 //  File    : HexoticPlugin_Hexotic_i.cxx
23 //  Author  : Lioka RAZAFINDRAZAKA (CEA)
24 //  Module  : HexoticPlugin
25 //  $Header : /home/server/cvs-PAL/HexoticPLUGIN/HexoticPLUGIN_SRC/src/HexoticPlugin_Hexotic_i.cxx,v 1.2 2006/06/01 11:43:58 jfa Exp $
26
27 using namespace std;
28 #include "HexoticPlugin_Hexotic_i.hxx"
29 #include "SMESH_Gen.hxx"
30 #include "HexoticPlugin_Hexotic.hxx"
31
32 #include "Utils_CorbaException.hxx"
33 #include "utilities.h"
34
35 //=============================================================================
36 /*!
37  *  HexoticPlugin_Hexotic_i::HexoticPlugin_Hexotic_i
38  *
39  *  Constructor
40  */
41 //=============================================================================
42
43 HexoticPlugin_Hexotic_i::HexoticPlugin_Hexotic_i( PortableServer::POA_ptr thePOA,
44                                                   int                     theStudyId,
45                                                   ::SMESH_Gen*            theGenImpl )
46      : SALOME::GenericObj_i( thePOA ), 
47        SMESH_Hypothesis_i( thePOA ), 
48        SMESH_Algo_i( thePOA ),
49        SMESH_3D_Algo_i( thePOA )
50 {
51   MESSAGE( "HexoticPlugin_Hexotic_i::HexoticPlugin_Hexotic_i" );
52   myBaseImpl = new ::HexoticPlugin_Hexotic( theGenImpl->GetANewId(),
53                                             theStudyId,
54                                             theGenImpl );
55 }
56
57 //=============================================================================
58 /*!
59  *  HexoticPlugin_Hexotic_i::~HexoticPlugin_Hexotic_i
60  *
61  *  Destructor
62  */
63 //=============================================================================
64
65 HexoticPlugin_Hexotic_i::~HexoticPlugin_Hexotic_i()
66 {
67   MESSAGE( "HexoticPlugin_Hexotic_i::~HexoticPlugin_Hexotic_i" );
68 }
69
70 //=============================================================================
71 /*!
72  *  HexoticPlugin_Hexotic_i::GetImpl
73  *
74  *  Get implementation
75  */
76 //=============================================================================
77
78 ::HexoticPlugin_Hexotic* HexoticPlugin_Hexotic_i::GetImpl()
79 {
80   MESSAGE( "HexoticPlugin_Hexotic_i::GetImpl" );
81   return ( ::HexoticPlugin_Hexotic* )myBaseImpl;
82 }