+ // for all objects
+ if( myId == ShowOnlyId || myId == ShowAllId || myId == HideAllId )
+ {
+ bool aVisibility = myId == ShowAllId;
+ HYDROData_Iterator anIterator( doc() );
+ for( ; anIterator.More(); anIterator.Next() )
+ {
+ Handle(HYDROData_Entity) anObject = anIterator.Current();
+ if( !anObject.IsNull() )
+ aModule->setObjectVisible( aViewId, anObject, aVisibility );
+ }
+
+ // For occ viewer we do the additional step to hide objects from other modules
+ if ( anOCCManager != NULL && !aVisibility )
+ LightApp_Displayer().EraseAll( true );
+ }
+
+ bool isFoundImage = false;