if( HYDROGUI_Prs* aPrs = HYDROGUI_Tool::GetPresentation( anObj, anObjectList ) )
{
aViewPort->removeItem( aPrs );
+ anObjectList.removeAll( aPrs );
delete aPrs;
}
}
void HYDROGUI_Displayer::Display( const HYDROData_SequenceOfObjects& theObjs,
const int theViewerId,
- const bool theIsForced )
+ const bool theIsForced,
+ const bool theDoFitAll)
{
GraphicsView_Viewer* aViewer = module()->getViewer( theViewerId );
if( !aViewer )
}
aViewPort->onBoundingRectChanged(); // specific of HYDRO module
- aViewPort->fitAll();
+ if ( theDoFitAll )
+ {
+ aViewPort->fitAll();
+ }
}
void HYDROGUI_Displayer::purgeObjects( const int theViewerId )
return aDriver;
}
+
+QString HYDROGUI_Displayer::GetType() const
+{
+ return GraphicsView_Viewer::Type();
+}