Property | Type | Description | |
---|---|---|---|
m_backGroundPen | |||
m_finished | bool | ||
m_foreGroundPen | |||
m_points | List |
||
m_preDownPoint | Point | ||
m_preMovePoint | Point |
Method | Description | |
---|---|---|
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 | |
return | void |
public GetDistance ( Point p1, Point p2 ) : double | ||
p1 | Point | first point |
p2 | Point | second point |
return | double |
public OnMouseDown ( System e ) : void | ||
e | System | mouse event args |
return | void |
public OnMouseMove ( System graphic, System e ) : void | ||
graphic | System | Graphics object,used to draw geometry |
e | System | mouse event args |
return | void |
protected Pen,System.Drawing m_backGroundPen | ||
return |
protected Pen,System.Drawing m_foreGroundPen | ||
return |