C# Класс Revit.SDK.Samples.ShaftHolePuncher.CS.ITool

Abstract class used as a base class of all drawing tool class
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_backGroundPen System.Drawing.Pen
m_finished bool
m_foreGroundPen System.Drawing.Pen
m_points List
m_preDownPoint Point
m_preMovePoint Point

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

Метод Описание
Clear ( ) : void

clear all the points in the tool

Draw ( Graphics graphic ) : void

draw the stored lines

GetDistance ( Point p1, Point p2 ) : double

calculate the distance between two points

ITool ( ) : System

default constructor

OnMouseDown ( System e ) : void

record the location point where mouse clicked

OnMouseMove ( System graphic, System e ) : void

draw a line from end point to the location where mouse moved

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

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

clear all the points in the tool
public Clear ( ) : void
Результат void

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

draw the stored lines
public Draw ( Graphics graphic ) : void
graphic System.Drawing.Graphics Graphics object, used to draw geometry
Результат void

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

calculate the distance between two points
public GetDistance ( Point p1, Point p2 ) : double
p1 Point first point
p2 Point second point
Результат double

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

default constructor
public ITool ( ) : System
Результат System

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

record the location point where mouse clicked
public OnMouseDown ( System e ) : void
e System mouse event args
Результат void

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

draw a line from end point to the location where mouse moved
public OnMouseMove ( System graphic, System e ) : void
graphic System Graphics object,used to draw geometry
e System mouse event args
Результат void

Описание свойств

m_backGroundPen защищенное свойство

protected Pen,System.Drawing m_backGroundPen
Результат System.Drawing.Pen

m_finished защищенное свойство

protected bool m_finished
Результат bool

m_foreGroundPen защищенное свойство

protected Pen,System.Drawing m_foreGroundPen
Результат System.Drawing.Pen

m_points защищенное свойство

protected List m_points
Результат List

m_preDownPoint защищенное свойство

protected Point m_preDownPoint
Результат Point

m_preMovePoint защищенное свойство

protected Point m_preMovePoint
Результат Point