Integration of OCCT 6.5.0 from SVN
[occt.git] / src / Draw / Draw_Marker2D.cxx
CommitLineData
7fd59977 1// File: Draw_Marker2D.cxx
2// Created: Thu Apr 23 18:47:43 1992
3// Author: Remi LEQUETTE
4// <rle@sdsun1>
5
6
7
8#include <Draw_Marker2D.ixx>
9
10//=======================================================================
11//function : Draw_Marker2D
12//purpose :
13//=======================================================================
14
15Draw_Marker2D::Draw_Marker2D(const gp_Pnt2d& P, const Draw_MarkerShape T,
16 const Draw_Color& C, const Standard_Integer S) :
17 myPos(P), myCol(C), myTyp(T),mySiz(S)
18{
19}
20
21//=======================================================================
22//function : Draw_Marker2D
23//purpose :
24//=======================================================================
25
26Draw_Marker2D::Draw_Marker2D(const gp_Pnt2d& P, const Draw_MarkerShape T,
27 const Draw_Color& C, const Standard_Real RSize) :
28 myPos(P), myCol(C), myTyp(T), myRSiz(RSize), myIsRSiz(Standard_True)
29{
30}
31
32//=======================================================================
33//function : DrawOn
34//purpose :
35//=======================================================================
36
37void Draw_Marker2D::DrawOn(Draw_Display& D) const
38{
39 D.SetColor(myCol);
40 D.DrawMarker(myPos,myTyp,mySiz);
41}
42
43//=======================================================================
44//function : ChangePos
45//purpose :
46//=======================================================================
47
48gp_Pnt2d& Draw_Marker2D::ChangePos()
49{
50 return myPos;
51}
52
53//=======================================================================
54//function : PickReject
55//purpose :
56//=======================================================================
57
58Standard_Boolean Draw_Marker2D::PickReject(const Standard_Real,
59 const Standard_Real,
60 const Standard_Real) const
61{
62 return Standard_False;
63}
64