0026754: Visualization - provide API to display AIS_Trihedron presentation without...
[occt.git] / src / DsgPrs / DsgPrs_MidPointPresentation.hxx
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 <Standard_Boolean.hxx>
25 class Prs3d_Presentation;
26 class gp_Ax2;
27 class gp_Pnt;
28 class gp_Circ;
29 class gp_Elips;
30
31
32
33 class DsgPrs_MidPointPresentation 
34 {
35 public:
36
37   DEFINE_STANDARD_ALLOC
38
39   
40   //! draws the representation of a MidPoint between
41   //! two vertices.
42   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);
43   
44   //! draws the representation of a MidPoint between
45   //! two lines or linear segments.
46   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);
47   
48   //! draws the representation of a MidPoint between
49   //! two entire circles or two circular arcs.
50   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);
51   
52   //! draws the representation of a MidPoint between
53   //! two entire ellipses or two elliptic arcs.
54   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);
55
56
57
58
59 protected:
60
61
62
63
64
65 private:
66
67
68
69
70
71 };
72
73
74
75
76
77
78
79 #endif // _DsgPrs_MidPointPresentation_HeaderFile