Click or drag to resize

ViewManagerOnViewToolbarViewChangingEvent Event

View Toolbar View Changing 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 ViewToolbarViewChangingEventHandler OnViewToolbarViewChangingEvent

Value

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

private void Example()
{
    // 뷰툴바 처리 이전 이벤트
    vizcore3d.View.OnViewToolbarViewChangingEvent 
        += View_OnViewToolbarViewChangingEvent;

    // 뷰툴바 처리 이후 이벤트
    vizcore3d.View.OnViewToolbarViewChangedEvent 
        += View_OnViewToolbarViewChangedEvent;
}

private void View_OnViewToolbarViewChangingEvent(
    object sender
    , Event.EventManager.ViewToolbarViewChangingEventArgs e)
{
    switch (e.CameraDirection)
    {
        case Data.CameraDirection.ISO_PLUS:
            break;
        case Data.CameraDirection.ISO_MINUS:
            break;
        case Data.CameraDirection.X_PLUS:
            break;
        case Data.CameraDirection.X_MINUS:
            break;
        case Data.CameraDirection.Y_PLUS:
            break;
        case Data.CameraDirection.Y_MINUS:
            break;
        case Data.CameraDirection.Z_PLUS:
            break;
        case Data.CameraDirection.Z_MINUS:
            break;
        default:
            break;
    }

    // if you need...
    //e.Cancel = true;
}

private void View_OnViewToolbarViewChangedEvent(
    object sender
    , Event.EventManager.ViewToolbarViewChangedEventArgs e)
{
    switch (e.CameraDirection)
    {
        case Data.CameraDirection.ISO_PLUS:
            break;
        case Data.CameraDirection.ISO_MINUS:
            break;
        case Data.CameraDirection.X_PLUS:
            break;
        case Data.CameraDirection.X_MINUS:
            break;
        case Data.CameraDirection.Y_PLUS:
            break;
        case Data.CameraDirection.Y_MINUS:
            break;
        case Data.CameraDirection.Z_PLUS:
            break;
        case Data.CameraDirection.Z_MINUS:
            break;
        default:
            break;
    }
}
See Also