ViewManagerOnViewToolbarViewChangingEvent Event |
Namespace: VIZCore3D.NET.Manager
public event ViewToolbarViewChangingEventHandler OnViewToolbarViewChangingEvent
// 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; } }