Version: 6.3.1

src/StdMeshers_I/StdMeshers_TrianglePreference_i.cxx

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  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 //  File   : StdMeshers_TrianglePreference_i.cxx
00021 //  Author : 
00022 //  Module : SMESH
00023 //
00024 #include "StdMeshers_TrianglePreference_i.hxx"
00025 #include "SMESH_Gen_i.hxx"
00026 #include "SMESH_Gen.hxx"
00027 
00028 #include "Utils_CorbaException.hxx"
00029 #include "utilities.h"
00030 
00031 #include <TCollection_AsciiString.hxx>
00032 
00033 using namespace std;
00034 
00035 //=============================================================================
00041 //=============================================================================
00042 
00043 StdMeshers_TrianglePreference_i::StdMeshers_TrianglePreference_i
00044 ( PortableServer::POA_ptr thePOA,
00045   int                     theStudyId,
00046   ::SMESH_Gen*            theGenImpl ): SALOME::GenericObj_i( thePOA ), 
00047                                         SMESH_Hypothesis_i( thePOA )
00048 {
00049   myBaseImpl = new ::StdMeshers_TrianglePreference( theGenImpl->GetANewId(),
00050                                                     theStudyId,
00051                                                     theGenImpl );
00052 }
00053 
00054 //=============================================================================
00060 //=============================================================================
00061 
00062 StdMeshers_TrianglePreference_i::~StdMeshers_TrianglePreference_i()
00063 {
00064 }
00065 
00066 //=============================================================================
00072 //=============================================================================
00073 
00074 ::StdMeshers_TrianglePreference* StdMeshers_TrianglePreference_i::GetImpl()
00075 {
00076   return ( ::StdMeshers_TrianglePreference* )myBaseImpl;
00077 }
00078 
00079 //================================================================================
00087 //================================================================================  
00088 
00089 CORBA::Boolean StdMeshers_TrianglePreference_i::IsDimSupported( SMESH::Dimension type )
00090 {
00091   return type == SMESH::DIM_2D;
00092 }
00093 
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS