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

base class of ProfileFloor and ProfileWall contains the profile information and can make 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_points List>
m_to2DMatrix Matrix4

공개 메소드들

메소드 설명
CreatePathReinforcement ( List points, bool flip ) : PathReinforcement

abstract method to create PathReinforcement

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

보호된 메소드들

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

constructor

메소드 상세

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

abstract method to create PathReinforcement
public abstract CreatePathReinforcement ( List points, bool flip ) : PathReinforcement
points List points used to create PathReinforcement
flip bool used to specify whether new PathReinforcement is Filp
리턴 PathReinforcement

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 abstract GetNeedPoints ( List faces ) : List>
faces List edges in all faces
리턴 List>

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

Get a matrix which can transform points to 2D
public abstract 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

프로퍼티 상세

m_appCreator 보호되어 있는 프로퍼티

used to create new instances of utility objects.
protected Autodesk.Revit.Creation.Application m_appCreator
리턴 Autodesk.Revit.Creation.Application

m_commandData 보호되어 있는 프로퍼티

object which contains reference to Revit Application
protected ExternalCommandData,Autodesk.Revit.UI m_commandData
리턴 Autodesk.Revit.UI.ExternalCommandData

m_docCreator 보호되어 있는 프로퍼티

used to create new instances of elements
protected Autodesk.Revit.Creation.Document m_docCreator
리턴 Autodesk.Revit.Creation.Document

m_points 보호되어 있는 프로퍼티

store all the points on the needed face
protected List> m_points
리턴 List>

m_to2DMatrix 보호되어 있는 프로퍼티

store the Matrix used to transform 3D points to 2D
protected Matrix4 m_to2DMatrix
리턴 Matrix4