#include <LightApp_SelectionMgr.h>
#include <LightApp_UpdateFlags.h>
+#include <SalomeApp_Study.h>
+
#include <OCCViewer_ViewFrame.h>
#include <OCCViewer_ViewManager.h>
#include <OCCViewer_ViewModel.h>
#include <OCCViewer_ViewPort3d.h>
#include <GEOMUtils.hxx>
+#include <GeometryGUI.h>
+
+#include <SALOMEDS_wrap.hxx>
#include <QAction>
#include <QApplication>
}
}
+ // Load GEOM data
+ SalomeApp_Study* aStudy =
+ dynamic_cast<SalomeApp_Study*>( getApp()->activeStudy() );
+ if ( aStudy ) {
+ SALOMEDS::Study_var aDSStudy = GeometryGUI::ClientStudyToStudy( aStudy->studyDS() );
+ GEOM::GEOM_Gen_var aGeomEngine = GeometryGUI::GetGeomGen();
+ if ( !aGeomEngine->_is_nil() && !aGeomEngine->_is_nil() ) {
+ SALOMEDS::StudyBuilder_var aStudyBuilder = aDSStudy->NewBuilder();
+ SALOMEDS::SComponent_wrap GEOM_var = aDSStudy->FindComponent( "GEOM" );
+ if( !GEOM_var->_is_nil() ) {
+ aStudyBuilder->LoadWith( GEOM_var, aGeomEngine );
+ }
+ }
+ }
+
return aRes;
}