Search Results for

    Show / Hide Table of Contents

    Orbit Modifier 3D

    SciChart Android 3D provides a panning behavior via the OrbitModifier3D, available out of the box.

    The OrbitModifier3D performs orbital motion of the camera giving the appearance of rotating the 3D world.

    Besides common features which are inherited from the ChartModifierBase3D class, the OrbitModifier3D also allows you to control panning sensitivity which allows you to change the orbit speed. It's accessible via the setDegreesPerPixelSensitivity(float degreesPerPixelSensitivity) method.

    Adding a OrbitModifier3D to a Chart

    Any Chart Modifier 3D can be added to a SciChartSurface3D via the chartModifiers property and OrbitModifier3D is no difference:

    • Java
    • Java with Builders API
    • Kotlin
    // Assume a surface has been created and configured somewhere
    // Create a Modifier
    final OrbitModifier3D orbitModifier3D = new OrbitModifier3D();
    orbitModifier3D.setDegreesPerPixelSensitivity(0.4f);
    
    // Add the modifier to the surface
    surface.getChartModifiers().add(orbitModifier3D);
    
    // Assume a surface has been created and configured somewhere
    // Create a Modifier
    final OrbitModifier3D orbitModifier3D = new OrbitModifier3D();
    orbitModifier3D.setDegreesPerPixelSensitivity(0.4f);
    
    // Add the modifier to the surface
    surface.getChartModifiers().add(orbitModifier3D);
    
    // Assume a surface has been created and configured somewhere
    // Create a Modifier
    val orbitModifier3D = OrbitModifier3D()
    orbitModifier3D.degreesPerPixelSensitivity = 0.4f
    
    // Add the modifier to the surface
    surface.chartModifiers.add(orbitModifier3D)
    
    Note

    To learn more about features available, please visit the Chart Modifier 3D APIs article.

    Back to top © 2011-2025 SciChart. All rights reserved. | sitemap.xml