From: eap Date: Tue, 27 May 2008 06:17:13 +0000 (+0000) Subject: PAL19802 A "Clear Mesh data" method for SMESH.Mesh objects X-Git-Tag: V4_1_3rc1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2637a98e56b95d78353b25be1961b5c672bae055;p=modules%2Fsmesh.git PAL19802 A "Clear Mesh data" method for SMESH.Mesh objects hide groups and submeshes --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 45044586b..d41fd1d59 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -2165,6 +2165,14 @@ bool SMESHGUI::OnGUIEvent( int theCommandID ) aMesh->Clear(); _PTR(SObject) aMeshSObj = SMESH::FindSObject(aMesh); SMESH::ModifiedMesh( aMeshSObj, false, true); + // hide groups and submeshes + _PTR(ChildIterator) anIter = + SMESH::GetActiveStudyDocument()->NewChildIterator( aMeshSObj ); + for ( anIter->InitEx(true); anIter->More(); anIter->Next() ) + { + _PTR(SObject) so = anIter->Value(); + SMESH::UpdateView(SMESH::eErase, so->GetID().c_str()); + } } catch (const SALOME::SALOME_Exception& S_ex){ wc.suspend();