From: asl Date: Thu, 9 Nov 2017 09:33:11 +0000 (+0300) Subject: refs #1389: fit on selected polyline with arrow X-Git-Tag: v2.1~42^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=07a9e6b30772f06bde9c1b09b5233427031814d3;p=modules%2Fhydro.git refs #1389: fit on selected polyline with arrow --- diff --git a/src/HYDROGUI/HYDROGUI_Polyline.cxx b/src/HYDROGUI/HYDROGUI_Polyline.cxx index 035e0ca3..edc05ccc 100644 --- a/src/HYDROGUI/HYDROGUI_Polyline.cxx +++ b/src/HYDROGUI/HYDROGUI_Polyline.cxx @@ -178,6 +178,11 @@ void HYDROGUI_Arrow::SetSize( int theSize ) mySize = qMax( theSize, 0 ); } +void HYDROGUI_Arrow::BoundingBox (Bnd_Box& theBndBox) +{ + //Nothing to change, we consider arrow as object with empty bounding box +} + void HYDROGUI_Arrow::Compute( const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, const Handle(Prs3d_Presentation)& aPrs, const Standard_Integer aMode ) diff --git a/src/HYDROGUI/HYDROGUI_Polyline.h b/src/HYDROGUI/HYDROGUI_Polyline.h index ca41ae7c..06f2ec44 100644 --- a/src/HYDROGUI/HYDROGUI_Polyline.h +++ b/src/HYDROGUI/HYDROGUI_Polyline.h @@ -55,6 +55,8 @@ public: const Handle(Prs3d_Presentation)& aPresentation, const Standard_Integer aMode = 0 ); + virtual void BoundingBox (Bnd_Box& theBndBox) override; + Type GetType() const; void SetType( Type );