Scatter3DSeries QML Type

表示三维散点图中的数据序列。更多

Import Statement: import QtGraphs
In C++: QScatter3DSeries
Inherits:

Abstract3DSeries

Inherited By:

Spline3DSeries

属性

信号

方法

详细说明

该类型管理系列特定的可视化元素以及系列数据(通过数据代理)。

Scatter3DSeries 支持以下 itemLabelFormat 格式标签:

@xTitle来自 x 轴的标题
@yTitle来自 y 轴的标题
@zTitle来自 Z 轴的标题
@xLabel使用 x 轴格式的项目值。更多信息,请参阅labelFormat
@yLabel使用 Y 轴格式的项目值。更多信息,请参阅labelFormat
@zLabel使用 Z 轴格式的项目值。更多信息,请参阅labelFormat
@seriesName系列名称

有关更完整的说明,请参阅QScatter3DSeries

另请参阅 Qt Graphs 3D 数据处理

属性文档

baseColor : color

设置系列的基色。

另请参阅 colorStyleGraphsTheme.seriesColors


baseGradient : Gradient

设置系列的基本梯度。

另请参阅 colorStyle


colorStyle : GraphsTheme.ColorStyle

设置系列的颜色样式。

另请参阅 GraphsTheme.ColorStyle


dataArray : ScatterDataArray

保存数据数组的引用。

dataArrayChanged 设置数据数组时会发出信号,除非 与前一个相同。newDataArray

注意: 在对数据数组做任何操作之前,必须为相关代理创建系列。


dataProxy : ScatterDataProxy

设置活动数据代理。该系列拥有任何设置给它的代理的所有权,并在添加新代理时删除任何先前设置的代理。代理不能为空或设置为其他系列。


invalidSelectionIndex : qsizetype

常数属性提供了一个用于选择的无效索引。将该索引设置为selectedItem 属性,可清除该系列中的选择。

另请参阅 GraphsItem3D::clearSelection()。


itemLabel : string [read-only]

格式化的项目标签。如果没有选中项或选中项不可见,则返回空字符串。

另请参阅 itemLabelFormat


itemLabelFormat : string

该系列中数据项的标签格式。该格式用于单个项目标签,例如,当一个项目被选中时。如何解释格式取决于系列类型。

另请参阅 Bar3DSeries,Scatter3DSeries, 和Surface3DSeries


itemLabelVisible : bool

如果true ,项目标签在图表中将绘制为浮动标签。否则不绘制项目标签。要在外部控件中显示项目标签,应将此属性设置为false 。默认值为true

另请参阅 itemLabelFormatitemLabel


itemSize : real

设置系列的项目大小。大小必须介于0.01.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

设置系列的多项目高亮颜色。

另请参阅 colorStyleGraphsTheme.multiHighlightColor


multiHighlightGradient : Gradient

设置系列的多条目高亮渐变色。

另请参阅 colorStyleGraphsTheme.multiHighlightGradient


name : string

系列名称。可通过标签@seriesName 以项目标签格式使用。

另请参阅 itemLabelFormat


selectedItem : qsizetype

在系列数据数组的索引中选择的项目。一次只能选择一个项目。要从该系列中清除选择,invalidSelectionIndex 设置为索引。如果将此系列添加到图表中,图表会根据用户交互或选择无效的情况调整选择。选择另一个已添加系列中的项目也会清除选择。在所选项目之前从系列中移除项目或向系列中插入项目,都会调整选区,使同一项目保持选中状态。

另请参阅 GraphsItem3D::clearSelection()。


singleHighlightColor : color

设置系列的单个项目高亮颜色。

另请参阅 colorStyleGraphsTheme.singleHighlightColor


singleHighlightGradient : Gradient

设置系列的单个项目高亮渐变色。

另请参阅 colorStyleGraphsTheme.singleHighlightGradient


type : Abstract3DSeries.SeriesType [read-only]

系列的类型。QAbstract3DSeries::SeriesType 值之一。


userDefinedMesh : string

设置用户自定义网格的文件名,当meshAbstract3DSeries.Mesh.UserDefined 时,将使用该文件名。

注: 文件必须是QtQuick3D 网格格式。使用balsam 转换工具从其他 3D 模型格式创建网格。


visible : bool

设置系列的可见性。如果false ,则不会渲染序列。


信号文档

baseColorChanged(color color)

baseColor 更改为color 时会发出此信号。

注: 相应的处理程序是onBaseColorChanged


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


itemLabelChanged(string label)

itemLabel 变更为label 时,发出此信号。

注: 相应的处理程序是onItemLabelChanged


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


nameChanged(string name)

name 变更为name 时,发出此信号。

注: 相应的处理程序是onNameChanged


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


方法文档

void setMeshAxisAndAngle(vector3d axis, real angle)

方便函数,用于从axisangle 构建网格旋转四元数。

另请参阅 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.