mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 01:30:34 +05:00
IsDimSupported method added
This commit is contained in:
parent
7637be3d14
commit
ebc64f68bf
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user