C# 클래스 Revit.SDK.Samples.NewHostedSweep.CS.ElementGeometry

This class is intent to display element's wire-frame with C# GDI. It contains a solid and a bounding box of an element. It also contains transformation (translation, rotation and scale) to transform the geometry edges.
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

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

Draw all the edges of solid in Graphics.

ElementGeometry ( Solid solid, BoundingBoxXYZ box ) : System

Constructor, Construct a new object with an element's geometry Solid, and its corresponding bounding box.

InitializeTransform ( double width, double height ) : void

Initialize the transform (includes translation, scale, and rotation).

ResetEdgeStates ( ) : void

Reset all the edges' status to their original status.

비공개 메소드들

메소드 설명
Update ( ) : void

Update all the edges' transform (include translation, scale, and rotation), reconstruct the edge's geometry info.

메소드 상세

Draw() 공개 메소드

Draw all the edges of solid in Graphics.
public Draw ( Graphics g ) : void
g System.Drawing.Graphics Graphics, edges will be draw in it
리턴 void

ElementGeometry() 공개 메소드

Constructor, Construct a new object with an element's geometry Solid, and its corresponding bounding box.
public ElementGeometry ( Solid solid, BoundingBoxXYZ box ) : System
solid Solid Element's geometry Solid
box BoundingBoxXYZ Element's geometry bounding box
리턴 System

InitializeTransform() 공개 메소드

Initialize the transform (includes translation, scale, and rotation).
public InitializeTransform ( double width, double height ) : void
width double Width of the view
height double Height of the view
리턴 void

ResetEdgeStates() 공개 메소드

Reset all the edges' status to their original status.
public ResetEdgeStates ( ) : void
리턴 void