Back to index

salome-smesh  6.5.0
StdMeshers_NumberOfLayers2D_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 classes
00021 //  File   : StdMeshers_NumberOfLayers2D_i.cxx
00022 //  Author : Edward AGAPOV
00023 //  Module : SMESH
00024 //
00025 #include "StdMeshers_NumberOfLayers2D_i.hxx"
00026 
00027 #include "utilities.h"
00028 
00029 //=============================================================================
00035 //=============================================================================
00036 
00037 StdMeshers_NumberOfLayers2D_i::StdMeshers_NumberOfLayers2D_i
00038                                            (PortableServer::POA_ptr thePOA,
00039                                             int                     theStudyId,
00040                                             ::SMESH_Gen*            theGenImpl)
00041 : StdMeshers_NumberOfLayers_i(thePOA,theStudyId,theGenImpl),
00042   SMESH_Hypothesis_i( thePOA )
00043 {
00044   MESSAGE("StdMeshers_NumberOfLayers2D_i::StdMeshers_NumberOfLayers2D_i");
00045   myBaseImpl = new ::StdMeshers_NumberOfLayers2D(theGenImpl->GetANewId(),
00046                                                  theStudyId,
00047                                                  theGenImpl);
00048 }
00049 
00050 //=============================================================================
00056 //=============================================================================
00057 
00058 StdMeshers_NumberOfLayers2D_i::~StdMeshers_NumberOfLayers2D_i()
00059 {
00060   MESSAGE( "StdMeshers_NumberOfLayers2D_i::~StdMeshers_NumberOfLayers2D_i" );
00061 }
00062 
00063 //=============================================================================
00069 //=============================================================================
00070 
00071 ::StdMeshers_NumberOfLayers2D* StdMeshers_NumberOfLayers2D_i::GetImpl()
00072 {
00073   return ( ::StdMeshers_NumberOfLayers2D* )myBaseImpl;
00074 }
00075 
00076 //================================================================================
00084 //================================================================================  
00085 CORBA::Boolean StdMeshers_NumberOfLayers2D_i::IsDimSupported( SMESH::Dimension type )
00086 {
00087   return type == SMESH::DIM_2D;
00088 }