C# Class Revit.SDK.Samples.NewPathReinforcement.CS.LineTool

tool used to draw line
显示文件 Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
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

Method Details

Clear() public method

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

Draw() public method

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

GetPoints() public method

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

LineTool() public method

default constructor
public LineTool ( ) : System
return System

OnMouseDown() public method

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

OnMouseMove() public method

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
return void