PAL19802 A "Clear Mesh data" method for SMESH.Mesh objects

hide groups and submeshes
This commit is contained in:
eap 2008-05-27 06:17:13 +00:00
parent a1e8ac1ffa
commit 2637a98e56

View File

@ -2165,6 +2165,14 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
aMesh->Clear(); aMesh->Clear();
_PTR(SObject) aMeshSObj = SMESH::FindSObject(aMesh); _PTR(SObject) aMeshSObj = SMESH::FindSObject(aMesh);
SMESH::ModifiedMesh( aMeshSObj, false, true); 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){ catch (const SALOME::SALOME_Exception& S_ex){
wc.suspend(); wc.suspend();