summaryrefslogtreecommitdiff
path: root/src/TestTopOpeDraw/TestTopOpeDraw_DrawableP3D.cxx
blob: c41eaa7645ce3d461fc36e2d65deb50621d80d5d (plain)
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
111
// File:	TestTopOpeDraw_DrawableP3D.cxx
// Created:	Thu Nov 17 16:42:42 1994
// Author:	Jean Yves LEBEY
//		<jyl@bravox>

#include <TestTopOpeDraw_DrawableP3D.ixx>

//=======================================================================
//function : TestTopOpeDraw_DrawableP3D
//purpose  : 
//=======================================================================

TestTopOpeDraw_DrawableP3D::TestTopOpeDraw_DrawableP3D 
(const gp_Pnt& P,
 const Draw_Color& PColor,
 const Standard_Real MoveX,
 const Standard_Real MoveY) :
 Draw_Marker3D(P,Draw_Square,PColor,2), // Size
 myPnt(P),
 myText(" "),
 myTextColor(PColor),
 myMoveX(MoveX),
 myMoveY(MoveY)
{
  myText3D = new Draw_Text3D(myPnt,myText,myTextColor, myMoveX, myMoveY);
}

//=======================================================================
//function : TestTopOpeDraw_DrawableP3D
//purpose  : 
//=======================================================================

TestTopOpeDraw_DrawableP3D::TestTopOpeDraw_DrawableP3D 
(const gp_Pnt& P, const Draw_Color& PColor,
 const Standard_CString Text, const Draw_Color& TextColor,
 const Standard_Real MoveX,
 const Standard_Real MoveY) :
 Draw_Marker3D(P,Draw_Square,PColor,2), // Size
 myPnt(P),
 myText(Text),
 myTextColor(TextColor),
 myMoveX(MoveX),
 myMoveY(MoveY)
{
  myText3D = new Draw_Text3D(myPnt,myText,myTextColor, myMoveX, myMoveY);
}

//=======================================================================
//function : TestTopOpeDraw_DrawableP3D
//purpose  : 
//=======================================================================

TestTopOpeDraw_DrawableP3D::TestTopOpeDraw_DrawableP3D 
(const gp_Pnt& 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_Marker3D(P,T,PColor,Size),
 myPnt(P),
 myText(Text),
 myTextColor(TextColor),
 myMoveX(MoveX),
 myMoveY(MoveY)
{
  myText3D = new Draw_Text3D(myPnt,myText,myTextColor, myMoveX, myMoveY);
}

//=======================================================================
//function : TestTopOpeDraw_DrawableP3D
//purpose  : 
//=======================================================================

TestTopOpeDraw_DrawableP3D::TestTopOpeDraw_DrawableP3D 
(const gp_Pnt& 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_Marker3D(P, T, PColor, Tol),
 myPnt(P),
 myText(Text),
 myTextColor(TextColor),
 myMoveX(MoveX),
 myMoveY(MoveY)
{
  myText3D = new Draw_Text3D(myPnt,myText,myTextColor, myMoveX, myMoveY);
}

//=======================================================================
//function : ChangePnt
//purpose  : 
//=======================================================================

void TestTopOpeDraw_DrawableP3D::ChangePnt(const gp_Pnt& P)
{
  myPnt = P;
  myText3D = new Draw_Text3D(myPnt, myText, myTextColor, myMoveX, myMoveY);
  ChangePos() = P;
  
}

//=======================================================================
//function : DrawOn
//purpose  : 
//=======================================================================

void  TestTopOpeDraw_DrawableP3D::DrawOn(Draw_Display& dis) const
{
  Draw_Marker3D::DrawOn(dis);
  myText3D->DrawOn(dis);
}