From: eap Date: Tue, 24 Apr 2012 14:29:10 +0000 (+0000) Subject: small improvement of API X-Git-Tag: TRIPOLI_323~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e72b1cdc40fcd444d139a5b4356ba4ca767fd0cf;p=modules%2Fsmesh.git small improvement of API - void ComputeSubMeshStateEngine(int event); + void ComputeSubMeshStateEngine(int event, const bool includeSelf=false); --- diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index 2c6e5e7e0..af4e614a8 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -1804,9 +1804,9 @@ void SMESH_subMesh::updateSubMeshState(const compute_state theState) //purpose : //======================================================================= -void SMESH_subMesh::ComputeSubMeshStateEngine(int event) +void SMESH_subMesh::ComputeSubMeshStateEngine(int event, const bool includeSelf) { - SMESH_subMeshIteratorPtr smIt = getDependsOnIterator(false,false); + SMESH_subMeshIteratorPtr smIt = getDependsOnIterator(includeSelf,false); while ( smIt->more() ) smIt->next()->ComputeStateEngine(event); } diff --git a/src/SMESH/SMESH_subMesh.hxx b/src/SMESH/SMESH_subMesh.hxx index 6eef7e59d..3e01fccb6 100644 --- a/src/SMESH/SMESH_subMesh.hxx +++ b/src/SMESH/SMESH_subMesh.hxx @@ -210,7 +210,7 @@ public: void DumpAlgoState(bool isMain); bool ComputeStateEngine(int event); - void ComputeSubMeshStateEngine(int event); + void ComputeSubMeshStateEngine(int event, const bool includeSelf=false); bool Evaluate(MapShapeNbElems& aResMap);