C# Class Revit.SDK.Samples.CreateBeamSystem.CS.BeamSystemSketch

Sketch the profile of beam system on canvas Code here have nothing with Revit API
Inheritance: ObjectSketch
Mostra file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
BeamSystemSketch ( System canvas ) : System

constructor

Draw ( Graphics g, Matrix translate ) : void

draw beam system

DrawProfile ( IList profile ) : void

draw the profile in the canvas

Protected Methods

Method Description
Paint ( Object sender, PaintEventArgs e ) : void

draw beam system on canvas control

Private Methods

Method Description
CalculateCanvasRegion ( ) : System.Drawing.PointF[]

get the display region, adjust the proportion and location

CalculateTransform ( ) : void

calculate the transform between canvas and geometry objects

GetLine2D ( Line line ) : Line2D

generate a Line2D instance using a Line's data

Initialize ( IList profile ) : void

initialize geometry objects and bounding box

Method Details

BeamSystemSketch() public method

constructor
public BeamSystemSketch ( System canvas ) : System
canvas System the control to draw beam system
return System

Draw() public method

draw beam system
public Draw ( Graphics g, Matrix translate ) : void
g System.Drawing.Graphics encapsulates a GDI+ drawing surface
translate Matrix translation matrix to canvas coordinates
return void

DrawProfile() public method

draw the profile in the canvas
public DrawProfile ( IList profile ) : void
profile IList the profile of the beam system
return void

Paint() protected method

draw beam system on canvas control
protected Paint ( Object sender, PaintEventArgs e ) : void
sender Object canvas control
e PaintEventArgs data for the Paint event
return void