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

Free Look Modifier 3D

If you want to add simple movement of the camera (imagine free-look in a computer game) then you can do so using our Chart Modifier 3D API. The SCIFreeLookModifier3D performs SCICamera3D movement in the Left/Right/Up/Down direction giving the appearance of moving through the 3D World

Free Look Modifier 3D

Besides common features which are inherited from the SCIChartModifier3DBase class, the SCIFreeLookModifier3D also allows you to control movement sensitivity via the SCIFreeLookModifier3D.degreesPerPixelSensitivity property.

Adding a SCIFreeLookModifier3D to a Chart

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

// Assume a surface has been created and configured somewhere id<ISCIChartSurface3D> surface; // Create a Modifier SCIFreeLookModifier3D *freeLookModifier3D = [[SCIFreeLookModifier3D alloc] initWithDefaultNumberOfTouches:2]; freeLookModifier3D.degreesPerPixelSensitivity = 0.4; // Add the modifier to the surface [self.surface.chartModifiers add:freeLookModifier3D];
// Assume a surface has been created and configured somewhere let surface: ISCIChartSurface3D // Create a Modifier let freeLookModifier3D = SCIFreeLookModifier3D(defaultNumberOfTouches: 2) freeLookModifier3D.degreesPerPixelSensitivity = 0.4 // Add the modifier to the surface self.surface.chartModifiers.add(freeLookModifier3D)
// Assume a surface has been created and configured somewhere IISCIChartSurface3D surface; // Create a Modifier var freeLookModifier3D = new SCIFreeLookModifier3D(2); freeLookModifier3D.degreesPerPixelSensitivity = 0.4; // Add the modifier to the surface Surface.ChartModifiers.Add(freeLookModifier3D);

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