setCameraManipulatorOptions method

  1. @override
Future setCameraManipulatorOptions({
  1. ManipulatorMode? mode,
  2. double orbitSpeedX = 0.01,
  3. double orbitSpeedY = 0.01,
  4. double zoomSpeed = 0.01,
})
override

Implementation

@override
Future setCameraManipulatorOptions(
    {ManipulatorMode? mode,
    double orbitSpeedX = 0.01,
    double orbitSpeedY = 0.01,
    double zoomSpeed = 0.01}) async {
  if (mode != null) {
    _cameraMode = mode;
  }
  if (_cameraMode != ManipulatorMode.ORBIT) {
    throw Exception("Manipulator mode $mode not yet implemented");
  }
  set_camera_manipulator_options(
      _viewer!, _cameraMode.index, orbitSpeedX, orbitSpeedX, zoomSpeed);
}