IsDimSupported method added

This commit is contained in:
sln 2005-08-23 08:38:00 +00:00
parent 7637be3d14
commit ebc64f68bf
6 changed files with 66 additions and 0 deletions

View File

@ -59,3 +59,31 @@ SMESH_1D_Algo_i::~SMESH_1D_Algo_i()
{
MESSAGE( "SMESH_1D_Algo_i::~SMESH_1D_Algo_i" );
}
//================================================================================
/*!
* \brief Verify whether algorithm supports given entity type
* \param type - dimension (see SMESH::Dimension enumeration)
* \retval CORBA::Boolean - TRUE if dimension is supported, FALSE otherwise
*
* Verify whether algorithm supports given entity type (see SMESH::Dimension enumeration)
*/
//================================================================================
CORBA::Boolean SMESH_1D_Algo_i::IsDimSupported( SMESH::Dimension type )
{
return type == SMESH::DIM_1D;
}

View File

@ -48,6 +48,9 @@ protected:
public:
// Destructor
virtual ~SMESH_1D_Algo_i();
// Verify whether algorithm supports given entity type
CORBA::Boolean IsDimSupported( SMESH::Dimension type );
};
#endif

View File

@ -59,3 +59,17 @@ SMESH_2D_Algo_i::~SMESH_2D_Algo_i()
{
MESSAGE( "SMESH_2D_Algo_i::~SMESH_2D_Algo_i" );
}
//================================================================================
/*!
* \brief Verify whether algorithm supports given entity type
* \param type - dimension (see SMESH::Dimension enumeration)
* \retval CORBA::Boolean - TRUE if dimension is supported, FALSE otherwise
*
* Verify whether algorithm supports given entity type (see SMESH::Dimension enumeration)
*/
//================================================================================
CORBA::Boolean SMESH_2D_Algo_i::IsDimSupported( SMESH::Dimension type )
{
return type == SMESH::DIM_2D;
}

View File

@ -48,6 +48,9 @@ protected:
public:
// Destructor
virtual ~SMESH_2D_Algo_i();
// Verify whether algorithm supports given entity type
CORBA::Boolean IsDimSupported( SMESH::Dimension type );
};
#endif

View File

@ -59,3 +59,18 @@ SMESH_3D_Algo_i::~SMESH_3D_Algo_i()
{
MESSAGE( "SMESH_3D_Algo_i::~SMESH_3D_Algo_i" );
}
//================================================================================
/*!
* \brief Verify whether algorithm supports given entity type
* \param type - dimension (see SMESH::Dimension enumeration)
* \retval CORBA::Boolean - TRUE if dimension is supported, FALSE otherwise
*
* Verify whether algorithm supports given entity type (see SMESH::Dimension enumeration)
*/
//================================================================================
CORBA::Boolean SMESH_3D_Algo_i::IsDimSupported( SMESH::Dimension type )
{
return type == SMESH::DIM_3D;
}

View File

@ -48,6 +48,9 @@ protected:
public:
// Destructor
virtual ~SMESH_3D_Algo_i();
// Verify whether algorithm supports given entity type
CORBA::Boolean IsDimSupported( SMESH::Dimension type );
};
#endif