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 )
case KIND_IMAGE:
aDriver = new HYDROGUI_PrsImageDriver();
break;
- case KIND_POLYLINE:
+ case KIND_POLYLINEXY:
aDriver = new HYDROGUI_PrsPolylineDriver();
break;
case KIND_ZONE:
return aDriver;
}
+
+QString HYDROGUI_Displayer::GetType() const
+{
+ return GraphicsView_Viewer::Type();
+}