PySide6.QtGraphs.QtGraphs3D¶
- class QtGraphs3D¶
The QtGraphs3D module provides enums used by QtGraphs ‘ 3D API. More…
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
- class SelectionFlag¶
(inherits
enum.Flag
) Item selection modes. Values of this enumeration can be combined with OR operator.Constant
Description
- class ShadowQuality¶
Quality of shadows.
Constant
Description
QtGraphs3D.ShadowQuality.None
Shadows are disabled.
QtGraphs3D.ShadowQuality.Low
Shadows are rendered in low quality.
QtGraphs3D.ShadowQuality.Medium
Shadows are rendered in medium quality.
QtGraphs3D.ShadowQuality.High
Shadows are rendered in high quality.
QtGraphs3D.ShadowQuality.SoftLow
Shadows are rendered in low quality with softened edges.
QtGraphs3D.ShadowQuality.SoftMedium
Shadows are rendered in medium quality with softened edges.
QtGraphs3D.ShadowQuality.SoftHigh
Shadows are rendered in high quality with softened edges.
- class ElementType¶
Type of an element in the graph.
Constant
Description
QtGraphs3D.ElementType.None
No defined element.
QtGraphs3D.ElementType.Series
An item in a series.
QtGraphs3D.ElementType.AxisXLabel
The x-axis label.
QtGraphs3D.ElementType.AxisYLabel
The y-axis label.
QtGraphs3D.ElementType.AxisZLabel
The z-axis label.
QtGraphs3D.ElementType.CustomItem
A custom item.
- class OptimizationHint¶
(inherits
enum.Flag
) The optimization hint for rendering.Constant
Description
QtGraphs3D.OptimizationHint.Default
Provides the full feature set with instancing at a good performance.
QtGraphs3D.OptimizationHint.Legacy
Provides the full feature set at a reasonable performance. To be used if OptimizationHint.Default performs poorly or does not work.
- class RenderingMode¶
Constant
Description
QtGraphs3D.RenderingMode.DirectToBackground
Indicates that the graph will be rendered directly on the window background and QML items are rendered on top of it. Using non-transparent QML item as a background will hide the graph. Clears the whole window before rendering the graph, including the areas outside the graph. If the surface format of the window supports antialiasing, it will be used (see
qDefaultSurfaceFormat()
). This rendering mode offers the best performance at the expense of non-standard QML behavior. For example, the graphs do not obey the z ordering of QML items and the opacity value has no effect on them.QtGraphs3D.RenderingMode.Indirect
Indicates the graph will be first rendered to an offscreen surface that is then drawn during normal QML item rendering. The rendered image is antialiased using the multisampling method if it is supported in the current environment and the msaaSamples property value is greater than zero. This rendering mode offers good quality and normal QML item behavior at the expense of performance.
- class CameraPreset¶
Predefined positions for camera.
Constant
Description
QtGraphs3D.CameraPreset.NoPreset
Used to indicate a preset has not been set, or the scene has been rotated freely.
QtGraphs3D.CameraPreset.FrontLow
Both x and y rotations of the camera are 0.
QtGraphs3D.CameraPreset.Front
X rotation is 0 and y rotation is 22.5 degrees.
QtGraphs3D.CameraPreset.FrontHigh
X rotation is 0 and y rotation is 45 degrees.
QtGraphs3D.CameraPreset.LeftLow
X rotation is 90 and y rotation is 0 degrees.
QtGraphs3D.CameraPreset.Left
X rotation is 90 and y rotation is 22.5 degrees.
QtGraphs3D.CameraPreset.LeftHigh
X rotation is 90 and y rotation is 45 degrees.
QtGraphs3D.CameraPreset.RightLow
X rotation is -90 and y rotation is 0 degrees.
QtGraphs3D.CameraPreset.Right
X rotation is -90 and y rotation is 22.5 degrees.
QtGraphs3D.CameraPreset.RightHigh
X rotation is -90 and y rotation is 45 degrees.
QtGraphs3D.CameraPreset.BehindLow
X rotation is 180 and y rotation is 0 degrees.
QtGraphs3D.CameraPreset.Behind
X rotation is 180 and y rotation is 22.5 degrees.
QtGraphs3D.CameraPreset.BehindHigh
X rotation is 180 and y rotation is 45 degrees.
QtGraphs3D.CameraPreset.IsometricLeft
X rotation is 45 and y rotation is 22.5 degrees.
QtGraphs3D.CameraPreset.IsometricLeftHigh
X rotation is 45 and y rotation is 45 degrees.
QtGraphs3D.CameraPreset.IsometricRight
X rotation is -45 and y rotation is 22.5 degrees.
QtGraphs3D.CameraPreset.IsometricRightHigh
X rotation is -45 and y rotation is 45 degrees.
QtGraphs3D.CameraPreset.DirectlyAbove
X rotation is 0 and y rotation is 90 degrees.
QtGraphs3D.CameraPreset.DirectlyAboveCW45
X rotation is -45 and y rotation is 90 degrees.
QtGraphs3D.CameraPreset.DirectlyAboveCCW45
X rotation is 45 and y rotation is 90 degrees.
QtGraphs3D.CameraPreset.FrontBelow
X rotation is 0 and y rotation is -45 degrees. In
Q3DBarsWidgetItem
from FrontBelow onward these only work for graphs including negative values. They act as CameraPreset…Low for positive-only values.QtGraphs3D.CameraPreset.LeftBelow
X rotation is 90 and y rotation is -45 degrees.
QtGraphs3D.CameraPreset.RightBelow
X rotation is -90 and y rotation is -45 degrees.
QtGraphs3D.CameraPreset.BehindBelow
X rotation is 180 and y rotation is -45 degrees.
QtGraphs3D.CameraPreset.DirectlyBelow
X rotation is 0 and y rotation is -90 degrees. Acts as FrontLow for positive-only bars.
Added in version 6.7.
- class GridLineType¶
Constant
Description
QtGraphs3D.GridLineType.Shader
Grid lines are rendered with GPU in a shader.
QtGraphs3D.GridLineType.Geometry
Grid lines are rendered with 3D models.