#include "HYDROGUI_Tool2.h"
#include "HYDROGUI_UpdateFlags.h"
+#include <HYDROGUI_OCCDisplayer.h>
+
#include <HYDROData_Bathymetry.h>
#include <LightApp_Application.h>
#include <SUIT_ViewManager.h>
#include <SVTK_ViewModel.h>
+#include <OCCViewer_ViewManager.h>
#include <QFileInfo>
#include <QSet>
#include <SUIT_MessageBox.h>
#include <SUIT_Desktop.h>
+#include <HYDROGUI_ShapeBathymetry.h>
HYDROGUI_ImportBathymetryOp::HYDROGUI_ImportBathymetryOp( HYDROGUI_Module* theModule,
aVTKMgr = module()->getApp()->viewManager( SVTK_Viewer::Type() );
}
}
+
+ OCCViewer_ViewManager* mgr = dynamic_cast<OCCViewer_ViewManager*>(aViewMgr);
+ OCCViewer_Viewer* occ_viewer = mgr->getOCCViewer();
+ int aViewerId = (size_t)(occ_viewer);
+
+ HYDROGUI_Shape* aObjSh = module()->getObjectShape( aViewerId, myEditedObject );
+ HYDROGUI_ShapeBathymetry* aBathSh = dynamic_cast<HYDROGUI_ShapeBathymetry*>( aObjSh );
+ if (aBathSh)
+ {
+ aBathSh->update(false, false);
+ aBathSh->RescaleDefault();
+ module()->getOCCDisplayer()->UpdateColorScale( occ_viewer );
+ }
theUpdateFlags = UF_Model | UF_OCCViewer | UF_OCC_Forced |
UF_VTKViewer | UF_VTK_Forced;