From: asl Date: Mon, 30 Oct 2017 07:05:27 +0000 (+0300) Subject: bathymetry points are drawn with larger image (4x4) X-Git-Tag: v2.1~67^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5d07aa2f3d4e32c6135e43f2a173266fa31b5f62;p=modules%2Fhydro.git bathymetry points are drawn with larger image (4x4) --- diff --git a/src/HYDROGUI/HYDROGUI_BathymetryPrs.cxx b/src/HYDROGUI/HYDROGUI_BathymetryPrs.cxx index bf7f53b3..e8772e7a 100644 --- a/src/HYDROGUI/HYDROGUI_BathymetryPrs.cxx +++ b/src/HYDROGUI/HYDROGUI_BathymetryPrs.cxx @@ -17,6 +17,8 @@ // #include +#include + #include #include #include @@ -25,6 +27,10 @@ #include #include #include +#include +#include + +#include const int BATH_HIGHLIGHT_MODE = 10; @@ -126,7 +132,13 @@ void HYDROGUI_BathymetryPrs::Compute( const Handle(PrsMgr_PresentationManager3d) } else { + Handle(Graphic3d_AspectMarker3d) anAspect = new Graphic3d_AspectMarker3d( Aspect_TOM_USERDEFINED, Quantity_NOC_WHITE, 1.0 ); + QImage qtMark( 4, 4, QImage::Format_RGB888 ); + Handle(Image_PixMap) aMark = HYDROGUI_Tool::Pixmap( qtMark ); + Handle(Graphic3d_MarkerImage) gMark = new Graphic3d_MarkerImage(aMark); + anAspect->SetMarkerImage(gMark); AIS_PointCloud::Compute( thePresentationManager, thePresentation, theMode ); + aGroup->SetGroupPrimitivesAspect( anAspect ); Handle(Graphic3d_ArrayOfPoints) points = GetPoints(); if( !myTextIndices.empty() && !points.IsNull() )