From 07a9e6b30772f06bde9c1b09b5233427031814d3 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 9 Nov 2017 12:33:11 +0300 Subject: [PATCH] refs #1389: fit on selected polyline with arrow --- src/HYDROGUI/HYDROGUI_Polyline.cxx | 5 +++++ src/HYDROGUI/HYDROGUI_Polyline.h | 2 ++ 2 files changed, 7 insertions(+) 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 ); -- 2.39.2