Back to index

salome-smesh  6.5.0
StdMeshers_UseExisting_1D2D_i.cxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 //  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
00021 //  File   : StdMeshers_Projection_3D_i.cxx
00022 //           Moved here from SMESH_Projection_3D_i.cxx
00023 //  Author : Paul RASCLE, EDF
00024 //  Module : SMESH
00025 //  $Header: /home/server/cvs/SMESH/SMESH_SRC/src/StdMeshers_I/StdMeshers_UseExisting_1D2D_i.cxx,v 1.3.20.2.8.1 2012-04-13 09:31:23 vsr Exp $
00026 //
00027 #include "StdMeshers_UseExisting_1D2D_i.hxx"
00028 
00029 #include "SMESH_Gen.hxx"
00030 
00031 #include "utilities.h"
00032 
00033 //=============================================================================
00037 //=============================================================================
00038 
00039 StdMeshers_UseExisting_1D_i::StdMeshers_UseExisting_1D_i
00040                                                ( PortableServer::POA_ptr thePOA,
00041                                                  int                     theStudyId,
00042                                                  ::SMESH_Gen*            theGenImpl )
00043      : SALOME::GenericObj_i( thePOA ), 
00044        SMESH_Hypothesis_i( thePOA ), 
00045        SMESH_Algo_i( thePOA ),
00046        SMESH_1D_Algo_i( thePOA )
00047 {
00048   MESSAGE( "StdMeshers_UseExisting_1D_i::StdMeshers_UseExisting_1D_i" );
00049   myBaseImpl = new ::StdMeshers_UseExisting_1D( theGenImpl->GetANewId(),
00050                                                 theStudyId,
00051                                                 theGenImpl );
00052 }
00053 //-----------------------------------------------------------------------------
00054 
00055 StdMeshers_UseExisting_1D_i::~StdMeshers_UseExisting_1D_i()
00056 {
00057   MESSAGE( "StdMeshers_UseExisting_1D_i::~StdMeshers_UseExisting_1D_i" );
00058 }
00059 //-----------------------------------------------------------------------------
00060 
00061 ::StdMeshers_UseExisting_1D* StdMeshers_UseExisting_1D_i::GetImpl()
00062 {
00063   MESSAGE( "StdMeshers_UseExisting_1D_i::GetImpl" );
00064   return ( ::StdMeshers_UseExisting_1D* )myBaseImpl;
00065 }
00066 
00067 
00068 //=============================================================================
00072 //=============================================================================
00073 
00074 StdMeshers_UseExisting_2D_i::StdMeshers_UseExisting_2D_i
00075                                                ( PortableServer::POA_ptr thePOA,
00076                                                  int                     theStudyId,
00077                                                  ::SMESH_Gen*            theGenImpl )
00078      : SALOME::GenericObj_i( thePOA ), 
00079        SMESH_Hypothesis_i( thePOA ), 
00080        SMESH_Algo_i( thePOA ),
00081        SMESH_2D_Algo_i( thePOA )
00082 {
00083   MESSAGE( "StdMeshers_UseExisting_2D_i::StdMeshers_UseExisting_2D_i" );
00084   myBaseImpl = new ::StdMeshers_UseExisting_2D( theGenImpl->GetANewId(),
00085                                                 theStudyId,
00086                                                 theGenImpl );
00087 }
00088 //-----------------------------------------------------------------------------
00089 
00090 StdMeshers_UseExisting_2D_i::~StdMeshers_UseExisting_2D_i()
00091 {
00092   MESSAGE( "StdMeshers_UseExisting_2D_i::~StdMeshers_UseExisting_2D_i" );
00093 }
00094 //-----------------------------------------------------------------------------
00095 
00096 ::StdMeshers_UseExisting_2D* StdMeshers_UseExisting_2D_i::GetImpl()
00097 {
00098   MESSAGE( "StdMeshers_UseExisting_2D_i::GetImpl" );
00099   return ( ::StdMeshers_UseExisting_2D* )myBaseImpl;
00100 }