-void HYDROGUI_Tool::GetPrsSubObjects( HYDROGUI_Module* theModule,
- HYDROData_SequenceOfObjects& theSeq )
-{
- Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( theModule->getStudyId() );
- if( !aDocument.IsNull() )
- {
- HYDROData_Iterator anIterator( aDocument );
- for( ; anIterator.More(); anIterator.Next() )
- {
- Handle(HYDROData_Entity) anObject = anIterator.Current();
- if( !anObject.IsNull() && (
- ( anObject->GetKind() == KIND_IMAGE ) ||
- ( anObject->GetKind() == KIND_POLYLINE ) ||
- ( anObject->GetKind() == KIND_IMMERSIBLE_ZONE ) ||
- ( anObject->GetKind() == KIND_REGION ) ||
- ( anObject->GetKind() == KIND_ZONE ) ) )
- {
- theSeq.Append( anObject );
- }
- }
- }
-}
+ HYDROData_SequenceOfObjects anAllRefObjects = theObj->GetAllReferenceObjects();
+ theRefObjects.Append( anAllRefObjects );