- Handle(HYDROData_Object) anObject = anIterator.Current();
- if( !anObject.IsNull() )
- theSeq.Append( anObject );
- }
-}
-
-HYDROGUI_Prs* HYDROGUI_Tool::GetPresentation( const Handle(HYDROData_Object)& theObj,
- const GraphicsView_ObjectList& theObjects )
-{
- if( !theObj.IsNull() )
- {
- GraphicsView_ObjectListIterator anIter( theObjects );
- while( anIter.hasNext() )
- {
- if( HYDROGUI_Prs* aPrs = dynamic_cast<HYDROGUI_Prs*>( anIter.next() ) )
- {
- Handle(HYDROData_Object) anObj = aPrs->getObject();
- if( IsEqual( anObj, theObj ) )
- return aPrs;
- }
- }
- }
- return NULL;
-}
-
-GraphicsView_ObjectList HYDROGUI_Tool::GetPrsList( GraphicsView_ViewPort* theViewPort )
-{
- GraphicsView_ObjectList aList;
- if( theViewPort )
- {
- GraphicsView_ObjectListIterator anIter( theViewPort->getObjects() );
- while( anIter.hasNext() )
- if( HYDROGUI_Prs* aPrs = dynamic_cast<HYDROGUI_Prs*>( anIter.next() ) )
- aList.append( aPrs );
- }
- return aList;
-}
-
-HYDROData_SequenceOfObjects HYDROGUI_Tool::GetSelectedObjects( HYDROGUI_Module* theModule )
-{
- HYDROData_SequenceOfObjects aSeq;
+ Handle(HYDROData_Entity) aRefObj = theRefObjects.Value( i );
+ if( aRefObj.IsNull() || aRefObj->IsRemoved() )
+ continue;