C# 클래스 Revit.SDK.Samples.NewPathReinforcement.CS.LineTool

tool used to draw line
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void

clear all the points in the tool

Draw ( Graphics graphic ) : void

draw lines stored in the tool

GetPoints ( ) : List

get all lines drawn in pictureBox

LineTool ( ) : System

default constructor

OnMouseDown ( System e ) : void

restore the location point where mouse click

OnMouseMove ( System graphic, System e ) : void

draw a line from end point of tool to the location where mouse move

메소드 상세

Clear() 공개 메소드

clear all the points in the tool
public Clear ( ) : void
리턴 void

Draw() 공개 메소드

draw lines stored in the tool
public Draw ( Graphics graphic ) : void
graphic System.Drawing.Graphics Graphics object, use to draw geometry
리턴 void

GetPoints() 공개 메소드

get all lines drawn in pictureBox
public GetPoints ( ) : List
리턴 List

LineTool() 공개 메소드

default constructor
public LineTool ( ) : System
리턴 System

OnMouseDown() 공개 메소드

restore the location point where mouse click
public OnMouseDown ( System e ) : void
e System mouse event args
리턴 void

OnMouseMove() 공개 메소드

draw a line from end point of tool to the location where mouse move
public OnMouseMove ( System graphic, System e ) : void
graphic System graphic object, used to draw geometry
e System mouse event args
리턴 void