C# Class Revit.SDK.Samples.NewOpenings.CS.CircleTool

Tool used to draw circle
Inheritance: ITool
Mostrar archivo Open project: AMEE/revit

Public Methods

Method Description
CircleTool ( ) : System

Default constructor

Draw ( Graphics graphic ) : void

Draw circles contained in the tool

OnMouseDown ( Graphics graphic, MouseEventArgs e ) : void

Mouse down event handler

OnMouseMove ( Graphics graphic, MouseEventArgs e ) : void

Mouse move event handler

OnMouseUp ( Graphics graphic, MouseEventArgs e ) : void

Mouse up event handler

Private Methods

Method Description
DrawCircle ( Graphics graphics, Pen pen, Point pCenter, Point pBound ) : void

Draw circle with center and one point on circle

Method Details

CircleTool() public method

Default constructor
public CircleTool ( ) : System
return System

Draw() public method

Draw circles contained in the tool
public Draw ( Graphics graphic ) : void
graphic System.Drawing.Graphics
return void

OnMouseDown() public method

Mouse down event handler
public OnMouseDown ( Graphics graphic, MouseEventArgs e ) : void
graphic System.Drawing.Graphics Graphics object, used to draw geometry
e MouseEventArgs Mouse event argument
return void

OnMouseMove() public method

Mouse move event handler
public OnMouseMove ( Graphics graphic, MouseEventArgs e ) : void
graphic System.Drawing.Graphics Graphics object, used to draw geometry
e MouseEventArgs Mouse event argument
return void

OnMouseUp() public method

Mouse up event handler
public OnMouseUp ( Graphics graphic, MouseEventArgs e ) : void
graphic System.Drawing.Graphics Graphics object, used to draw geometry
e MouseEventArgs Mouse event argument
return void