1 // File: TestTopOpeDraw_DrawableP2D.cxx
2 // Created: Thu Nov 17 16:42:42 1994
3 // Author: Jean Yves LEBEY
6 #include <TestTopOpeDraw_DrawableP2D.ixx>
8 //=======================================================================
9 //function : TestTopOpeDraw_DrawableP2D
11 //=======================================================================
13 TestTopOpeDraw_DrawableP2D::TestTopOpeDraw_DrawableP2D
15 const Draw_Color& PColor,
16 const Standard_Real MoveX,
17 const Standard_Real MoveY) :
18 Draw_Marker2D(P,Draw_Square,PColor,2), // Size
25 myText2D = new Draw_Text2D(myPnt2d,myText,myTextColor,(Standard_Integer)myMoveX,(Standard_Integer)myMoveY);
28 //=======================================================================
29 //function : TestTopOpeDraw_DrawableP2D
31 //=======================================================================
33 TestTopOpeDraw_DrawableP2D::TestTopOpeDraw_DrawableP2D
34 (const gp_Pnt2d& P,const Draw_Color& PColor,
35 const Standard_CString Text,const Draw_Color& TextColor,
36 const Standard_Real MoveX,
37 const Standard_Real MoveY) :
38 Draw_Marker2D(P,Draw_Square,PColor,2), // Size
41 myTextColor(TextColor),
45 myText2D = new Draw_Text2D(myPnt2d,myText,myTextColor,(Standard_Integer)myMoveX,(Standard_Integer)myMoveY);
48 //=======================================================================
49 //function : TestTopOpeDraw_DrawableP2D
51 //=======================================================================
53 TestTopOpeDraw_DrawableP2D::TestTopOpeDraw_DrawableP2D
54 (const gp_Pnt2d& P,const Draw_MarkerShape T,const Draw_Color& PColor,
55 const Standard_CString Text,const Draw_Color& TextColor,
56 const Standard_Integer Size,
57 const Standard_Real MoveX,
58 const Standard_Real MoveY) :
59 Draw_Marker2D(P,T,PColor,Size),
62 myTextColor(TextColor),
66 myText2D = new Draw_Text2D(myPnt2d,myText,myTextColor,(Standard_Integer)myMoveX,(Standard_Integer)myMoveY);
69 //=======================================================================
70 //function : TestTopOpeDraw_DrawableP2D
72 //=======================================================================
74 TestTopOpeDraw_DrawableP2D::TestTopOpeDraw_DrawableP2D
75 (const gp_Pnt2d& P,const Draw_MarkerShape T,
76 const Draw_Color& PColor,const Standard_CString Text,
77 const Draw_Color& TextColor,const Standard_Real Tol,
78 const Standard_Real MoveX,const Standard_Real MoveY) :
79 Draw_Marker2D(P,T,PColor,Tol),
82 myTextColor(TextColor),
86 myText2D = new Draw_Text2D(myPnt2d,myText,myTextColor,(Standard_Integer)myMoveX,(Standard_Integer)myMoveY);
89 //=======================================================================
90 //function : ChangePnt2d
92 //=======================================================================
94 void TestTopOpeDraw_DrawableP2D::ChangePnt2d(const gp_Pnt2d& P)
97 myText2D = new Draw_Text2D(myPnt2d,myText,myTextColor,(Standard_Integer)myMoveX,(Standard_Integer)myMoveY);
101 //=======================================================================
104 //=======================================================================
106 void TestTopOpeDraw_DrawableP2D::DrawOn(Draw_Display& dis) const
108 Draw_Marker2D::DrawOn(dis);
109 myText2D->DrawOn(dis);