C# 클래스 Revit.SDK.Samples.SlabShapeEditing.CS.SlabProfile

SlabProfile class contains Geometry information of Slab, and contains methods used to edit slab's Shape.
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
AddCrease ( PointF point1, PointF point2 ) : SlabShapeCrease

Add Crease on specific location

AddVertex ( PointF point ) : SlabShapeVertex

Add vertex on specific location

CanCreateVertex ( PointF pointF ) : bool

judge whether point can use to create vertex on slab

ClearRotateMatrix ( ) : void

make rotate matrix null

Draw2D ( Graphics graphics, Pen pen ) : void

draw profile of Slab in pictureBox

DrawCurve ( Graphics graphics, Pen pen, List points ) : void

draw specific points in pictureBox

Get2DTo3DMatrix ( ) : Matrix4

calculate the matrix used to transform 2D to 3D

Get3DTo2DMatrix ( ) : Matrix4

calculate the matrix used to transform 3D to 2D

GetBoundsPoints ( ) : System.Drawing.PointF[]

Get max and min coordinates of all points

GetFloorEdges ( ) : EdgeArray

Get all points of the Slab

GetMoveToCenterMatrix ( ) : Matrix4

Get a matrix which can move points to center of itself

GetScaleMatrix ( ) : Matrix4

calculate the matrix use to scale

GetSlabProfileInfo ( ) : void

Calculate geometry info for Slab

GetTo2DMatrix ( ) : Matrix4

Get a matrix which can transform points to 2D

ResetSlabShape ( ) : void

Reset index and clear line tool

RotateFloor ( double xAngle, double yAngle ) : void

rotate slab with specific angle

SlabProfile ( Autodesk floor, ExternalCommandData commandData ) : System

constructor

비공개 메소드들

메소드 설명
GetMoveToCenterOfPictureBox ( ) : Matrix4

Get a matrix which can move points to center of picture box

메소드 상세

AddCrease() 공개 메소드

Add Crease on specific location
public AddCrease ( PointF point1, PointF point2 ) : SlabShapeCrease
point1 System.Drawing.PointF first point of location where Crease add on
point2 System.Drawing.PointF second point of location where Crease add on
리턴 SlabShapeCrease

AddVertex() 공개 메소드

Add vertex on specific location
public AddVertex ( PointF point ) : SlabShapeVertex
point System.Drawing.PointF location where vertex add on
리턴 SlabShapeVertex

CanCreateVertex() 공개 메소드

judge whether point can use to create vertex on slab
public CanCreateVertex ( PointF pointF ) : bool
pointF System.Drawing.PointF
리턴 bool

ClearRotateMatrix() 공개 메소드

make rotate matrix null
public ClearRotateMatrix ( ) : void
리턴 void

Draw2D() 공개 메소드

draw profile of Slab in pictureBox
public Draw2D ( Graphics graphics, Pen pen ) : void
graphics System.Drawing.Graphics form graphic
pen System.Drawing.Pen pen used to draw line in pictureBox
리턴 void

DrawCurve() 공개 메소드

draw specific points in pictureBox
public DrawCurve ( Graphics graphics, Pen pen, List points ) : void
graphics System.Drawing.Graphics form graphic
pen System.Drawing.Pen pen used to draw line in pictureBox
points List points which need to be drawn
리턴 void

Get2DTo3DMatrix() 공개 메소드

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

Get3DTo2DMatrix() 공개 메소드

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

GetBoundsPoints() 공개 메소드

Get max and min coordinates of all points
public GetBoundsPoints ( ) : System.Drawing.PointF[]
리턴 System.Drawing.PointF[]

GetFloorEdges() 공개 메소드

Get all points of the Slab
public GetFloorEdges ( ) : EdgeArray
리턴 EdgeArray

GetMoveToCenterMatrix() 공개 메소드

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

GetScaleMatrix() 공개 메소드

calculate the matrix use to scale
public GetScaleMatrix ( ) : Matrix4
리턴 Matrix4

GetSlabProfileInfo() 공개 메소드

Calculate geometry info for Slab
public GetSlabProfileInfo ( ) : void
리턴 void

GetTo2DMatrix() 공개 메소드

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

ResetSlabShape() 공개 메소드

Reset index and clear line tool
public ResetSlabShape ( ) : void
리턴 void

RotateFloor() 공개 메소드

rotate slab with specific angle
public RotateFloor ( double xAngle, double yAngle ) : void
xAngle double rotate angle in X direction
yAngle double rotate angle in Y direction
리턴 void

SlabProfile() 공개 메소드

constructor
public SlabProfile ( Autodesk floor, ExternalCommandData commandData ) : System
floor Autodesk Floor object in Revit
commandData ExternalCommandData contains reference of Revit Application
리턴 System