Back to index

salome-smesh  6.5.0
StdMeshers_Projection_1D_2D_3D_i.cxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 //  File   : StdMeshers_Projection_1D_2D_3D_i.cxx
00023 //  Module : SMESH
00024 //
00025 #include "StdMeshers_Projection_1D_2D_3D_i.hxx"
00026 
00027 #include "SMESH_Gen.hxx"
00028 
00029 #include "Utils_CorbaException.hxx"
00030 #include "utilities.h"
00031 
00032 #include "StdMeshers_ObjRefUlils.hxx"
00033 
00034 using namespace std;
00035 
00036 //=============================================================================
00040 //=============================================================================
00041 
00042 StdMeshers_Projection_3D_i::StdMeshers_Projection_3D_i( PortableServer::POA_ptr thePOA,
00043                                                         int                     theStudyId,
00044                                                         ::SMESH_Gen*            theGenImpl )
00045      : SALOME::GenericObj_i( thePOA ), 
00046        SMESH_Hypothesis_i( thePOA ), 
00047        SMESH_Algo_i( thePOA ),
00048        SMESH_3D_Algo_i( thePOA )
00049 {
00050   MESSAGE( "StdMeshers_Projection_3D_i::StdMeshers_Projection_3D_i" );
00051   myBaseImpl = new ::StdMeshers_Projection_3D( theGenImpl->GetANewId(),
00052                                     theStudyId,
00053                                     theGenImpl );
00054 }
00055 //-----------------------------------------------------------------------------
00056 
00057 StdMeshers_Projection_3D_i::~StdMeshers_Projection_3D_i()
00058 {
00059   MESSAGE( "StdMeshers_Projection_3D_i::~StdMeshers_Projection_3D_i" );
00060 }
00061 //-----------------------------------------------------------------------------
00062 
00063 ::StdMeshers_Projection_3D* StdMeshers_Projection_3D_i::GetImpl()
00064 {
00065   MESSAGE( "StdMeshers_Projection_3D_i::GetImpl" );
00066   return ( ::StdMeshers_Projection_3D* )myBaseImpl;
00067 }
00068 
00069 
00070 //=============================================================================
00074 //=============================================================================
00075 
00076 StdMeshers_Projection_2D_i::StdMeshers_Projection_2D_i( PortableServer::POA_ptr thePOA,
00077                                                         int                     theStudyId,
00078                                                         ::SMESH_Gen*            theGenImpl )
00079      : SALOME::GenericObj_i( thePOA ), 
00080        SMESH_Hypothesis_i( thePOA ), 
00081        SMESH_Algo_i( thePOA ),
00082        SMESH_2D_Algo_i( thePOA )
00083 {
00084   MESSAGE( "StdMeshers_Projection_2D_i::StdMeshers_Projection_2D_i" );
00085   myBaseImpl = new ::StdMeshers_Projection_2D( theGenImpl->GetANewId(),
00086                                     theStudyId,
00087                                     theGenImpl );
00088 }
00089 //-----------------------------------------------------------------------------
00090 
00091 StdMeshers_Projection_2D_i::~StdMeshers_Projection_2D_i()
00092 {
00093   MESSAGE( "StdMeshers_Projection_2D_i::~StdMeshers_Projection_2D_i" );
00094 }
00095 //-----------------------------------------------------------------------------
00096 
00097 ::StdMeshers_Projection_2D* StdMeshers_Projection_2D_i::GetImpl()
00098 {
00099   MESSAGE( "StdMeshers_Projection_2D_i::GetImpl" );
00100   return ( ::StdMeshers_Projection_2D* )myBaseImpl;
00101 }
00102 
00103 
00104 //=============================================================================
00108 //=============================================================================
00109 
00110 StdMeshers_Projection_1D2D_i::StdMeshers_Projection_1D2D_i( PortableServer::POA_ptr thePOA,
00111                                                             int                     theStudyId,
00112                                                             ::SMESH_Gen*            theGenImpl )
00113      : SALOME::GenericObj_i( thePOA ),
00114        SMESH_Hypothesis_i( thePOA ),
00115        SMESH_Algo_i( thePOA ),
00116        SMESH_2D_Algo_i( thePOA )
00117 {
00118   MESSAGE( "StdMeshers_Projection_1D2D_i::StdMeshers_Projection_1D2D_i" );
00119   myBaseImpl = new ::StdMeshers_Projection_1D2D( theGenImpl->GetANewId(),
00120                                                  theStudyId,
00121                                                  theGenImpl );
00122 }
00123 //-----------------------------------------------------------------------------
00124 
00125 StdMeshers_Projection_1D2D_i::~StdMeshers_Projection_1D2D_i()
00126 {
00127   MESSAGE( "StdMeshers_Projection_1D2D_i::~StdMeshers_Projection_1D2D_i" );
00128 }
00129 //-----------------------------------------------------------------------------
00130 
00131 ::StdMeshers_Projection_1D2D* StdMeshers_Projection_1D2D_i::GetImpl()
00132 {
00133   MESSAGE( "StdMeshers_Projection_1D2D_i::GetImpl" );
00134   return ( ::StdMeshers_Projection_1D2D* )myBaseImpl;
00135 }
00136 
00137 
00138 //=============================================================================
00142 //=============================================================================
00143 
00144 StdMeshers_Projection_1D_i::StdMeshers_Projection_1D_i( PortableServer::POA_ptr thePOA,
00145                                                         int                     theStudyId,
00146                                                         ::SMESH_Gen*            theGenImpl )
00147      : SALOME::GenericObj_i( thePOA ), 
00148        SMESH_Hypothesis_i( thePOA ), 
00149        SMESH_Algo_i( thePOA ),
00150        SMESH_1D_Algo_i( thePOA )
00151 {
00152   MESSAGE( "StdMeshers_Projection_1D_i::StdMeshers_Projection_1D_i" );
00153   myBaseImpl = new ::StdMeshers_Projection_1D( theGenImpl->GetANewId(),
00154                                     theStudyId,
00155                                     theGenImpl );
00156 }
00157 //-----------------------------------------------------------------------------
00158 
00159 StdMeshers_Projection_1D_i::~StdMeshers_Projection_1D_i()
00160 {
00161   MESSAGE( "StdMeshers_Projection_1D_i::~StdMeshers_Projection_1D_i" );
00162 }
00163 //-----------------------------------------------------------------------------
00164 
00165 ::StdMeshers_Projection_1D* StdMeshers_Projection_1D_i::GetImpl()
00166 {
00167   MESSAGE( "StdMeshers_Projection_1D_i::GetImpl" );
00168   return ( ::StdMeshers_Projection_1D* )myBaseImpl;
00169 }