]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
bathymetry points are drawn with larger image (4x4)
authorasl <asl@opencascade.com>
Mon, 30 Oct 2017 07:05:27 +0000 (10:05 +0300)
committerasl <asl@opencascade.com>
Mon, 30 Oct 2017 07:05:27 +0000 (10:05 +0300)
src/HYDROGUI/HYDROGUI_BathymetryPrs.cxx

index bf7f53b367e5804a7c5b8e309f08fd118030f711..e8772e7a5ba1de5215efb1b1df32f82b0413ae61 100644 (file)
@@ -17,6 +17,8 @@
 //
 
 #include <HYDROGUI_BathymetryPrs.h>
+#include <HYDROGUI_Tool.h>
+
 #include <Prs3d_Root.hxx>
 #include <Prs3d_LineAspect.hxx>
 #include <Prs3d_Text.hxx>
 #include <Select3D_SensitivePoint.hxx>
 #include <Graphic3d_ArrayOfPolylines.hxx>
 #include <Graphic3d_ArrayOfPoints.hxx>
+#include <Image_PixMap.hxx>
+#include <Graphic3d_MarkerImage.hxx>
+
+#include <QImage>
 
 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() )