Click or drag to resize

MeasureManagerOnAddMeasureEvent Event

측정 호출 이벤트

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public event MeasureEventHandler OnAddMeasureEvent

Value

Type: MeasureEventHandler
Examples
C#
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void Example()
{
    // Add Event
    vizcore3d.Review.Measure.OnAddMeasureEvent += Measure_OnAddMeasureEvent;

    vizcore3d.Review.Measure.AddBasicPosition(); // Call Measure_OnAddMeasureEvent
    //vizcore3d.Review.Measure.AddBasicDistance();
}

private void Measure_OnAddMeasureEvent(object sender, Event.EventManager.MeasureEventArgs e)
{
    System.Diagnostics.Trace.WriteLine(e.Kind.ToString());

    switch (e.Kind)
    {
        case Data.MeasureKind.BASIC_POSITION:
            // code...
            break;
        case Data.MeasureKind.BASIC_DISTANCE:
            // code...
            break;
        case Data.MeasureKind.BASIC_ANGLE:
            // code...
            break;
        default:
            // code...
            break;
    }
}
See Also