]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
small improvement of API
authoreap <eap@opencascade.com>
Tue, 24 Apr 2012 14:29:10 +0000 (14:29 +0000)
committereap <eap@opencascade.com>
Tue, 24 Apr 2012 14:29:10 +0000 (14:29 +0000)
-  void ComputeSubMeshStateEngine(int event);
+  void ComputeSubMeshStateEngine(int event, const bool includeSelf=false);

src/SMESH/SMESH_subMesh.cxx
src/SMESH/SMESH_subMesh.hxx

index 2c6e5e7e0e16a03faf56a96325bfb852efa987bc..af4e614a8706ebb1f26b2a2500b10607ab893db9 100644 (file)
@@ -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);
 }
index 6eef7e59d42cdf138a5e83dc483c62ce171a0cd0..3e01fccb6611b8d351b25b76c832206a37a0e24a 100644 (file)
@@ -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);