mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
New methods for SMESH_Mesh and SMESH_subMesh:
GetElementType - returns element type by id
This commit is contained in:
parent
44185d327a
commit
3ef3246244
@ -411,6 +411,12 @@ module SMESH
|
||||
long_array GetNodesId()
|
||||
raises (SALOME::SALOME_Exception);
|
||||
|
||||
/*!
|
||||
* Return type of mesh element
|
||||
*/
|
||||
ElementType GetElementType( in long id, in boolean iselem )
|
||||
raises (SALOME::SALOME_Exception);
|
||||
|
||||
string Dump();
|
||||
};
|
||||
|
||||
@ -440,6 +446,12 @@ module SMESH
|
||||
long_array GetElementsByType( in ElementType theType )
|
||||
raises (SALOME::SALOME_Exception);
|
||||
|
||||
/*!
|
||||
* Return type of submesh element
|
||||
*/
|
||||
ElementType GetElementType( in long id, in boolean iselem )
|
||||
raises (SALOME::SALOME_Exception);
|
||||
|
||||
/*!
|
||||
*
|
||||
*/
|
||||
@ -463,6 +475,7 @@ module SMESH
|
||||
*/
|
||||
long GetId();
|
||||
|
||||
|
||||
/*!
|
||||
* Get MED subMesh
|
||||
*/
|
||||
|
@ -1593,3 +1593,15 @@ 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 );
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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 );
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user