C# Class Revit.SDK.Samples.NewHostedSweep.CS.EdgeBinding

Binds an edge with some properties which contains its geometry information and indicates whether the edge is selected or highlighted.
Inheritance: IDisposable
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Dispose

Draw ( Graphics g ) : void

Draw the edge in Graphics.

EdgeBinding ( System.Edge edge ) : System

Constructor takes Edge as parameter.

HighLight ( float x, float y ) : bool

If the edge under the location (x, y), set the highlight flag to true, otherwise false.

Reset ( ) : void

Reset the status of the edge: un-highlighted, un-selected

Update ( Transform rotation, XYZ translation, double scale ) : void

Update the edge's geometry according to the transformation.

Private Methods

Méthode Description
GetRegion ( ) : Region

Return the Edge Region.

HitTest ( float x, float y ) : bool

Test whether or not the edge is under a specified location.

Method Details

Dispose() public méthode

Dispose
public Dispose ( ) : void
Résultat void

Draw() public méthode

Draw the edge in Graphics.
public Draw ( Graphics g ) : void
g System.Drawing.Graphics Graphics
Résultat void

EdgeBinding() public méthode

Constructor takes Edge as parameter.
public EdgeBinding ( System.Edge edge ) : System
edge System.Edge Edge
Résultat System

HighLight() public méthode

If the edge under the location (x, y), set the highlight flag to true, otherwise false.
public HighLight ( float x, float y ) : bool
x float X coordinate
y float Y coordinate
Résultat bool

Reset() public méthode

Reset the status of the edge: un-highlighted, un-selected
public Reset ( ) : void
Résultat void

Update() public méthode

Update the edge's geometry according to the transformation.
public Update ( Transform rotation, XYZ translation, double scale ) : void
rotation Transform Rotation transform
translation XYZ Translation transform
scale double Scale transform
Résultat void