在本页

Abstract3DSeries QML Type

所有数据系列的基本类型。更多

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

Bar3DSeries, Scatter3DSeries, and Surface3DSeries

属性

方法

详细说明

该类型不可创建,但包含通过以下子类型公开的属性:Bar3DSeries,Scatter3DSeries, 和Surface3DSeries

更多信息,请参见Qt Data Visualization 数据处理

属性文档

baseColor : color

设置系列的基色。

另请参阅 colorStyleTheme3D.baseColors

baseGradient : ColorGradient

设置序列的基本梯度。

另请参阅 colorStyleTheme3D.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 中引入。

另请参阅 itemLabelFormatitemLabel

mesh : Abstract3DSeries.Mesh

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

另请参见 QAbstract3DSeries::Mesh

meshRotation : quaternion

设置应用于系列中所有项目的网格旋转。旋转应为归一化四元数。Bar3DSeries 会忽略任何非绕 Y 轴的旋转。Surface3DSeries 只对选择指针进行旋转。默认为不旋转。

meshSmooth : bool

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

multiHighlightColor : color

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

另请参阅 colorStyleTheme3D.multiHighlightColor

multiHighlightGradient : ColorGradient

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

另请参阅 colorStyleTheme3D.multiHighlightGradient

name : string

系列名称。可与标签@seriesName 一起用于项目标签格式。

另请参阅 itemLabelFormat

singleHighlightColor : color

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

另请参阅 colorStyleTheme3D.singleHighlightColor

singleHighlightGradient : ColorGradient

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

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

axisangle 构建网格旋转四元数的便捷函数。

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