在本页

Abstract3DSeries QML Type

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

Import Statement: import QtGraphs
In C++: QAbstract3DSeries
Inherited By:

Bar3DSeries, Scatter3DSeries, Spline3DSeries, and Surface3DSeries

属性

信号

方法

详细说明

该抽象类是以下子类的基类:Bar3DSeries,Scatter3DSeries, 和Surface3DSeries

更多信息,请参见Qt Graphs 3D 数据处理

属性文档

baseColor : color

该系列的基色。

另请参阅 colorStyleGraphsTheme.seriesColors

baseGradient : Gradient

系列的基准梯度。

另请参见 colorStyle

colorStyle : GraphsTheme.ColorStyle

该系列的色彩风格。

另请参见 GraphsTheme.ColorStyle

itemLabel : string [read-only]

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

另请参阅 itemLabelFormat

itemLabelFormat : string

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

另请参阅 Bar3DSeries,Scatter3DSeries, 和Surface3DSeries

itemLabelVisible : bool

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

另请参阅 itemLabelFormatitemLabel

lightingMode : Abstract3DSeries.LightingMode [since 6.10]

系列中项目的照明模式。默认值为QAbstract3DSeries::LightingMode::Shaded

此属性在 Qt 6.10 中引入。

另请参阅 QAbstract3DSeries::LightingMode

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

singleHighlightColor : color

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

另请参阅 colorStyleGraphsTheme.singleHighlightColor

singleHighlightGradient : Gradient

系列中单个项目的高亮渐变。

另请参阅 colorStyleGraphsTheme.singleHighlightGradient

type : Abstract3DSeries.SeriesType [read-only]

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

userDefinedMesh : string

mesh 时使用的用户自定义对象网格的文件名是Abstract3DSeries.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

itemLabelChanged(string label)

itemLabel 更改为label 时会发出该信号。

注: 相应的处理程序是onItemLabelChanged

itemLabelFormatChanged(string format)

itemLabelFormat 更改为format 时会发出该信号。

注: 相应的处理程序是onItemLabelFormatChanged

itemLabelVisibilityChanged(bool visible)

当 itemLabelVisibility 变更为visible 时发出此信号。

注: 相应的处理程序是onItemLabelVisibilityChanged

[since 6.10] lightingModeChanged(Abstract3DSeries.LightingMode lightingMode)

lightingMode 更改为lightingMode 时会发出该信号。

注: 相应的处理程序是onLightingModeChanged

此信号在 Qt 6.10 中引入。

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

singleHighlightColorChanged(color color)

singleHighlightColor 更改为color 时会发出该信号。

注: 相应的处理程序是onSingleHighlightColorChanged

singleHighlightGradientChanged(Gradient gradient)

singleHighlightGradient 更改为gradient 时会发出该信号。

注: 相应的处理程序是onSingleHighlightGradientChanged

userDefinedMeshChanged(string fileName)

userDefinedMesh 更改为fileName 时会发出该信号。

注: 相应的处理程序是onUserDefinedMeshChanged

visibilityChanged(bool visible)

当系列可见性更改为visible 时,将发出此信号。

注: 相应的处理程序是onVisibilityChanged

方法文档

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.