0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / TestTopOpeDraw / TestTopOpeDraw_DrawableP2D.hxx
1 // Created on: 1994-10-24
2 // Created by: Jean Yves LEBEY
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _TestTopOpeDraw_DrawableP2D_HeaderFile
18 #define _TestTopOpeDraw_DrawableP2D_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <gp_Pnt2d.hxx>
24 #include <Standard_CString.hxx>
25 #include <Draw_Color.hxx>
26 #include <Standard_Real.hxx>
27 #include <Draw_Marker2D.hxx>
28 #include <Draw_MarkerShape.hxx>
29 #include <Standard_Integer.hxx>
30 class Draw_Text2D;
31 class gp_Pnt2d;
32 class Draw_Color;
33 class Draw_Display;
34
35
36 class TestTopOpeDraw_DrawableP2D;
37 DEFINE_STANDARD_HANDLE(TestTopOpeDraw_DrawableP2D, Draw_Marker2D)
38
39
40 class TestTopOpeDraw_DrawableP2D : public Draw_Marker2D
41 {
42
43 public:
44
45   
46   Standard_EXPORT TestTopOpeDraw_DrawableP2D(const gp_Pnt2d& P, const Draw_Color& PColor, const Standard_Real moveX = 0.0, const Standard_Real moveY = 0.0);
47   
48   Standard_EXPORT TestTopOpeDraw_DrawableP2D(const gp_Pnt2d& P, const Draw_Color& PColor, const Standard_CString Text, const Draw_Color& TextColor, const Standard_Real moveX = 0.0, const Standard_Real moveY = 0.0);
49   
50   Standard_EXPORT TestTopOpeDraw_DrawableP2D(const gp_Pnt2d& P, const Draw_MarkerShape T, const Draw_Color& PColor, const Standard_CString Text, const Draw_Color& TextColor, const Standard_Integer Size = 2, const Standard_Real moveX = 0.0, const Standard_Real moveY = 0.0);
51   
52   Standard_EXPORT TestTopOpeDraw_DrawableP2D(const gp_Pnt2d& P, const Draw_MarkerShape T, const Draw_Color& PColor, const Standard_CString Text, const Draw_Color& TextColor, const Standard_Real Tol, const Standard_Real moveX = 0.0, const Standard_Real moveY = 0.0);
53   
54   Standard_EXPORT void ChangePnt2d (const gp_Pnt2d& P);
55   
56   Standard_EXPORT virtual void DrawOn (Draw_Display& dis) const Standard_OVERRIDE;
57
58
59
60
61   DEFINE_STANDARD_RTTIEXT(TestTopOpeDraw_DrawableP2D,Draw_Marker2D)
62
63 protected:
64
65
66
67
68 private:
69
70
71   gp_Pnt2d myPnt2d;
72   Standard_CString myText;
73   Draw_Color myTextColor;
74   Standard_Real myMoveX;
75   Standard_Real myMoveY;
76   Handle(Draw_Text2D) myText2D;
77
78
79 };
80
81
82
83
84
85
86
87 #endif // _TestTopOpeDraw_DrawableP2D_HeaderFile