smesh/src/StdMeshers_I/StdMeshers_Propagation_i.cxx

101 lines
4.0 KiB
C++
Raw Normal View History

2015-02-13 13:38:35 +05:00
// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
2014-02-20 18:25:37 +06:00
// version 2.1 of the License, or (at your option) any later version.
2004-12-01 15:48:31 +05:00
//
2012-08-09 16:03:55 +06:00
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
2004-12-01 15:48:31 +05:00
//
2012-08-09 16:03:55 +06:00
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2004-12-01 15:48:31 +05:00
//
2012-08-09 16:03:55 +06:00
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2004-12-01 15:48:31 +05:00
//
2012-08-09 16:03:55 +06:00
2009-02-17 10:27:49 +05:00
// SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
2004-12-01 15:48:31 +05:00
// File : StdMeshers_Propagation_i.cxx
// Module : SMESH
2009-02-17 10:27:49 +05:00
//
2004-12-01 15:48:31 +05:00
#include "StdMeshers_Propagation_i.hxx"
#include "SMESH_Gen.hxx"
#include "Utils_CorbaException.hxx"
#include "utilities.h"
using namespace std;
2004-12-01 15:48:31 +05:00
//=============================================================================
/*!
* StdMeshers_Propagation_i::StdMeshers_Propagation_i
*
* Constructor
*/
//=============================================================================
StdMeshers_Propagation_i::StdMeshers_Propagation_i (PortableServer::POA_ptr thePOA,
int theStudyId,
::SMESH_Gen* theGenImpl )
2014-01-15 15:41:17 +06:00
: SALOME::GenericObj_i( thePOA ),
SMESH_Hypothesis_i( thePOA )
2004-12-01 15:48:31 +05:00
{
MESSAGE( "StdMeshers_Propagation_i::StdMeshers_Propagation_i" );
myBaseImpl = new ::StdMeshers_Propagation(theGenImpl->GetANewId(),
theStudyId,
theGenImpl);
}
2014-01-15 15:41:17 +06:00
//================================================================================
2004-12-01 15:48:31 +05:00
/*!
2014-01-15 15:41:17 +06:00
* \brief Verify whether hypothesis supports given entity type
* \param type - dimension (see SMESH::Dimension enumeration)
* \retval CORBA::Boolean - TRUE if dimension is supported, FALSE otherwise
2004-12-01 15:48:31 +05:00
*
2014-01-15 15:41:17 +06:00
* Verify whether hypothesis supports given entity type (see SMESH::Dimension enumeration)
2004-12-01 15:48:31 +05:00
*/
2014-01-15 15:41:17 +06:00
//================================================================================
CORBA::Boolean StdMeshers_Propagation_i::IsDimSupported( SMESH::Dimension type )
2004-12-01 15:48:31 +05:00
{
2014-01-15 15:41:17 +06:00
return type == SMESH::DIM_1D;
2004-12-01 15:48:31 +05:00
}
//=============================================================================
/*!
2014-01-15 15:41:17 +06:00
* StdMeshers_PropagOfDistribution_i::StdMeshers_PropagOfDistribution_i
2004-12-01 15:48:31 +05:00
*
2014-01-15 15:41:17 +06:00
* Constructor
2004-12-01 15:48:31 +05:00
*/
//=============================================================================
2014-01-15 15:41:17 +06:00
StdMeshers_PropagOfDistribution_i::
StdMeshers_PropagOfDistribution_i (PortableServer::POA_ptr thePOA,
int theStudyId,
::SMESH_Gen* theGenImpl )
: SALOME::GenericObj_i( thePOA ),
SMESH_Hypothesis_i( thePOA )
2004-12-01 15:48:31 +05:00
{
2014-01-15 15:41:17 +06:00
myBaseImpl = new ::StdMeshers_PropagOfDistribution(theGenImpl->GetANewId(),
theStudyId,
theGenImpl);
2004-12-01 15:48:31 +05:00
}
2005-08-23 14:44:44 +06:00
//================================================================================
/*!
2014-01-15 15:41:17 +06:00
* \brief Verify whether hypothesis supports given entity type
* \param type - dimension (see SMESH::Dimension enumeration)
* \retval CORBA::Boolean - TRUE if dimension is supported, FALSE otherwise
*
2005-08-23 14:44:44 +06:00
* Verify whether hypothesis supports given entity type (see SMESH::Dimension enumeration)
*/
2014-01-15 15:41:17 +06:00
//================================================================================
CORBA::Boolean StdMeshers_PropagOfDistribution_i::IsDimSupported( SMESH::Dimension type )
2005-08-23 14:44:44 +06:00
{
return type == SMESH::DIM_1D;
}