Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:25

0001 // Created on: 2000-10-20
0002 // Created by: Julia DOROVSKIKH
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _DsgPrs_MidPointPresentation_HeaderFile
0017 #define _DsgPrs_MidPointPresentation_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 
0022 #include <Prs3d_Drawer.hxx>
0023 #include <Prs3d_Presentation.hxx>
0024 
0025 class gp_Ax2;
0026 class gp_Pnt;
0027 class gp_Circ;
0028 class gp_Elips;
0029 
0030 class DsgPrs_MidPointPresentation 
0031 {
0032 public:
0033 
0034   DEFINE_STANDARD_ALLOC
0035 
0036   
0037   //! draws the representation of a MidPoint between
0038   //! two vertices.
0039   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);
0040   
0041   //! draws the representation of a MidPoint between
0042   //! two lines or linear segments.
0043   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);
0044   
0045   //! draws the representation of a MidPoint between
0046   //! two entire circles or two circular arcs.
0047   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);
0048   
0049   //! draws the representation of a MidPoint between
0050   //! two entire ellipses or two elliptic arcs.
0051   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);
0052 
0053 
0054 
0055 
0056 protected:
0057 
0058 
0059 
0060 
0061 
0062 private:
0063 
0064 
0065 
0066 
0067 
0068 };
0069 
0070 
0071 
0072 
0073 
0074 
0075 
0076 #endif // _DsgPrs_MidPointPresentation_HeaderFile