1 // Created on: 2000-10-20 2 // Created by: Julia DOROVSKIKH 3 // Copyright (c) 2000-2014 OPEN CASCADE SAS 4 // 5 // This file is part of Open CASCADE Technology software library. 6 // 7 // This library is free software; you can redistribute it and/or modify it under 8 // the terms of the GNU Lesser General Public License version 2.1 as published 9 // by the Free Software Foundation, with special exception defined in the file 10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 11 // distribution for complete text of the license and disclaimer of any warranty. 12 // 13 // Alternatively, this file may be used under the terms of Open CASCADE 14 // commercial license or contractual agreement. 15 16 #ifndef _DsgPrs_MidPointPresentation_HeaderFile 17 #define _DsgPrs_MidPointPresentation_HeaderFile 18 19 #include <Standard.hxx> 20 #include <Standard_DefineAlloc.hxx> 21 #include <Standard_Handle.hxx> 22 23 #include <Prs3d_Drawer.hxx> 24 #include <Prs3d_Presentation.hxx> 25 26 class gp_Ax2; 27 class gp_Pnt; 28 class gp_Circ; 29 class gp_Elips; 30 31 class DsgPrs_MidPointPresentation 32 { 33 public: 34 35 DEFINE_STANDARD_ALLOC 36 37 38 //! draws the representation of a MidPoint between 39 //! two vertices. 40 Standard_EXPORT static void Add (const Handle(Prs3d_Presentation)& aPresentation, const Handle(Prs3d_Drawer)& aDrawer, const gp_Ax2& theAxe, const gp_Pnt& MidPoint, const gp_Pnt& Position, const gp_Pnt& AttachPoint, const Standard_Boolean first); 41 42 //! draws the representation of a MidPoint between 43 //! two lines or linear segments. 44 Standard_EXPORT static void Add (const Handle(Prs3d_Presentation)& aPresentation, const Handle(Prs3d_Drawer)& aDrawer, const gp_Ax2& theAxe, const gp_Pnt& MidPoint, const gp_Pnt& Position, const gp_Pnt& AttachPoint, const gp_Pnt& Point1, const gp_Pnt& Point2, const Standard_Boolean first); 45 46 //! draws the representation of a MidPoint between 47 //! two entire circles or two circular arcs. 48 Standard_EXPORT static void Add (const Handle(Prs3d_Presentation)& aPresentation, const Handle(Prs3d_Drawer)& aDrawer, const gp_Circ& aCircle, const gp_Pnt& MidPoint, const gp_Pnt& Position, const gp_Pnt& AttachPoint, const gp_Pnt& Point1, const gp_Pnt& Point2, const Standard_Boolean first); 49 50 //! draws the representation of a MidPoint between 51 //! two entire ellipses or two elliptic arcs. 52 Standard_EXPORT static void Add (const Handle(Prs3d_Presentation)& aPresentation, const Handle(Prs3d_Drawer)& aDrawer, const gp_Elips& anElips, const gp_Pnt& MidPoint, const gp_Pnt& Position, const gp_Pnt& AttachPoint, const gp_Pnt& Point1, const gp_Pnt& Point2, const Standard_Boolean first); 53 54 55 56 57 protected: 58 59 60 61 62 63 private: 64 65 66 67 68 69 }; 70 71 72 73 74 75 76 77 #endif // _DsgPrs_MidPointPresentation_HeaderFile 78