C# 클래스 Revit.SDK.Samples.Openings.CS.WireFrame

WireFrame class for generate the model lines and fit the picture box's size to display
상속: ObjectSketch
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( Graphics g, Matrix translate ) : void

draw override method

Draw2D ( float previewWidth, float previewHeigh, Graphics graphics ) : void

draw the line contain in m_lines in 2d Preview

WireFrame ( ReadOnlyCollection line3Ds ) : System

The default constructor

비공개 메소드들

메소드 설명
CalculateCanvasRegion ( float previewWidth, float previewHeigh ) : System.Drawing.PointF[]

get the display region, adjust the proportion and location

CalculateTransform ( float previewWidth, float previewHeigh ) : void

calculate the transform between canvas and geometry objects

Frame3DTo2D ( ReadOnlyCollection line3Ds ) : void

transform 3d point to 2d (if all points in the same plane)

메소드 상세

Draw() 공개 메소드

draw override method
public Draw ( Graphics g, Matrix translate ) : void
g System.Drawing.Graphics graphics object
translate Matrix matrix use to transform points or vectors
리턴 void

Draw2D() 공개 메소드

draw the line contain in m_lines in 2d Preview
public Draw2D ( float previewWidth, float previewHeigh, Graphics graphics ) : void
previewWidth float Width of Preview
previewHeigh float Heigh of Preview
graphics System.Drawing.Graphics Graphics to draw
리턴 void

WireFrame() 공개 메소드

The default constructor
public WireFrame ( ReadOnlyCollection line3Ds ) : System
line3Ds ReadOnlyCollection a list contain all the line in WireFrame
리턴 System