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

Tool used to draw circle
Inheritance: ITool
Afficher le fichier Open project: AMEE/revit

Méthodes publiques

Méthode 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

Méthode Description
DrawCircle ( Graphics graphics, Pen pen, Point pCenter, Point pBound ) : void

Draw circle with center and one point on circle

Method Details

CircleTool() public méthode

Default constructor
public CircleTool ( ) : System
Résultat System

Draw() public méthode

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

OnMouseDown() public méthode

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
Résultat void

OnMouseMove() public méthode

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
Résultat void

OnMouseUp() public méthode

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
Résultat void