C# Class Revit.SDK.Samples.SlabShapeEditing.CS.SlabShapeEditingForm

window form contains one picture box to show the profile of slab geometry. user can add vertex and crease. User can edit slab shape via vertex and crease too.
Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode Description
CreateGraphicsPath ( ) : void

Create Graphics Path for each vertex and crease

SlabShapeEditingForm ( Floor floor, ExternalCommandData commandData ) : System

constructor

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
DrawSelectedLineRed ( Graphics graphics, Pen pen ) : void

Draw selected crease or vertex red

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LineButton_Click ( object sender, EventArgs e ) : void

get ready to add crease

LineButton_MouseHover ( object sender, EventArgs e ) : void

set tool tip for LineButton

MoveButton_Click ( object sender, EventArgs e ) : void

get ready to move vertex and crease

MoveButton_MouseHover ( object sender, EventArgs e ) : void

set tool tip for MoveButton

PointButton_Click ( object sender, EventArgs e ) : void

get ready to add vertex

PointButton_MouseHover ( object sender, EventArgs e ) : void

set tool tip for PointButton

ResetButton_Click ( object sender, EventArgs e ) : void

Reset slab shape

SlabShapePictureBox_MouseClick ( object sender, MouseEventArgs e ) : void

add vertex and crease, select new created vertex and crease

SlabShapePictureBox_MouseDown ( object sender, MouseEventArgs e ) : void

get location where right button click down.

SlabShapePictureBox_MouseHover ( object sender, EventArgs e ) : void

change cursor

SlabShapePictureBox_MouseMove ( object sender, MouseEventArgs e ) : void

rotate slab and get selected vertex or crease

SlabShapePictureBox_Paint ( object sender, PaintEventArgs e ) : void

represents the geometry info for slab

UpdateButton_Click ( object sender, EventArgs e ) : void

Move vertex and crease, then update profile of slab

Method Details

CreateGraphicsPath() public méthode

Create Graphics Path for each vertex and crease
public CreateGraphicsPath ( ) : void
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

SlabShapeEditingForm() public méthode

constructor
public SlabShapeEditingForm ( Floor floor, ExternalCommandData commandData ) : System
floor Floor
commandData ExternalCommandData selected floor (or slab)
Résultat System