Class InputController
- Namespace
- HelixToolkit.WinUI.SharpDX
- Assembly
- HelixToolkit.WinUI.SharpDX.dll
Use to determine shortcut keys/Mouse key for Rotation, Pan, etc. User must override certain functions to change default shortcut keys/buttons.
public class InputController
- Inheritance
-
InputController
- Inherited Members
Properties
Viewport
Gets or sets the viewport.
public Viewport3DX? Viewport { get; set; }
Property Value
- Viewport3DX
The viewport.
Methods
IsChangeFieldOfView(PointerPointProperties)
protected virtual bool IsChangeFieldOfView(PointerPointProperties properties)
Parameters
propertiesPointerPointProperties
Returns
IsChangeLookAt(PointerPointProperties)
protected virtual bool IsChangeLookAt(PointerPointProperties properties)
Parameters
propertiesPointerPointProperties
Returns
IsCtrlKeyPressed()
public static bool IsCtrlKeyPressed()
Returns
IsResetCamera(PointerPointProperties)
protected virtual bool IsResetCamera(PointerPointProperties properties)
Parameters
propertiesPointerPointProperties
Returns
IsShiftKeyPressed()
public static bool IsShiftKeyPressed()
Returns
IsStartPan(PointerPointProperties)
protected virtual bool IsStartPan(PointerPointProperties properties)
Parameters
propertiesPointerPointProperties
Returns
IsStartRotate(PointerPointProperties)
protected virtual bool IsStartRotate(PointerPointProperties properties)
Parameters
propertiesPointerPointProperties
Returns
IsStartZoom(PointerPointProperties)
protected virtual bool IsStartZoom(PointerPointProperties properties)
Parameters
propertiesPointerPointProperties
Returns
IsStartZoomExtends(PointerPointProperties)
protected virtual bool IsStartZoomExtends(PointerPointProperties properties)
Parameters
propertiesPointerPointProperties
Returns
IsStartZoomRectangle(PointerPointProperties)
protected virtual bool IsStartZoomRectangle(PointerPointProperties properties)
Parameters
propertiesPointerPointProperties
Returns
OnKeyPressed(KeyRoutedEventArgs)
public virtual void OnKeyPressed(KeyRoutedEventArgs e)
Parameters
OnKeyboardChangeView(KeyRoutedEventArgs)
protected virtual void OnKeyboardChangeView(KeyRoutedEventArgs e)
Parameters
OnKeyboardMoveCamera(KeyRoutedEventArgs)
protected virtual void OnKeyboardMoveCamera(KeyRoutedEventArgs e)
Parameters
OnKeyboardResetCamera(KeyRoutedEventArgs)
protected virtual void OnKeyboardResetCamera(KeyRoutedEventArgs e)
Parameters
OnKeyboardStartPan(KeyRoutedEventArgs)
protected virtual void OnKeyboardStartPan(KeyRoutedEventArgs e)
Parameters
OnKeyboardStartRotate(KeyRoutedEventArgs)
protected virtual void OnKeyboardStartRotate(KeyRoutedEventArgs e)
Parameters
OnKeyboardStartZoom(KeyRoutedEventArgs)
protected virtual void OnKeyboardStartZoom(KeyRoutedEventArgs e)
Parameters
OnKeyboardStartZoomExtends(KeyRoutedEventArgs)
protected virtual void OnKeyboardStartZoomExtends(KeyRoutedEventArgs e)
Parameters
OnKeyboardStartZoomRectangle(KeyRoutedEventArgs)
protected virtual void OnKeyboardStartZoomRectangle(KeyRoutedEventArgs e)
Parameters
OnPointerPressed(PointerRoutedEventArgs)
Raises the PointerPressed event.
public virtual void OnPointerPressed(PointerRoutedEventArgs e)
Parameters
ePointerRoutedEventArgsThe PointerRoutedEventArgs instance containing the event data.
RaiseOnAddMoveForce(AddForceEventArgs)
protected void RaiseOnAddMoveForce(InputController.AddForceEventArgs args)
Parameters
RaiseOnAddPanForce(AddForceEventArgs)
protected void RaiseOnAddPanForce(InputController.AddForceEventArgs args)
Parameters
RaiseOnAddRotationForce(AddForceEventArgs)
protected void RaiseOnAddRotationForce(InputController.AddForceEventArgs args)
Parameters
RaiseOnAddZoomForce(AddForceEventArgs)
protected void RaiseOnAddZoomForce(InputController.AddForceEventArgs args)
Parameters
RaiseOnBackView()
protected void RaiseOnBackView()
RaiseOnBottomView()
protected void RaiseOnBottomView()
RaiseOnFrontView()
protected void RaiseOnFrontView()
RaiseOnLeftView()
protected void RaiseOnLeftView()
RaiseOnRestoreCameraSettings()
protected void RaiseOnRestoreCameraSettings()
RaiseOnRightView()
protected void RaiseOnRightView()
RaiseOnTopView()
protected void RaiseOnTopView()
Events
OnAddMoveForce
Occurs when [on add move force].
public event EventHandler<InputController.AddForceEventArgs>? OnAddMoveForce
Event Type
OnAddPanForce
Occurs when [on add pan force].
public event EventHandler<InputController.AddForceEventArgs>? OnAddPanForce
Event Type
OnAddRotationForce
Occurs when [on add rotation force].
public event EventHandler<InputController.AddForceEventArgs>? OnAddRotationForce
Event Type
OnAddZoomForce
Occurs when [on add zoom force].
public event EventHandler<InputController.AddForceEventArgs>? OnAddZoomForce
Event Type
OnBackView
Occurs when [on back view].
public event EventHandler? OnBackView
Event Type
OnBottomView
Occurs when [on bottom view].
public event EventHandler? OnBottomView
Event Type
OnChangeFieldOfView
Occurs when [on change field of view].
public event EventHandler<PointerRoutedEventArgs>? OnChangeFieldOfView
Event Type
OnChangeLookAt
Occurs when [on change look at].
public event EventHandler<PointerRoutedEventArgs>? OnChangeLookAt
Event Type
OnFrontView
Occurs when [on front view].
public event EventHandler? OnFrontView
Event Type
OnLeftView
Occurs when [on left view].
public event EventHandler? OnLeftView
Event Type
OnResetCamera
Occurs when [on reset camera].
public event EventHandler? OnResetCamera
Event Type
OnRestoreCameraSettings
Occurs when [on restore camera settings].
public event EventHandler? OnRestoreCameraSettings
Event Type
OnRightView
Occurs when [on right view].
public event EventHandler? OnRightView
Event Type
OnStartPan
Occurs when [on start pan].
public event EventHandler<PointerRoutedEventArgs>? OnStartPan
Event Type
OnStartRotate
Occurs when [on start rotate].
public event EventHandler<PointerRoutedEventArgs>? OnStartRotate
Event Type
OnStartZoom
Occurs when [on start zoom].
public event EventHandler<PointerRoutedEventArgs>? OnStartZoom
Event Type
OnStartZoomExtends
Occurs when [on start zoom extends].
public event EventHandler<PointerRoutedEventArgs>? OnStartZoomExtends
Event Type
OnStartZoomRectangle
Occurs when [on start zoom rectangle].
public event EventHandler<PointerRoutedEventArgs>? OnStartZoomRectangle
Event Type
OnTopView
Occurs when [on top view].
public event EventHandler? OnTopView