-// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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