SMESHGUI_Displayer::SMESHGUI_Displayer( SalomeApp_Application* app )
: LightApp_Displayer(),
- myApp( app )
+ myApp( app ),
+ isNeedFitAll(false)
{
}
anActor = SMESH::CreateActor( entry.toUtf8().data(), true );
if( anActor )
{
+ isNeedFitAll = SMESH::NoSmeshActors();
SMESH::DisplayActor( wnd, anActor );
prs = LightApp_Displayer::buildPresentation( entry.toUtf8().data(), aViewFrame );
}
}
return res;
}
+
+void SMESHGUI_Displayer::Display( const QStringList& theList, const bool anUpdateViewer, SALOME_View* theView )
+{
+ LightApp_Displayer::Display( theList, anUpdateViewer, theView );
+
+ if (isNeedFitAll) {
+ SMESH::FitAll();
+ isNeedFitAll = false;
+ }
+}
\ No newline at end of file