DelegateInputHandler.fixedOrbit constructor

DelegateInputHandler.fixedOrbit(
  1. ThermionViewer viewer, {
  2. double minimumDistance = 10.0,
  3. Vector3? target,
  4. ThermionEntity? entity,
  5. PickDelegate? pickDelegate,
})

Implementation

factory DelegateInputHandler.fixedOrbit(ThermionViewer viewer,
        {double minimumDistance = 10.0,
        Vector3? target,
        ThermionEntity? entity,
        PickDelegate? pickDelegate}) =>
    DelegateInputHandler(
        viewer: viewer,
        pickDelegate: pickDelegate,
        transformDelegate: FixedOrbitRotateInputHandlerDelegate(viewer,
            minimumDistance: minimumDistance),
        actions: {
          InputType.MMB_HOLD_AND_MOVE: InputAction.ROTATE,
          InputType.SCALE1: InputAction.ROTATE,
          InputType.SCALE2: InputAction.ZOOM,
          InputType.SCROLLWHEEL: InputAction.ZOOM
        });