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

base class of ProfileFloor, ProfileWall and ProfileNull. contains the profile information and can calculate matrix to transform point to 2D plane
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_appCreator Autodesk.Revit.Creation.Application
m_commandData Autodesk.Revit.UI.ExternalCommandData
m_docCreator Autodesk.Revit.Creation.Document
m_moveToCenterMatrix Matrix4
m_points List>
m_restoreMatrix Matrix4
m_scaleMatrix Matrix4
m_sizePictureBox System.Drawing.Size
m_to2DMatrix Matrix4
m_transformMatrix Matrix4

공개 메소드들

메소드 설명
Compute3DTo2DMatrix ( ) : Matrix4

calculate the matrix used to transform 3D to 2D

ComputeScaleMatrix ( Size size ) : Matrix4

calculate the matrix use to scale

CreateOpening ( List points ) : Opening

abstract method to create Opening

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

draw profile of wall or floor in 2D

GetFaceBounds ( ) : System.Drawing.PointF[]

Get the bound of a face

GetFaceNormal ( List face ) : Vector4

Get normal of face

GetFaces ( Autodesk elem ) : List>

Get edges of element's profile

GetNeedPoints ( List faces ) : List>

Get points in first face

GetTo2DMatrix ( ) : Matrix4

Get a matrix which can transform points to 2D

ToCenterMatrix ( ) : Matrix4

Get a matrix which can move points to center

Transform2DTo3D ( Point ps ) : List

transform the point on Form to 3d world coordinate of revit

보호된 메소드들

메소드 설명
Profile ( ExternalCommandData commandData ) : System

constructor

비공개 메소드들

메소드 설명
TransformPoints ( Point pts ) : void

use matrix to transform point

메소드 상세

Compute3DTo2DMatrix() 공개 메소드

calculate the matrix used to transform 3D to 2D
public Compute3DTo2DMatrix ( ) : Matrix4
리턴 Matrix4

ComputeScaleMatrix() 공개 메소드

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

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

abstract method to create Opening
public abstract CreateOpening ( List points ) : Opening
points List points used to create Opening
리턴 Opening

Draw2D() 공개 메소드

draw profile of wall or floor in 2D
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

GetFaceBounds() 공개 메소드

Get the bound of a face
public GetFaceBounds ( ) : System.Drawing.PointF[]
리턴 System.Drawing.PointF[]

GetFaceNormal() 공개 메소드

Get normal of face
public GetFaceNormal ( List face ) : Vector4
face List edges in a face
리턴 Vector4

GetFaces() 공개 메소드

Get edges of element's profile
public GetFaces ( Autodesk elem ) : List>
elem Autodesk selected element
리턴 List>

GetNeedPoints() 공개 메소드

Get points in first face
public GetNeedPoints ( List faces ) : List>
faces List edges in all faces
리턴 List>

GetTo2DMatrix() 공개 메소드

Get a matrix which can transform points to 2D
public GetTo2DMatrix ( ) : Matrix4
리턴 Matrix4

Profile() 보호된 메소드

constructor
protected Profile ( ExternalCommandData commandData ) : System
commandData ExternalCommandData object which contains reference to Revit Application
리턴 System

ToCenterMatrix() 공개 메소드

Get a matrix which can move points to center
public ToCenterMatrix ( ) : Matrix4
리턴 Matrix4

Transform2DTo3D() 공개 메소드

transform the point on Form to 3d world coordinate of revit
public Transform2DTo3D ( Point ps ) : List
ps System.Drawing.Point contain the points to be transformed
리턴 List

프로퍼티 상세

m_appCreator 보호되어 있는 프로퍼티

protected Autodesk.Revit.Creation.Application m_appCreator
리턴 Autodesk.Revit.Creation.Application

m_commandData 보호되어 있는 프로퍼티

protected ExternalCommandData,Autodesk.Revit.UI m_commandData
리턴 Autodesk.Revit.UI.ExternalCommandData

m_docCreator 보호되어 있는 프로퍼티

protected Autodesk.Revit.Creation.Document m_docCreator
리턴 Autodesk.Revit.Creation.Document

m_moveToCenterMatrix 보호되어 있는 프로퍼티

protected Matrix4,Revit.SDK.Samples.ShaftHolePuncher.CS m_moveToCenterMatrix
리턴 Matrix4

m_points 보호되어 있는 프로퍼티

protected List> m_points
리턴 List>

m_restoreMatrix 보호되어 있는 프로퍼티

protected Matrix4,Revit.SDK.Samples.ShaftHolePuncher.CS m_restoreMatrix
리턴 Matrix4

m_scaleMatrix 보호되어 있는 프로퍼티

protected Matrix4,Revit.SDK.Samples.ShaftHolePuncher.CS m_scaleMatrix
리턴 Matrix4

m_sizePictureBox 보호되어 있는 프로퍼티

protected Size,System.Drawing m_sizePictureBox
리턴 System.Drawing.Size

m_to2DMatrix 보호되어 있는 프로퍼티

protected Matrix4,Revit.SDK.Samples.ShaftHolePuncher.CS m_to2DMatrix
리턴 Matrix4

m_transformMatrix 보호되어 있는 프로퍼티

protected Matrix4,Revit.SDK.Samples.ShaftHolePuncher.CS m_transformMatrix
리턴 Matrix4