Pinch Zoom Modifier 3D
SciChart Android 3D provides pinch zooming via the PinchZoomModifier3D, which is available out of the box.
The PinchZoomModifier3D performs movement of the Camera3D forwards/backwards when the user pinches a touch screen giving the appearance of zooming the 3D world.
Besides common features which are inherited from the ChartModifierBase3D class, the PinchZoomModifier3D also allows you to change ScaleFactor which allows you to change zooming speed. It is accessible via the setScaleFactor(float scaleFactor) method.
Adding a PinchZoomModifier3D to a Chart
Any Chart Modifier 3D can be added to a SciChartSurface3D via the chartModifiers property and PinchZoomModifier3D is no difference:
// Assume a surface has been created and configured somewhere
// Create a Modifier
final PinchZoomModifier3D pinchZoomModifier3D = new PinchZoomModifier3D();
pinchZoomModifier3D.setScaleFactor(1.5f);
// Add the modifier to the surface
surface.getChartModifiers().add(pinchZoomModifier3D);
Note
To learn more about features available, please visit the Chart Modifier 3D APIs article.