Salome HOME
GetElementType method added
authorsln <sln@opencascade.com>
Tue, 23 Aug 2005 08:38:33 +0000 (08:38 +0000)
committersln <sln@opencascade.com>
Tue, 23 Aug 2005 08:38:33 +0000 (08:38 +0000)
src/SMESH_I/SMESH_Mesh_i.cxx
src/SMESH_I/SMESH_Mesh_i.hxx
src/SMESH_I/SMESH_subMesh_i.cxx
src/SMESH_I/SMESH_subMesh_i.hxx

index d41a1f4f29c140e17df9be51790db37a26d55f68..22bde5e382bbfc837bd79dfa91f64ad505f019cf 100644 (file)
@@ -1593,3 +1593,14 @@ SMESH::long_array* SMESH_Mesh_i::GetNodesId()
   return aResult._retn();
 }
 
+//=============================================================================
+/*!
+ *
+ */
+//=============================================================================
+
+SMESH::ElementType SMESH_Mesh_i::GetElementType( const CORBA::Long id, const bool iselem )
+  throw (SALOME::SALOME_Exception)
+{
+  return ( SMESH::ElementType )_impl->GetElementType( id, iselem );
+}
index dc3d06c57725b8447884880b1889cd9b45ecfe4b..42fac7d5d51e2dec74a1a1e404ba9e109895125b 100644 (file)
@@ -216,6 +216,9 @@ public:
   SMESH::long_array* GetNodesId()
     throw (SALOME::SALOME_Exception);
   
+  SMESH::ElementType GetElementType( const CORBA::Long id, const bool iselem )
+    throw (SALOME::SALOME_Exception);
+  
   char* Dump();
   
   // Internal methods not available through CORBA
index 2e58af96a8531f35da589f13f8200b8c286f8cdd..f8ade30f58677fdf052cdec74ea70f8e3eb8b6a0 100644 (file)
@@ -474,3 +474,14 @@ SMESH::long_array* SMESH_subMesh_i::GetIDs()
   SMESH::long_array_var aResult = GetElementsId();
   return aResult._retn();
 }
+
+//=============================================================================
+/*!
+ *
+ */
+//=============================================================================
+SMESH::ElementType SMESH_subMesh_i::GetElementType( const CORBA::Long id, const bool iselem )
+  throw (SALOME::SALOME_Exception)
+{
+  return GetFather()->GetElementType( id, iselem );
+}
index acbcd63994fe365e865c7c62cafc27dff8657c1c..e8d84b37e734eea52aa0813632159843cae75f2c 100644 (file)
@@ -64,6 +64,9 @@ public:
   SMESH::long_array* GetElementsByType( SMESH::ElementType theElemType )
     throw (SALOME::SALOME_Exception);
   
+  SMESH::ElementType GetElementType( const CORBA::Long id, const bool iselem )
+    throw (SALOME::SALOME_Exception);
+  
   SMESH::long_array* GetNodesId()
     throw (SALOME::SALOME_Exception);