C# 클래스 Revit.SDK.Samples.ShaftHolePuncher.CS.ITool

Abstract class used as a base class of all drawing tool class
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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