]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #1389: fit on selected polyline with arrow
authorasl <asl@opencascade.com>
Thu, 9 Nov 2017 09:33:11 +0000 (12:33 +0300)
committerasl <asl@opencascade.com>
Thu, 9 Nov 2017 09:33:11 +0000 (12:33 +0300)
src/HYDROGUI/HYDROGUI_Polyline.cxx
src/HYDROGUI/HYDROGUI_Polyline.h

index 035e0ca3df1edf80d984c1fc17808bb54fa18186..edc05ccc6b6b5dda2a1f2f6d1f0587e67f59e912 100644 (file)
@@ -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 )
index ca41ae7cb827eadb74199a2b48d07e96a52f48bb..06f2ec44b88072882f1f53fa736c8cdab7c00355 100644 (file)
@@ -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 );