OCC22250 Windows lost focus with DRAWEXE launched in 'virtual windows' mode
[occt.git] / src / Draw / Draw_Text3D.cxx
1 // File:        Draw_Text3D.cxx
2 // Created:     Wed Apr 29 15:37:27 1992
3 // Author:      Remi LEQUETTE
4 //              <rle@sdsun1>
5
6
7 #include <Draw_Text3D.ixx>
8
9 //=======================================================================
10 //function : Draw_Text3D
11 //purpose  : 
12 //=======================================================================
13
14 Draw_Text3D::Draw_Text3D(const gp_Pnt& p, const Standard_CString T, 
15                          const Draw_Color& col) :
16      myPoint(p), myColor(col), myText(T), mymoveX(0.0), mymoveY(0.0)
17 {
18 }
19
20 //=======================================================================
21 //function : Draw_Text3D
22 //purpose  : 
23 //=======================================================================
24
25 Draw_Text3D::Draw_Text3D(const gp_Pnt& p, const Standard_CString T, 
26                          const Draw_Color& col,
27                          const Standard_Real moveX, const Standard_Real moveY) :
28        myPoint(p), myColor(col), myText(T), mymoveX(moveX), mymoveY(moveY)
29 {
30 }
31
32 //=======================================================================
33 //function : SetPnt
34 //purpose  : 
35 //=======================================================================
36
37 void Draw_Text3D::SetPnt(const gp_Pnt& p)
38 {
39   myPoint = p;
40 }
41
42 //=======================================================================
43 //function : DrawOn
44 //purpose  : 
45 //=======================================================================
46
47 void Draw_Text3D::DrawOn(Draw_Display& dis) const
48 {
49   dis.SetColor(myColor);
50   dis.DrawString(myPoint,myText.ToCString(),
51                  mymoveX, mymoveY);
52 }
53