Base type for 3D visualizations. 更多...
导入语句: | import QtDataVisualization 1.2 |
Since: | QtDataVisualization 1.0 |
继承者: | Bars3D , Scatter3D ,和 Surface3D |
The base type for all 3D visualizations in QtDataVisualization .
This type is uncreatable, but it contains properties that are shared between the 3D visualizations.
另请参阅 Bars3D , Scatter3D , Surface3D ,和 Qt Data Visualization C++ 类 .
[since QtDataVisualization 1.1] aspectRatio : real |
The ratio of the graph scaling between the longest axis on the horizontal plane and the y-axis. Defaults to
2.0
.
注意: Has no effect on Bars3D .
该特性在 QtDataVisualization 1.1 引入。
另请参阅 horizontalAspectRatio .
[since QtDataVisualization 1.1] currentFps : int |
When FPS measuring is enabled, the results for the last second are stored in this read-only property. It takes at least a second before this value updates after measuring is activated.
该特性在 QtDataVisualization 1.1 引入。
另请参阅 measureFps .
[since QtDataVisualization 1.1] customItemList : list < Custom3DItem > |
列表 Custom3DItem items added to the graph. The graph takes ownership of the added items.
该特性在 QtDataVisualization 1.1 引入。
[since QtDataVisualization 1.2] horizontalAspectRatio : real |
The ratio of the graph scaling between the x-axis and z-axis. The value of
0.0
indicates automatic scaling according to axis ranges. Defaults to
0.0
.
注意: Has no effect on Bars3D , which handles scaling on the horizontal plane via the barThickness and barSpacing properties. Polar graphs also ignore this property.
该特性在 QtDataVisualization 1.2 引入。
另请参阅 aspectRatio , polar , Bars3D::barThickness ,和 Bars3D::barSpacing .
inputHandler : AbstractInputHandler3D |
The active input handler used in the graph. You can disable default input handlers by setting this property to null.
[since QtDataVisualization 1.2] locale : locale |
Sets the locale used for formatting various numeric labels. Defaults to the
"C"
locale.
该特性在 QtDataVisualization 1.2 引入。
另请参阅 ValueAxis3D::labelFormat .
[since QtDataVisualization 1.2] margin : real |
The absolute value used for the space left between the edge of the plottable graph area and the edge of the graph background.
If the margin value is negative, the margins are determined automatically and can vary according to the size of the items in the series and the type of the graph. The value is interpreted as a fraction of the y-axis range if the graph aspect ratios have not beed changed from the default values. Defaults to
-1.0
.
注意: Setting a smaller margin for a scatter graph than the automatically determined margin can cause the scatter items at the edges of the graph to overlap with the graph background.
注意: On scatter and surface graphs, if the margin is small in comparison to the axis label size, the positions of the edge labels of the axes are adjusted to avoid overlap with the edge labels of the neighboring axes.
该特性在 QtDataVisualization 1.2 引入。
[since QtDataVisualization 1.1] measureFps : bool |
若
true
, the rendering is done continuously instead of on demand, and the value of the
currentFps
property is updated. Defaults to
false
.
该特性在 QtDataVisualization 1.1 引入。
另请参阅 currentFps .
msaaSamples : int |
The number of samples used in multisample antialiasing when renderingMode is
RenderIndirect
. When renderingMode is
RenderDirectToBackground
or
RenderDirectToBackground_NoClear
, this property value is read-only and returns the number of samples specified by the window surface format. Defaults to
4
.
另请参阅 renderingMode .
[since QtDataVisualization 1.1] optimizationHints : AbstractGraph3D . OptimizationHints |
Whether the default or static mode is used for rendering optimization.
The default mode provides the full feature set at a reasonable level of performance. The static mode optimizes graph rendering and is ideal for large non-changing data sets. It is slower with dynamic data changes and item rotations. Selection is not optimized, so using the static mode with massive data sets is not advisable. Static optimization works only on scatter graphs. Defaults to OptimizationDefault .
注意: On some environments, large graphs using static optimization may not render, because all of the items are rendered using a single draw call, and different graphics drivers support different maximum vertice counts per call. This is mostly an issue on 32bit and OpenGL ES2 platforms. To work around this issue, choose an item mesh with a low vertex count or use the point mesh.
该特性在 QtDataVisualization 1.1 引入。
另请参阅 Abstract3DSeries::mesh and QAbstract3DGraph::OptimizationHint .
[since QtDataVisualization 1.1] orthoProjection : bool |
若
true
, orthographic projection will be used for displaying the graph. Defaults to
false
.
注意:
Shadows will be disabled when set to
true
.
该特性在 QtDataVisualization 1.1 引入。
[since QtDataVisualization 1.2] polar : bool |
若
true
, the horizontal axes are changed into polar axes. The x-axis becomes the angular axis and the z-axis becomes the radial axis. Polar mode is not available for bar graphs.
默认为
false
.
该特性在 QtDataVisualization 1.2 引入。
另请参阅 orthoProjection and radialLabelOffset .
[since QtDataVisualization 1.2] queriedGraphPosition : vector3d |
This read-only property contains the latest graph position values along each axis queried using
Scene3D::graphPositionQuery
. The values are normalized to range
[-1, 1]
. If the queried position was outside the graph bounds, the values will not reflect the real position, but will instead be some undefined position outside the range
[-1, 1]
. The value will be undefined until a query is made.
There is no single correct 3D coordinate to match a particular screen position, so to be consistent, the queries are always done against the inner sides of an invisible box surrounding the graph.
注意: Bar graphs only allow querying graph position at the graph floor level, so the y-value is always zero for bar graphs and valid queries can be only made at screen positions that contain the floor of the graph.
该特性在 QtDataVisualization 1.2 引入。
另请参阅 Scene3D::graphPositionQuery .
[since QtDataVisualization 1.2] radialLabelOffset : real |
This property specifies the normalized horizontal offset for the axis labels of the radial polar axis. The value
0.0
indicates that the labels should be drawn next to the 0-angle angular axis grid line. The value
1.0
indicates that the labels are drawn in their usual place at the edge of the graph background. This property is ignored if the polar property value is
false
。默认为
1.0
.
该特性在 QtDataVisualization 1.2 引入。
另请参阅 polar .
[since QtDataVisualization 1.2] reflection : bool |
Sets floor reflections on or off. Defaults to
false
.
注意: Affects only Bars3D . However, in Bars3D graphs holding both positive and negative values, reflections are not supported for custom items that intersect the floor plane. In that case, reflections should be turned off to avoid incorrect rendering.
该特性在 QtDataVisualization 1.2 引入。
另请参阅 reflectivity .
[since QtDataVisualization 1.2] reflectivity : real |
Sets floor reflectivity. Larger numbers make the floor more reflective. The valid range is
[0...1]
。默认为
0.5
.
注意: Affects only Bars3D .
该特性在 QtDataVisualization 1.2 引入。
另请参阅 reflection .
scene : Scene3D |
Scene3D pointer that can be used to manipulate the scene and access the scene elements, such as the active camera.
This property is read-only.
[since QtDataVisualization 1.1] selectedElement : AbstractGraph3D . ElementType |
The element selected in the graph.
This property can be used to query the selected element type. The type is valid until a new selection is made in the graph and the
selectedElementChanged
信号被发射。
The signal can be used for example for implementing customized input handling, as demonstrated by the Qt Quick 2 Axis Dragging Example .
该特性在 QtDataVisualization 1.1 引入。
另请参阅 selectedLabelIndex() , selectedAxis() , selectedCustomItemIndex() , selectedCustomItem() , Bars3D::selectedSeries , Scatter3D::selectedSeries , Scene3D::selectionQueryPosition ,和 QAbstract3DGraph::ElementType .
selectionMode : AbstractGraph3D . SelectionMode |
The active selection mode in the visualization. One of the QAbstract3DGraph::SelectionFlag 枚举值。
另请参阅 QAbstract3DGraph::SelectionFlag .
shadowQuality : AbstractGraph3D . ShadowQuality |
The quality of shadows. One of the QAbstract3DGraph::ShadowQuality 枚举值。
另请参阅 QAbstract3DGraph::ShadowQuality .
shadowsSupported : bool |
This read-only property indicates whether shadows are supported with the current configuration. OpenGL ES2 configurations do not support shadows.
theme : Theme3D |
The active theme of the graph.
另请参阅 Theme3D .
[since QtDataVisualization 1.1]
int
addCustomItem
(
Custom3DItem
item
)
|
Adds a Custom3DItem item to the graph. Graph takes ownership of the added item.
Returns index to the added item if add was successful, -1 if trying to add a null item, and index of the item if trying to add an already added item.
This method was introduced in QtDataVisualization 1.1.
另请参阅 removeCustomItems() , removeCustomItem() ,和 removeCustomItemAt() .
void clearSelection () |
Clears selection from all attached series.
[since QtDataVisualization 1.1]
void
releaseCustomItem
(
Custom3DItem
item
)
|
Gets ownership of item back and removes the item from the graph.
注意: If the same item is added back to the graph, the texture file needs to be re-set.
This method was introduced in QtDataVisualization 1.1.
另请参阅 Custom3DItem::textureFile .
[since QtDataVisualization 1.1]
void
removeCustomItem
(
Custom3DItem
item
)
|
Removes the custom item . Deletes the resources allocated to it.
This method was introduced in QtDataVisualization 1.1.
[since QtDataVisualization 1.1]
void
removeCustomItemAt
(
vector3d
position
)
|
Removes all custom items at position . Deletes the resources allocated to them.
This method was introduced in QtDataVisualization 1.1.
[since QtDataVisualization 1.1]
void
removeCustomItems
()
|
Removes all custom items. Deletes the resources allocated to them.
This method was introduced in QtDataVisualization 1.1.
[since QtDataVisualization 1.1]
Abstract3DAxis
selectedAxis
()
|
Can be used to get the selected axis after receiving
selectedElementChanged
signal with any label type. Selection is valid until the next
selectedElementChanged
信号。
Returns the selected axis, or null.
This method was introduced in QtDataVisualization 1.1.
另请参阅 selectedElement .
[since QtDataVisualization 1.1]
Custom3DItem
selectedCustomItem
()
|
Can be used to get the selected custom item after receiving
selectedElementChanged
signal with
ElementCustomItem
type. Ownership of the item remains with the graph. Selection is valid until the next
selectedElementChanged
信号。
Returns the selected custom item, or null.
This method was introduced in QtDataVisualization 1.1.
另请参阅 selectedElement .
[since QtDataVisualization 1.1]
int
selectedCustomItemIndex
()
|
Can be used to query the index of the selected custom item after receiving
selectedElementChanged
signal with
ElementCustomItem
type. Selection is valid until the next
selectedElementChanged
信号。
Returns index of the selected custom item, or -1.
This method was introduced in QtDataVisualization 1.1.
另请参阅 selectedElement .
[since QtDataVisualization 1.1]
int
selectedLabelIndex
()
|
Can be used to query the index of the selected label after receiving
selectedElementChanged
signal with any label type. Selection is valid until the next
selectedElementChanged
信号。
Returns index of the selected label, or -1.
This method was introduced in QtDataVisualization 1.1.
另请参阅 selectedElement .