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
显示文件 Open project: AMEE/revit Class Usage Examples

Public Methods

Method 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

Method 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 method

Dispose
public Dispose ( ) : void
return void

Draw() public method

Draw the edge in Graphics.
public Draw ( Graphics g ) : void
g System.Drawing.Graphics Graphics
return void

EdgeBinding() public method

Constructor takes Edge as parameter.
public EdgeBinding ( System.Edge edge ) : System
edge System.Edge Edge
return System

HighLight() public method

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
return bool

Reset() public method

Reset the status of the edge: un-highlighted, un-selected
public Reset ( ) : void
return void

Update() public method

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
return void