Scene3D QML Type
|Import Statement:||import QtDataVisualization 1.2|
- activeCamera : Camera3D
- activeLight : Light3D
- devicePixelRatio : float
- graphPositionQuery : point
- invalidSelectionPoint : point
- primarySubViewport : rect
- secondarySubViewport : rect
- secondarySubviewOnTop : bool
- selectionQueryPosition : point
- slicingActive : bool
- viewport : rect
The 3D scene contains a single active camera and a single active light source. Visualized data is assumed to be at a fixed location.
The 3D scene also keeps track of the viewport in which visualization rendering is done, the primary subviewport inside the viewport where the main 3D data visualization view resides and the secondary subviewport where the 2D sliced view of the data resides.
Also the scene has flag for tracking if the secondary 2D slicing view is currently active or not.
Note: Not all visualizations support the secondary 2D slicing view.
activeCamera : Camera3D
This property contains the currently active camera in the 3D scene. When a Camera3D is set in the property it gets automatically added as child of the scene.
activeLight : Light3D
This property contains the currently active light in the 3D scene. When a Light3D is set in the property it gets automatically added as child of the scene.
This property contains the current device pixel ratio that is used when mapping input coordinates to pixel coordinates.
This property contains the coordinates for the user input that should be processed by the scene as a graph position query. If this is set to value other than invalidSelectionPoint, the graph tries to match a graph position to the given point within the primary viewport. After the rendering pass this property is returned to its default state of invalidSelectionPoint. The queried graph position can be read from AbstractGraph3D::queriedGraphPosition property after the next render pass.
There isn't a single correct 3D coordinate to match to each specific screen position, so to be consistent, the queries are always done against the inner sides of an invisible box surrounding the graph.
Note: Bar graphs allow graph position queries only at the graph floor level.
See also AbstractGraph3D::queriedGraphPosition.
primarySubViewport : rect
This property contains the current subviewport rectangle inside the viewport where the primary view of the data visualization is targeted to.
secondarySubViewport : rect
This property contains the secondary viewport rectangle inside the viewport. The secondary viewport is used for drawing the 2D slice view in some visualizations.
This property contains whether 2D slicing view is currently drawn on top or if the 3D view is drawn on top.
This property contains the coordinates for the user input that should be processed by the scene as selection. If this is set to value other than invalidSelectionPoint the graph tries to select a data item at the given point within the primary viewport. After the rendering pass the property is returned to its default state of invalidSelectionPoint.
This property contains whether 2D slicing view is currently active or not. If setting it, you must make sure AbstractGraph3D::selectionMode has either AbstractGraph3D.SelectionRow or AbstractGraph3D.SelectionColumn flag set, and there is a valid selection.
Note: Not all visualizations support the 2D slicing view.
viewport : rect
This property contains the current viewport rectangle where all 3D rendering is targeted.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.