Salome HOME
updating or adding when merging in the main trunk with the version in the
[modules/smesh.git] / src / SMESH_I / SMESH_NETGEN_3D_i.cxx
1 //=============================================================================
2 // File      : SMESH_NETGEN_3D_i.cxx
3 // Created   : Jeudi 31 Janvier 2003
4 // Author    : Nadir Bouhamou CEA
5 // Project   : SALOME
6 // Copyright : CEA 2003
7 // $Header$
8 //=============================================================================
9 using namespace std;
10
11 #include "SMESH_NETGEN_3D_i.hxx"
12 #include "SMESH_Gen.hxx"
13 #include "SMESH_HypothesisFactory.hxx"
14
15 #include "Utils_CorbaException.hxx"
16 #include "utilities.h"
17
18 //=============================================================================
19 /*!
20  *  
21  */
22 //=============================================================================
23
24 SMESH_NETGEN_3D_i::SMESH_NETGEN_3D_i(const char* anHyp,
25                                    int studyId,
26                                    ::SMESH_Gen* genImpl)
27 {
28   MESSAGE("SMESH_NETGEN_3D_i::SMESH_NETGEN_3D_i");
29   _genImpl = genImpl;
30   ::SMESH_NETGEN_3D* impl 
31       = new ::SMESH_NETGEN_3D(_genImpl->_hypothesisFactory.GetANewId(),
32                              studyId,
33                              genImpl);
34   SetImpl(impl);
35   _baseImpl = _impl;
36 }
37
38 //=============================================================================
39 /*!
40  *  
41  */
42 //=============================================================================
43
44 SMESH_NETGEN_3D_i::~SMESH_NETGEN_3D_i()
45 {
46   MESSAGE("SMESH_NETGEN_3D_i::~SMESH_NETGEN_3D_i");
47 }
48
49 //=============================================================================
50 /*!
51  *  
52  */
53 //=============================================================================
54
55 void SMESH_NETGEN_3D_i::SetImpl(::SMESH_NETGEN_3D* impl)
56 {
57   MESSAGE("SMESH_NETGEN_3D_i::SetImpl");
58   SMESH_3D_Algo_i::SetImpl(impl);
59   _impl = impl;
60 }