20885 EDF 607 SMESH: Measure tools

interface SMESH_IDSource
   {
+    SMESH_Mesh GetMesh();
This commit is contained in:
eap 2010-10-20 08:50:27 +00:00
parent bc6dc0fb30
commit 72832de1e2
2 changed files with 18 additions and 12 deletions

View File

@ -2293,6 +2293,16 @@ SMESH::array_of_ElementType* Filter_i::GetTypes()
return types._retn(); return types._retn();
} }
//=======================================================================
//function : GetMesh
//purpose : Returns mesh
//=======================================================================
SMESH::SMESH_Mesh_ptr Filter_i::GetMesh()
{
return SMESH_Mesh::_duplicate( myMesh );
}
//======================================================================= //=======================================================================
// name : getCriteria // name : getCriteria
// Purpose : Retrieve criterions from predicate // Purpose : Retrieve criterions from predicate

View File

@ -809,18 +809,6 @@ namespace SMESH
void void
SetMesh( SMESH_Mesh_ptr ); SetMesh( SMESH_Mesh_ptr );
virtual
SMESH::long_array*
GetIDs();
virtual
SMESH::long_array*
GetMeshInfo();
virtual
SMESH::array_of_ElementType*
GetTypes();
static static
void void
GetElementsId( Predicate_i*, GetElementsId( Predicate_i*,
@ -854,6 +842,14 @@ namespace SMESH
Predicate_i* GetPredicate_i(); Predicate_i* GetPredicate_i();
// =========================
// SMESH_IDSource interface
// =========================
virtual SMESH::long_array* GetIDs();
virtual SMESH::long_array* GetMeshInfo();
virtual SMESH::array_of_ElementType* GetTypes();
virtual SMESH::SMESH_Mesh_ptr GetMesh();
private: private:
Controls::Filter myFilter; Controls::Filter myFilter;
Predicate_i* myPredicate; Predicate_i* myPredicate;