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

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

보호된 프로퍼티들

프로퍼티 타입 설명
m_backGroundPen System.Drawing.Pen
m_foreGroundPen System.Drawing.Pen
m_lines List>
m_points List
m_preMovePoint Point
m_type ToolType

공개 메소드들

메소드 설명
Draw ( Graphics graphic ) : void

Draw geometries contained in the tool. which class derived from this class must implement this abstract method

GetLines ( ) : List>

Get all lines drawn in pictureBox

ITool ( ) : System

Default constructor

OnMidMouseDown ( Graphics graphic, MouseEventArgs e ) : void

Mouse middle key down event handler

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

OnRightMouseClick ( Graphics graphic, MouseEventArgs e ) : void

Right mouse click event handler

메소드 상세

Draw() 공개 추상적인 메소드

Draw geometries contained in the tool. which class derived from this class must implement this abstract method
public abstract Draw ( Graphics graphic ) : void
graphic System.Drawing.Graphics Graphics object, used to draw geometry
리턴 void

GetLines() 공개 메소드

Get all lines drawn in pictureBox
public GetLines ( ) : List>
리턴 List>

ITool() 공개 메소드

Default constructor
public ITool ( ) : System
리턴 System

OnMidMouseDown() 공개 메소드

Mouse middle key down event handler
public OnMidMouseDown ( Graphics graphic, MouseEventArgs e ) : void
graphic System.Drawing.Graphics Graphics object, used to draw geometry
e MouseEventArgs Mouse event argument
리턴 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

OnRightMouseClick() 공개 메소드

Right mouse click event handler
public OnRightMouseClick ( Graphics graphic, MouseEventArgs e ) : void
graphic System.Drawing.Graphics Graphics object, used to draw geometry
e MouseEventArgs Mouse event argument
리턴 void

프로퍼티 상세

m_backGroundPen 보호되어 있는 프로퍼티

Background pen used to erase the preview line
protected Pen,System.Drawing m_backGroundPen
리턴 System.Drawing.Pen

m_foreGroundPen 보호되어 있는 프로퍼티

Foreground pen used to draw lines
protected Pen,System.Drawing m_foreGroundPen
리턴 System.Drawing.Pen

m_lines 보호되어 있는 프로퍼티

Field used to store lines
protected List> m_lines
리턴 List>

m_points 보호되어 있는 프로퍼티

Field used to store points of a line
protected List m_points
리턴 List

m_preMovePoint 보호되어 있는 프로퍼티

Store the mouse position when mouse move in pictureBox
protected Point m_preMovePoint
리턴 Point

m_type 보호되어 있는 프로퍼티

ToolType is enum type indicate draw tools.
protected ToolType m_type
리턴 ToolType