C# Класс Revit.SDK.Samples.NewOpenings.CS.CircleTool

Tool used to draw circle
Наследование: ITool
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
DrawCircle ( Graphics graphics, Pen pen, Point pCenter, Point pBound ) : void

Draw circle with center and one point on circle

Описание методов

CircleTool() публичный Метод

Default constructor
public CircleTool ( ) : System
Результат System

Draw() публичный Метод

Draw circles contained in the tool
public Draw ( Graphics graphic ) : void
graphic System.Drawing.Graphics
Результат void

OnMouseDown() публичный Метод

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
Результат void

OnMouseMove() публичный Метод

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
Результат void

OnMouseUp() публичный Метод

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
Результат void