Graphs3D QML Type
Graphs3D namespace enums. More...
Import Statement: | import QtGraphs |
- List of all members, including inherited members
- Graphs3D is part of Qt Graphs QML Types for 3D.
Detailed Description
The Graphs3D namespace provides the following enums used by QtGraphs' 3D API.
Graphs3D.SelectionFlag
Item selection modes. Values of this enumeration can be combined with OR operator.
Constant | Description |
---|---|
None | Selection mode disabled. |
Item | Selection highlights a single item. |
Row | Selection highlights a single row. |
ItemAndRow | Combination flag for highlighting both item and row with different colors. |
Column | Selection highlights a single column. |
ItemAndColumn | Combination flag for highlighting both item and column with different colors. |
RowAndColumn | Combination flag for highlighting both row and column. |
ItemRowAndColumn | Combination flag for highlighting item, row, and column. |
Slice | Setting this mode flag indicates that the graph should take care of the slice view handling automatically. If you wish to control the slice view yourself via Q3DScene, do not set this flag. When setting this mode flag, either Row or Column must also be set, but not both. Slicing is supported by Bars3D and Surface3D only. When this flag is set, slice mode is entered in the following situations:
|
MultiSeries | Setting this mode means that items for all series at same position are highlighted, instead of just the selected item. The actual selection in the other series doesn't change. When setting this mode flag, one or more of the basic selection flags (Item , Row , or Column ) must also be set. Multi-series selection is not supported for Scatter3D. |
Graphs3D.ShadowQuality
Quality and softness of shadows.
Constant | Description |
---|---|
None | Shadows are disabled. |
Low | Shadows are rendered in low quality. |
Medium | Shadows are rendered in medium quality. |
High | Shadows are rendered in high quality. |
SoftLow | Shadows are rendered in low quality with softened edges. |
SoftMedium | Shadows are rendered in medium quality with softened edges. |
SoftHigh | Shadows are rendered in high quality with softened edges. |
Graphs3D.ElementType
Type of an element in the graph.
Constant | Description |
---|---|
None | No defined element. |
Series | An item in a series. |
AxisXLabel | The x-axis label. |
AxisYLabel | The y-axis label. |
AxisZLabel | The z-axis label. |
CustomItem | A custom item. |
Graphs3D.OptimizationHint
The optimization hint for rendering.
Constant | Description |
---|---|
Default | Provides the full feature set with instancing at a good performance. |
Legacy | Provides the full feature set at a reasonable performance. To be used if OptimizationHint.Default performs poorly or does not work. |
Graphs3D.CameraPreset
Predefined positions for camera.
Constant | Description |
---|---|
NoPreset | Used to indicate a preset has not been set, or the scene has been rotated freely. |
FrontLow | Both x and y rotations of the camera are 0. |
Front | X rotation is 0 and y rotation is 22.5 degrees. |
FrontHigh | X rotation is 0 and y rotation is 45 degrees. |
LeftLow | X rotation is 90 and y rotation is 0 degrees. |
Left | X rotation is 90 and y rotation is 22.5 degrees. |
LeftHigh | X rotation is 90 and y rotation is 45 degrees. |
RightLow | X rotation is -90 and y rotation is 0 degrees. |
Right | X rotation is -90 and y rotation is 22.5 degrees. |
RightHigh | X rotation is -90 and y rotation is 45 degrees. |
BehindLow | X rotation is 180 and y rotation is 0 degrees. |
Behind | X rotation is 180 and y rotation is 22.5 degrees. |
BehindHigh | X rotation is 180 and y rotation is 45 degrees. |
IsometricLeft | X rotation is 45 and y rotation is 22.5 degrees. |
IsometricLeftHigh | X rotation is 45 and y rotation is 45 degrees. |
IsometricRight | X rotation is -45 and y rotation is 22.5 degrees. |
IsometricRightHigh | X rotation is -45 and y rotation is 45 degrees. |
DirectlyAbove | X rotation is 0 and y rotation is 90 degrees. |
DirectlyAboveCW45 | X rotation is -45 and y rotation is 90 degrees. |
DirectlyAboveCCW45 | X rotation is 45 and y rotation is 90 degrees. |
FrontBelow | X rotation is 0 and y rotation is -45 degrees. In Bars3D from FrontBelow onward these only work for graphs including negative values. They act as CameraPreset...Low for positive-only values. |
LeftBelow | X rotation is 90 and y rotation is -45 degrees. |
RightBelow | X rotation is -90 and y rotation is -45 degrees. |
BehindBelow | X rotation is 180 and y rotation is -45 degrees. |
DirectlyBelow | X rotation is 0 and y rotation is -90 degrees. Acts as FrontLow for positive-only bars. |
Graphs3D.GridLineType
Constant | Description |
---|---|
Shader | Grid lines are rendered with GPU in a shader. |
Geometry | Grid lines are rendered with 3D models. |
Graphs3D.RenderingMode
Constant | Description |
---|---|
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. |
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. |
© 2024 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.