std::vector<TopoDS_Wire>& theWires)
{
TopoDS_Shape aShape = thePolyline->GetShape();
+ if (aShape.IsNull())
+ return;
if( aShape.ShapeType()==TopAbs_WIRE )
{
theWires.push_back( TopoDS::Wire( aShape ) );
aNObject = Handle(HYDROData_NaturalObject)::DownCast( anEntity );
if ( !aNObject.IsNull() )
createObject( aCaseNOSect, aNObject, aGuiObj->entry(), false );
- }
+ }
}
+ LightApp_DataObject* aBoundaryPolygonSect =
+ createObject( aGuiObj, tr( "CASE_BOUNDARY_POLYGONS" ), aGuiObj->entry() );
+ HYDROData_SequenceOfObjects aBCPolygons = aCaseObj->GetBoundaryPolygons();
+ for (int i = 1; i <= aBCPolygons.Size(); i++ )
+ createObject( aBoundaryPolygonSect, aBCPolygons(i), aGuiObj->entry(), false );
+
LightApp_DataObject* aLandCoverMapSect =
createObject( aGuiObj, tr( "CASE_LAND_COVER_MAP" ), aGuiObj->entry() );
#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;
<source>CASE_BOUNDARY</source>
<translation>Boundary</translation>
</message>
+ <message>
+ <source>CASE_BOUNDARY_POLYGONS</source>
+ <translation>Boundary Polygons</translation>
+ </message>
<message>
<source>CASE_REFERENCE_ZONES</source>
<translation>Reference zones</translation>
<source>STREAM_PROFILES</source>
<translation>Profiles</translation>
</message>
+ <message>
+ <source>BC_POLYGON_POLYLINE</source>
+ <translation>Boundary Polyline</translation>
+ </message>
<message>
<source>STREAM_WARNINGS</source>
<translation>Stream Warnings</translation>