mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
PAL10810 - "Display", "Erase", "Display only" on root objects
This commit is contained in:
parent
f978efce3f
commit
bfcd70d78a
@ -1176,39 +1176,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
if( theCommandID==302 )
|
if( theCommandID==302 )
|
||||||
startOperation( myEraseAll );
|
startOperation( myEraseAll );
|
||||||
|
|
||||||
SALOME_ListIteratorOfListIO anIt( sel_objects );
|
extractContainers( sel_objects, to_process );
|
||||||
for( ; anIt.More(); anIt.Next() )
|
|
||||||
{
|
|
||||||
Handle( SALOME_InteractiveObject ) obj = anIt.Value();
|
|
||||||
if( obj->hasEntry() )
|
|
||||||
{
|
|
||||||
_PTR(SObject) SO = activeStudy()->studyDS()->FindObjectID( obj->getEntry() );
|
|
||||||
if( SO && QString( SO->GetID().c_str() ) == SO->GetFatherComponent()->GetID().c_str() )
|
|
||||||
{ //component is selected
|
|
||||||
_PTR(SComponent) SC( SO->GetFatherComponent() );
|
|
||||||
_PTR(ChildIterator) anIter ( activeStudy()->studyDS()->NewChildIterator( SC ) );
|
|
||||||
anIter->InitEx( true );
|
|
||||||
while( anIter->More() )
|
|
||||||
{
|
|
||||||
_PTR(SObject) valSO ( anIter->Value() );
|
|
||||||
_PTR(SObject) refSO;
|
|
||||||
if( !valSO->ReferencedObject( refSO ) )
|
|
||||||
{
|
|
||||||
QString id = valSO->GetID().c_str(),
|
|
||||||
comp = SC->ComponentDataType().c_str(),
|
|
||||||
val = valSO->GetName().c_str();
|
|
||||||
|
|
||||||
Handle( SALOME_InteractiveObject ) new_obj =
|
|
||||||
new SALOME_InteractiveObject( id.latin1(), comp.latin1(), val.latin1() );
|
|
||||||
to_process.Append( new_obj );
|
|
||||||
}
|
|
||||||
anIter->Next();
|
|
||||||
}
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
to_process.Append( obj );
|
|
||||||
}
|
|
||||||
|
|
||||||
if (vtkwnd) {
|
if (vtkwnd) {
|
||||||
SALOME_ListIteratorOfListIO It( to_process );
|
SALOME_ListIteratorOfListIO It( to_process );
|
||||||
|
@ -61,6 +61,7 @@ LIB_CLIENT_IDL = \
|
|||||||
## pb in dependencies search
|
## pb in dependencies search
|
||||||
LIB_CLIENT_IDL += \
|
LIB_CLIENT_IDL += \
|
||||||
SALOME_GenericObj.idl \
|
SALOME_GenericObj.idl \
|
||||||
|
SALOME_ContainerManager.idl \
|
||||||
SALOME_Component.idl \
|
SALOME_Component.idl \
|
||||||
GEOM_Gen.idl
|
GEOM_Gen.idl
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user