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

ProfileNull class contains method to draw a coordinate system, and contains method used to create Shaft Opening
상속: Profile
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
Compute3DTo2DMatrix ( ) : Matrix4

calculate the matrix used to transform 3D to 2D. because profile of shaft opening in Revit is 2d too, so we need do nothing but new a matrix

ComputeScaleMatrix ( Size size ) : Matrix4

calculate the matrix for scale

CreateOpening ( List points ) : Opening

Create Shaft Opening

Draw2D ( Graphics graphics, Pen pen, Matrix4 matrix4 ) : void

draw the coordinate system

ProfileNull ( ExternalCommandData commandData ) : System

constructor

Transform2DTo3D ( Point ps ) : List

move the points to the center and scale as user selected. profile of shaft opening in Revit is 2d too, so don't need transform points to 2d

비공개 메소드들

메소드 설명
GetLevels ( ) : void

get level1 and level2 used to create shaft opening

메소드 상세

Compute3DTo2DMatrix() 공개 메소드

calculate the matrix used to transform 3D to 2D. because profile of shaft opening in Revit is 2d too, so we need do nothing but new a matrix
public Compute3DTo2DMatrix ( ) : Matrix4
리턴 Matrix4

ComputeScaleMatrix() 공개 메소드

calculate the matrix for scale
public ComputeScaleMatrix ( Size size ) : Matrix4
size System.Drawing.Size pictureBox size
리턴 Matrix4

CreateOpening() 공개 메소드

Create Shaft Opening
public CreateOpening ( List points ) : Opening
points List points used to create Opening
리턴 Opening

Draw2D() 공개 메소드

draw the coordinate system
public Draw2D ( Graphics graphics, Pen pen, Matrix4 matrix4 ) : void
graphics System.Drawing.Graphics form graphic
pen System.Drawing.Pen pen used to draw line in pictureBox
matrix4 Matrix4 Matrix used to transform 3d to 2d /// and make picture in right scale
리턴 void

ProfileNull() 공개 메소드

constructor
public ProfileNull ( ExternalCommandData commandData ) : System
commandData ExternalCommandData object which contains reference of Revit Application
리턴 System

Transform2DTo3D() 공개 메소드

move the points to the center and scale as user selected. profile of shaft opening in Revit is 2d too, so don't need transform points to 2d
public Transform2DTo3D ( Point ps ) : List
ps System.Drawing.Point contain the points to be transformed
리턴 List