Salome HOME
IsDimSupported method added
authorsln <sln@opencascade.com>
Tue, 23 Aug 2005 08:38:00 +0000 (08:38 +0000)
committersln <sln@opencascade.com>
Tue, 23 Aug 2005 08:38:00 +0000 (08:38 +0000)
src/SMESH_I/SMESH_1D_Algo_i.cxx
src/SMESH_I/SMESH_1D_Algo_i.hxx
src/SMESH_I/SMESH_2D_Algo_i.cxx
src/SMESH_I/SMESH_2D_Algo_i.hxx
src/SMESH_I/SMESH_3D_Algo_i.cxx
src/SMESH_I/SMESH_3D_Algo_i.hxx

index a792ec2872b382994286ed6e94bf4e0e64d78674..06f621dc9bfd1f58bfd7f7a980622a77a75badb0 100644 (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;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
index 16ab9b4410fb88bd63739657750a9febf0241747..1112a4019facf6d1e578137b5517226ee09ef809 100644 (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
index 833be2ac9451880abd7d1e3839831ddf3554e3f0..00744eea49a7f4d1a649eec02694f3f39d379194 100644 (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;
+}
index cebda6197e1808561671e2749fa8640839f1f87c..58664c9cfbc4a4584a5408f4d15c4029836310c2 100644 (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
index 197fc4448405d31ed509ae5180e7b5955e910e74..14276fe12ebffda055683e39a120529fef515760 100644 (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;
+}
+
index a45336a39b3ba7604ae3e03608a33a67b7d64330..8589e166ac3fe72fb8b02dd64928c26a0a6a0550 100644 (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