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
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Paint ( Object sender, PaintEventArgs e ) : void

draw beam system on canvas control

Private Methods

Méthode 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 méthode

constructor
public BeamSystemSketch ( System canvas ) : System
canvas System the control to draw beam system
Résultat System

Draw() public méthode

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
Résultat void

DrawProfile() public méthode

draw the profile in the canvas
public DrawProfile ( IList profile ) : void
profile IList the profile of the beam system
Résultat void

Paint() protected méthode

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