From 2637a98e56b95d78353b25be1961b5c672bae055 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 27 May 2008 06:17:13 +0000 Subject: [PATCH] PAL19802 A "Clear Mesh data" method for SMESH.Mesh objects hide groups and submeshes --- src/SMESHGUI/SMESHGUI.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); -- 2.39.2