- if( theViewManager )
- if( SUIT_ViewWindow* aViewWindow = theViewManager->getActiveView() )
- if( STD_TabDesktop* aTabDesktop = dynamic_cast<STD_TabDesktop*>( theModule->getApp()->desktop() ) )
- if( QtxWorkstack* aWorkstack = aTabDesktop->workstack() )
- aWorkstack->setActiveWindow( aViewWindow );
-}
-
-void HYDROGUI_Tool::GetPrsSubObjects( HYDROGUI_Module* theModule,
- HYDROData_SequenceOfObjects& theSeq )
-{
- Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( theModule->getStudyId() );
- if( aDocument.IsNull() )
- return;
-
- HYDROData_Iterator anIterator( aDocument, KIND_IMAGE );
- for( ; anIterator.More(); anIterator.Next() )
- {
- Handle(HYDROData_Object) anObject = anIterator.Current();
- if( !anObject.IsNull() )
- theSeq.Append( anObject );
- }
-
- anIterator = HYDROData_Iterator( aDocument, KIND_POLYLINE );
- for( ; anIterator.More(); anIterator.Next() )
- {
- Handle(HYDROData_Object) anObject = anIterator.Current();
- if( !anObject.IsNull() )
- theSeq.Append( anObject );
- }
-
- anIterator = HYDROData_Iterator( aDocument, KIND_ZONE );
- for( ; anIterator.More(); anIterator.Next() )
- {
- Handle(HYDROData_Object) anObject = anIterator.Current();
- if( !anObject.IsNull() )
- theSeq.Append( anObject );
- }
-}