C# Класс Revit.SDK.Samples.CurtainWallGrid.CS.WallDrawing

maintain the baseline of the curtain wall
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
SCALEFACTOR double

Открытые методы

Метод Описание
AddMousePosition ( Point mousePosition ) : void

store mouse position when mouse moves (the location will be the candidate end points of the baseline)

AddPoint ( Point mousePosition ) : void

Add point to baseline of the curtain wall

Draw ( Graphics graphics, Pen pen ) : void

draw the baseline for the curtain wall creation in the picture box in the "Create Curtain Wall" tab page, user needs to draw the baseline for wall creation

RemovePoints ( ) : void

Clear points in baseline

WallDrawing ( WallGeometry wallGeo ) : System

default constructor

Приватные методы

Метод Описание
ConvertToPointD ( Point srcPoint ) : PointD

scale the point and store them in PointD format

DrawBaseline ( Graphics graphics, Pen pen ) : void

draw the baseline / the candidate baseline (start point confirmed, end point didn't)

DrawCoordinateOrigin ( Graphics graphics, Pen pen ) : void

draw the coordinate system origin for the baseline drawing

WriteCoordinate ( Graphics graphics, Pen pen ) : void

write the coordinate for moving mouse

Описание методов

AddMousePosition() публичный Метод

store mouse position when mouse moves (the location will be the candidate end points of the baseline)
public AddMousePosition ( Point mousePosition ) : void
mousePosition Point /// the location of the mouse cursor ///
Результат void

AddPoint() публичный Метод

Add point to baseline of the curtain wall
public AddPoint ( Point mousePosition ) : void
mousePosition Point /// the location of the mouse cursor ///
Результат void

Draw() публичный Метод

draw the baseline for the curtain wall creation in the picture box in the "Create Curtain Wall" tab page, user needs to draw the baseline for wall creation
public Draw ( Graphics graphics, Pen pen ) : void
graphics System.Drawing.Graphics /// form graphic ///
pen System.Drawing.Pen /// pen used to draw line in pictureBox ///
Результат void

RemovePoints() публичный Метод

Clear points in baseline
public RemovePoints ( ) : void
Результат void

WallDrawing() публичный Метод

default constructor
public WallDrawing ( WallGeometry wallGeo ) : System
wallGeo WallGeometry /// the mapped wall geometry information ///
Результат System

Описание свойств

SCALEFACTOR публичное свойство

public double SCALEFACTOR
Результат double