프로퍼티 | 타입 | 설명 | |
---|---|---|---|
m_backGroundPen | |||
m_finished | bool | ||
m_foreGroundPen | |||
m_points | List |
||
m_preDownPoint | Point | ||
m_preMovePoint | Point |
메소드 | 설명 | |
---|---|---|
Clear ( ) : void |
clear all the points in the tool
|
|
Draw ( |
draw the stored lines
|
|
GetDistance ( Point p1, Point p2 ) : double |
calculate the distance between two points
|
|
ITool ( ) : System |
default constructor
|
|
OnMouseDown ( System e ) : void |
record the location point where mouse clicked
|
|
OnMouseMove ( System graphic, System e ) : void |
draw a line from end point to the location where mouse moved
|
public Draw ( |
||
graphic | Graphics object, used to draw geometry | |
리턴 | void |
public GetDistance ( Point p1, Point p2 ) : double | ||
p1 | Point | first point |
p2 | Point | second point |
리턴 | double |
public OnMouseMove ( System graphic, System e ) : void | ||
graphic | System | Graphics object,used to draw geometry |
e | System | mouse event args |
리턴 | void |