iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

Pinch Zoom Modifier 3D

SciChart iOS 3D provides pinch zooming via the SCIPinchZoomModifier3D, which is available out of the box.

The SCIPinchZoomModifier3D performs movement of the SCICamera3D 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 SCIChartModifier3DBase class, the SCIPinchZoomModifier3D also allows you to change ScaleFactor which allows you to change zooming speed. It is accessible via the SCIPinchZoomModifier3D.scaleFactor property.

Adding a SCIPinchZoomModifier3D to a Chart

Any Chart Modifier 3D can be added to a SCIChartSurface3D via the ISCIChartSurface3D.chartModifiers property and SCIPinchZoomModifier3D with no difference:

// Assume a surface has been created and configured somewhere id<ISCIChartSurface3D> surface; // Create a Modifier SCIPinchZoomModifier3D *pinchZoomModifier3D = [SCIPinchZoomModifier3D new]; pinchZoomModifier3D.scaleFactor = 1.5; // Add the modifier to the surface [self.surface.chartModifiers add:pinchZoomModifier3D];
// Assume a surface has been created and configured somewhere let surface: ISCIChartSurface3D // Create a Modifier let pinchZoomModifier3D = SCIPinchZoomModifier3D() pinchZoomModifier3D.scaleFactor = 1.5 // Add the modifier to the surface self.surface.chartModifiers.add(pinchZoomModifier3D)
// Assume a surface has been created and configured somewhere IISCIChartSurface3D surface; // Create a Modifier var pinchZoomModifier3D = new SCIPinchZoomModifier3D(); pinchZoomModifier3D.scaleFactor = 1.5; // Add the modifier to the surface Surface.ChartModifiers.Add(pinchZoomModifier3D);

NOTE: To learn more about features available, please read on the Chart Modifier 3D APIs article.