本页内容

Abstract3DSeries QML Type

所有数据序列的基础类型。更多...

Import Statement: import QtDataVisualization 1.12
Since: QtDataVisualization 1.0
In C++: QAbstract3DSeries
Inherited By:

Bar3DSeries, Scatter3DSeries, and Surface3DSeries

Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

属性

方法

详细描述

此类无法创建,但包含通过以下子类型公开的属性:Bar3DSeries 、Scatter3DSeries 和Surface3DSeries 。

有关详细信息,请参阅《Qt Data Visualization 数据处理》。

属性文档

baseColor : color

设置该系列的基础颜色。

另请参阅 colorStyle 和Theme3D.baseColors 。

baseGradient : ColorGradient

设置该系列的基准渐变。

另请参阅 colorStyle 和Theme3D.baseGradients 。

colorStyle : Theme3D.ColorStyle

设置系列的颜色样式。

另请参阅 Theme3D.colorStyle 。

itemLabel : string [read-only, since QtDataVisualization 1.1]

格式化后的项目标签。如果未选中任何项目,或者所选项目不可见,则返回空字符串。

该属性自 QtDataVisualization 1.1 起引入。

另请参阅 itemLabelFormat 。

itemLabelFormat : string

该系列中数据项的标签格式。此格式用于单个数据项的标签,例如当选中某个数据项时。该格式的解释方式取决于系列类型:Bar3DSeries、Scatter3DSeries、Surface3DSeries。

itemLabelVisible : bool [since QtDataVisualization 1.1]

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

该属性在 QtDataVisualization 1.1 中引入。

另请参阅 itemLabelFormat 和itemLabel 。

mesh : Abstract3DSeries.Mesh

设置序列中项目的网格,如果是 Surface3DSeries,则设置选择指针。如果网格为Abstract3DSeries.MeshUserDefined ,则必须同时设置userDefinedMesh 属性,以便项目能够正确渲染。默认值取决于图形类型。

另请参阅 QAbstract3DSeries::Mesh 。

meshRotation : quaternion

设置应用于该系列所有项的网格旋转。旋转值应为归一化的四元数。对于支持单项旋转的系列类型,各项的旋转值将相互乘积。Bar3DSeries 会忽略任何非围绕 y 轴的旋转。 Surface3DSeries 仅对选择指针应用该旋转。默认不进行旋转。

meshSmooth : bool

如果true ,则使用通过mesh 属性设置的预定义网格的平滑版本。当网格设置为Abstract3DSeries.MeshUserDefined 时,此属性不会影响所使用的自定义网格。默认值为false 。

multiHighlightColor : color

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

另请参阅 colorStyle 和Theme3D.multiHighlightColor 。

multiHighlightGradient : ColorGradient

设置系列中多个项目的高亮渐变效果。

另请参阅 colorStyle 和Theme3D.multiHighlightGradient 。

name : string

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

另请参阅 itemLabelFormat 。

singleHighlightColor : color

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

另请参阅 colorStyle 和Theme3D.singleHighlightColor 。

singleHighlightGradient : ColorGradient

设置该数据系列的单个数据点高亮渐变效果。

另请参阅 colorStyle 和Theme3D.singleHighlightGradient 。

type : Abstract3DSeries.SeriesType [read-only]

序列的类型。QAbstract3DSeries::SeriesType 中的一个值。

userDefinedMesh : string

为对象设置用户定义的自定义网格的文件名,该文件名在mesh 设置为Abstract3DSeries.MeshUserDefined 时使用。

注意:该文件 必须为 Wavefront OBJ 格式,并包含顶点、法线和 UV 坐标。此外,该文件还必须由三角面组成。

visible : bool

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

方法文档

void setMeshAxisAndAngle(vector3d axis, real angle)

一个便捷函数,用于根据axis 和angle 构建网格旋转四元数。

另请参见 meshRotation 。

© 2026 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.