1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
// File: TestTopOpeDraw_DrawableP2D.cxx
// Created: Thu Nov 17 16:42:42 1994
// Author: Jean Yves LEBEY
// <jyl@bravox>
#include <TestTopOpeDraw_DrawableP2D.ixx>
//=======================================================================
//function : TestTopOpeDraw_DrawableP2D
//purpose :
//=======================================================================
TestTopOpeDraw_DrawableP2D::TestTopOpeDraw_DrawableP2D
(const gp_Pnt2d& P,
const Draw_Color& PColor,
const Standard_Real MoveX,
const Standard_Real MoveY) :
Draw_Marker2D(P,Draw_Square,PColor,2), // Size
myPnt2d(P),
myText(" "),
myTextColor(PColor),
myMoveX(MoveX),
myMoveY(MoveY)
{
myText2D = new Draw_Text2D(myPnt2d,myText,myTextColor,(Standard_Integer)myMoveX,(Standard_Integer)myMoveY);
}
//=======================================================================
//function : TestTopOpeDraw_DrawableP2D
//purpose :
//=======================================================================
TestTopOpeDraw_DrawableP2D::TestTopOpeDraw_DrawableP2D
(const gp_Pnt2d& P,const Draw_Color& PColor,
const Standard_CString Text,const Draw_Color& TextColor,
const Standard_Real MoveX,
const Standard_Real MoveY) :
Draw_Marker2D(P,Draw_Square,PColor,2), // Size
myPnt2d(P),
myText(Text),
myTextColor(TextColor),
myMoveX(MoveX),
myMoveY(MoveY)
{
myText2D = new Draw_Text2D(myPnt2d,myText,myTextColor,(Standard_Integer)myMoveX,(Standard_Integer)myMoveY);
}
//=======================================================================
//function : TestTopOpeDraw_DrawableP2D
//purpose :
//=======================================================================
TestTopOpeDraw_DrawableP2D::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,
const Standard_Real MoveX,
const Standard_Real MoveY) :
Draw_Marker2D(P,T,PColor,Size),
myPnt2d(P),
myText(Text),
myTextColor(TextColor),
myMoveX(MoveX),
myMoveY(MoveY)
{
myText2D = new Draw_Text2D(myPnt2d,myText,myTextColor,(Standard_Integer)myMoveX,(Standard_Integer)myMoveY);
}
//=======================================================================
//function : TestTopOpeDraw_DrawableP2D
//purpose :
//=======================================================================
TestTopOpeDraw_DrawableP2D::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,const Standard_Real MoveY) :
Draw_Marker2D(P,T,PColor,Tol),
myPnt2d(P),
myText(Text),
myTextColor(TextColor),
myMoveX(MoveX),
myMoveY(MoveY)
{
myText2D = new Draw_Text2D(myPnt2d,myText,myTextColor,(Standard_Integer)myMoveX,(Standard_Integer)myMoveY);
}
//=======================================================================
//function : ChangePnt2d
//purpose :
//=======================================================================
void TestTopOpeDraw_DrawableP2D::ChangePnt2d(const gp_Pnt2d& P)
{
myPnt2d = P;
myText2D = new Draw_Text2D(myPnt2d,myText,myTextColor,(Standard_Integer)myMoveX,(Standard_Integer)myMoveY);
ChangePos() = P;
}
//=======================================================================
//function : DrawOn
//purpose :
//=======================================================================
void TestTopOpeDraw_DrawableP2D::DrawOn(Draw_Display& dis) const
{
Draw_Marker2D::DrawOn(dis);
myText2D->DrawOn(dis);
}
|