Scatter3DSeries QML Type
表示三维散点图中的数据序列。更多
Import Statement: | import QtGraphs |
In C++: | QScatter3DSeries |
Inherits: | |
Inherited By: |
- 所有成员(包括继承成员)的列表
- Scatter3DSeries 是Qt Graphs QML Types for 3D 的一部分。
属性
- baseColor : color
- baseGradient : Gradient
- colorStyle : GraphsTheme.ColorStyle
- dataArray : ScatterDataArray
- dataProxy : ScatterDataProxy
- invalidSelectionIndex : qsizetype
- itemLabel : string
- itemLabelFormat : string
- itemLabelVisible : bool
- itemSize : real
- mesh : Abstract3DSeries.Mesh
- meshRotation : quaternion
- meshSmooth : bool
- multiHighlightColor : color
- multiHighlightGradient : Gradient
- name : string
- selectedItem : qsizetype
- singleHighlightColor : color
- singleHighlightGradient : Gradient
- type : Abstract3DSeries.SeriesType
- userDefinedMesh : string
- visible : bool
信号
- baseColorChanged(color color)
- baseGradientChanged(Gradient gradient)
- colorStyleChanged(GraphsTheme.ColorStyle style)
- dataArrayChanged(ScatterDataArray array)
- dataProxyChanged(ScatterDataProxy proxy)
- itemLabelChanged(string label)
- itemLabelFormatChanged(string format)
- itemLabelVisibilityChanged(bool visible)
- itemSizeChanged(float size)
- meshChanged(Abstract3DSeries.Mesh mesh)
- meshRotationChanged(quaternion rotation)
- meshSmoothChanged(bool enabled)
- multiHighlightColorChanged(color color)
- multiHighlightGradientChanged(Gradient gradient)
- nameChanged(string name)
- selectedItemChanged(qsizetype index)
- singleHighlightColorChanged(color color)
- singleHighlightGradientChanged(Gradient gradient)
- splineColorChanged(color color)
- splineKnottingChanged(real knotting)
- splineLoopingChanged(bool looping)
- splineResolutionChanged(int resolution)
- splineTensionChanged(real tension)
- splineVisibilityChanged(bool visible)
- userDefinedMeshChanged(string fileName)
- visibilityChanged(bool visible)
方法
- void setMeshAxisAndAngle(vector3d axis, real angle)
详细说明
该类型管理系列特定的可视化元素以及系列数据(通过数据代理)。
Scatter3DSeries 支持以下 itemLabelFormat 格式标签:
@xTitle | 来自 x 轴的标题 |
@yTitle | 来自 y 轴的标题 |
@zTitle | 来自 Z 轴的标题 |
@xLabel | 使用 x 轴格式的项目值。更多信息,请参阅labelFormat 。 |
@yLabel | 使用 Y 轴格式的项目值。更多信息,请参阅labelFormat 。 |
@zLabel | 使用 Z 轴格式的项目值。更多信息,请参阅labelFormat 。 |
@seriesName | 系列名称 |
有关更完整的说明,请参阅QScatter3DSeries 。
另请参阅 Qt Graphs 3D 数据处理。
属性文档
baseColor : color |
设置系列的基色。
另请参阅 colorStyle 和GraphsTheme.seriesColors 。
baseGradient : Gradient |
设置系列的基本梯度。
另请参阅 colorStyle 。
colorStyle : GraphsTheme.ColorStyle |
设置系列的颜色样式。
另请参阅 GraphsTheme.ColorStyle 。
dataArray : ScatterDataArray |
dataProxy : ScatterDataProxy |
设置活动数据代理。该系列拥有任何设置给它的代理的所有权,并在添加新代理时删除任何先前设置的代理。代理不能为空或设置为其他系列。
invalidSelectionIndex : qsizetype |
常数属性提供了一个用于选择的无效索引。将该索引设置为selectedItem 属性,可清除该系列中的选择。
另请参阅 GraphsItem3D::clearSelection()。
itemLabel : string |
格式化的项目标签。如果没有选中项或选中项不可见,则返回空字符串。
另请参阅 itemLabelFormat 。
itemLabelFormat : string |
该系列中数据项的标签格式。该格式用于单个项目标签,例如,当一个项目被选中时。如何解释格式取决于系列类型。
另请参阅 Bar3DSeries,Scatter3DSeries, 和Surface3DSeries 。
itemLabelVisible : bool |
如果true
,项目标签在图表中将绘制为浮动标签。否则不绘制项目标签。要在外部控件中显示项目标签,应将此属性设置为false
。默认值为true
。
另请参阅 itemLabelFormat 和itemLabel 。
itemSize : real |
设置系列的项目大小。大小必须介于0.0
和1.0
之间。将大小设置为0.0
会导致项目大小根据图表中所有系列的项目总数自动缩放。预设默认值为0.0
。
mesh : Abstract3DSeries.Mesh |
设置系列中项目的网格,如果是Surface3DSeries ,则设置选择指针。如果网格是Abstract3DSeries.Mesh.UserDefined ,则必须同时设置userDefinedMesh 属性,项目才能正确呈现。默认值取决于图形类型。
另请参阅 QAbstract3DSeries::Mesh 。
meshRotation : quaternion |
设置应用于系列中所有项目的网格旋转。旋转应为归一化四元数。Bar3DSeries 会忽略任何非绕 Y 轴的旋转。Surface3DSeries 只对选择指针应用旋转。默认为不旋转。
meshSmooth : bool |
如果true
,则会使用通过mesh 属性设置的预定义网格的平滑版本。当网格设置为Abstract3DSeries.Mesh.UserDefined 时,此属性不会影响使用的自定义网格。默认为false
。
multiHighlightColor : color |
设置系列的多项目高亮颜色。
multiHighlightGradient : Gradient |
设置系列的多条目高亮渐变色。
name : string |
系列名称。可通过标签@seriesName
以项目标签格式使用。
另请参阅 itemLabelFormat 。
selectedItem : qsizetype |
在系列数据数组的索引中选择的项目。一次只能选择一个项目。要从该系列中清除选择,invalidSelectionIndex 设置为索引。如果将此系列添加到图表中,图表会根据用户交互或选择无效的情况调整选择。选择另一个已添加系列中的项目也会清除选择。在所选项目之前从系列中移除项目或向系列中插入项目,都会调整选区,使同一项目保持选中状态。
另请参阅 GraphsItem3D::clearSelection()。
singleHighlightColor : color |
设置系列的单个项目高亮颜色。
singleHighlightGradient : Gradient |
设置系列的单个项目高亮渐变色。
type : Abstract3DSeries.SeriesType |
系列的类型。QAbstract3DSeries::SeriesType 值之一。
userDefinedMesh : string |
设置用户自定义网格的文件名,当mesh 为Abstract3DSeries.Mesh.UserDefined 时,将使用该文件名。
注: 文件必须是QtQuick3D 网格格式。使用balsam
转换工具从其他 3D 模型格式创建网格。
visible : bool |
设置系列的可见性。如果false
,则不会渲染序列。
信号文档
baseGradientChanged(Gradient gradient) |
当baseGradient 更改为gradient 时,将发出此信号。
注: 相应的处理程序是onBaseGradientChanged
。
colorStyleChanged(GraphsTheme.ColorStyle style) |
当colorStyle 变更为style 时,发出该信号。
注: 相应的处理程序是onColorStyleChanged
。
dataArrayChanged(ScatterDataArray array) |
当dataArray 变更为array 时,发出此信号。
注: 相应的处理程序是onDataArrayChanged
。
dataProxyChanged(ScatterDataProxy proxy) |
当dataProxy 变更为proxy 时,发出此信号。
注: 相应的处理程序是onDataProxyChanged
。
itemLabelFormatChanged(string format) |
当itemLabelFormat 变更为format 时,发出此信号。
注: 相应的处理程序是onItemLabelFormatChanged
。
itemLabelVisibilityChanged(bool visible) |
当 itemLabelVisibility 变更为visible 时,发出此信号。
注: 相应的处理程序是onItemLabelVisibilityChanged
。
itemSizeChanged(float size) |
当itemSize 变更为size 时,发出此信号。
注: 相应的处理程序是onItemSizeChanged
。
meshChanged(Abstract3DSeries.Mesh mesh) |
当mesh 变更为mesh 时,发出该信号。
注: 相应的处理程序是onMeshChanged
。
meshRotationChanged(quaternion rotation) |
当meshRotation 变更为rotation 时,发出此信号。
注: 相应的处理程序是onMeshRotationChanged
。
meshSmoothChanged(bool enabled) |
当meshSmooth 变更为enabled 时,发出此信号。
注: 相应的处理程序是onMeshSmoothChanged
。
multiHighlightColorChanged(color color) |
当multiHighlightColor 变更为color 时,发出此信号。
注: 相应的处理程序是onMultiHighlightColorChanged
。
multiHighlightGradientChanged(Gradient gradient) |
当multiHighlightGradient 变更为gradient 时,发出此信号。
注: 相应的处理程序是onMultiHighlightGradientChanged
。
selectedItemChanged(qsizetype index) |
当selectedItem 变更为index 时,发出此信号。
注: 相应的处理程序是onSelectedItemChanged
。
singleHighlightColorChanged(color color) |
当singleHighlightColor 变更为color 时,发出此信号。
注: 相应的处理程序是onSingleHighlightColorChanged
。
singleHighlightGradientChanged(Gradient gradient) |
当singleHighlightGradient 变更为gradient 时会发出该信号。
注: 相应的处理程序是onSingleHighlightGradientChanged
。
splineColorChanged(color color) |
当 splineColor 更改为color 时,将发出此信号。
注: 相应的处理程序是onSplineColorChanged
。
splineKnottingChanged(real knotting) |
当 splineKnotting 更改为knotting 时,将发出此信号。
注: 相应的处理程序是onSplineKnottingChanged
。
splineLoopingChanged(bool looping) |
当 splineLooping 更改为looping 时会发出此信号。
注: 相应的处理程序是onSplineLoopingChanged
。
splineResolutionChanged(int resolution) |
当 splineResolution 更改为resolution 时会发出此信号。
注: 相应的处理程序是onSplineResolutionChanged
。
splineTensionChanged(real tension) |
当 splineTension 更改为tension 时会发出此信号。
注: 相应的处理程序是onSplineTensionChanged
。
splineVisibilityChanged(bool visible) |
当 splineVisible 更改为visible 时会发出此信号。
注: 相应的处理程序是onSplineVisibilityChanged
。
userDefinedMeshChanged(string fileName) |
当userDefinedMesh 更改为fileName 时,将发出此信号。
注: 相应的处理程序是onUserDefinedMeshChanged
。
visibilityChanged(bool visible) |
当序列可见性更改为visible 时,发出此信号。
注: 相应的处理程序是onVisibilityChanged
。
方法文档
方便函数,用于从axis 和angle 构建网格旋转四元数。
另请参阅 meshRotation 。
© 2025 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.