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

파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
NewOpeningsForm ( ) : System

default constructor

NewOpeningsForm ( Profile profile ) : System

constructor

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
ComputerScaleMatrix ( Size size ) : Matrix4

calculate the matrix use to scale

Comuter3DTo2DMatrix ( ) : Matrix4

Calculate the matrix use to transform 3D to 2D

GenerateCircle4Point ( List points ) : List

get four points on circle by center and one point on circle

InitTools ( ) : void

add tools, then use can draw by these tools in picture box

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OkButton_Click ( object sender, EventArgs e ) : void
TransForm2DTo3D ( Point ps ) : List

Transform the point on Form to 3d world coordinate of Revit

TransFormPoints ( Point pts ) : void

use matrix to transform point

cancelButton_Click ( object sender, EventArgs e ) : void
openingPictureBox_MouseDown ( object sender, MouseEventArgs e ) : void

mouse event handle

openingPictureBox_MouseMove ( object sender, MouseEventArgs e ) : void

Mouse event handle

openingPictureBox_MouseUp ( object sender, MouseEventArgs e ) : void

Mouse event handle

openingPictureBox_Paint ( object sender, PaintEventArgs e ) : void

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; /// otherwise, false.
리턴 void

NewOpeningsForm() 공개 메소드

default constructor
public NewOpeningsForm ( ) : System
리턴 System

NewOpeningsForm() 공개 메소드

constructor
public NewOpeningsForm ( Profile profile ) : System
profile Profile ProfileWall or ProfileFloor
리턴 System