Abstract3DSeries QML Type
所有数据系列的基本类型。更多
Import Statement: | import QtDataVisualization 1.9 |
Since: | QtDataVisualization 1.0 |
In C++: | QAbstract3DSeries |
Inherited By: |
属性
- baseColor : color
- baseGradient : ColorGradient
- colorStyle : Theme3D.ColorStyle
- itemLabel : string
(since QtDataVisualization 1.1)
- itemLabelFormat : string
- itemLabelVisible : bool
(since QtDataVisualization 1.1)
- mesh : Abstract3DSeries.Mesh
- meshRotation : quaternion
- meshSmooth : bool
- multiHighlightColor : color
- multiHighlightGradient : ColorGradient
- name : string
- singleHighlightColor : color
- singleHighlightGradient : ColorGradient
- type : Abstract3DSeries.SeriesType
- userDefinedMesh : string
- visible : bool
方法
- void setMeshAxisAndAngle(vector3d axis, real angle)
详细说明
该类型不可创建,但包含通过以下子类型公开的属性:Bar3DSeries,Scatter3DSeries, 和Surface3DSeries 。
更多信息,请参见Qt Data Visualization 数据处理。
属性文档
baseColor : color |
设置系列的基色。
另请参阅 colorStyle 和Theme3D.baseColors 。
baseGradient : ColorGradient |
设置系列的基本梯度。
另请参阅 colorStyle 和Theme3D.baseGradients 。
colorStyle : Theme3D.ColorStyle |
设置系列的颜色样式。
另请参阅 Theme3D.colorStyle 。
itemLabel : string |
itemLabelFormat : string |
该系列中数据项的标签格式。该格式用于单个项目标签,例如,当一个项目被选中时。如何解释该格式取决于系列类型:Bar3DSeries,Scatter3DSeries,Surface3DSeries 。
itemLabelVisible : bool |
如果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 |
设置系列的多项目高亮颜色。
multiHighlightGradient : ColorGradient |
设置系列的多条目高亮渐变色。
name : string |
系列名称。可通过标签@seriesName
以项目标签格式使用。
另请参阅 itemLabelFormat 。
singleHighlightColor : color |
设置系列的单项高亮颜色。
singleHighlightGradient : ColorGradient |
设置系列的单项高亮渐变色。
type : Abstract3DSeries.SeriesType |
系列的类型。QAbstract3DSeries::SeriesType 值之一。
userDefinedMesh : string |
设置用户自定义对象网格的文件名,当mesh 为Abstract3DSeries.MeshUserDefined 时使用该文件名。
注: 文件必须是 Wavefront OBJ 格式,并包含顶点、法线和 UV。它还需要是三角形文件。
visible : bool |
设置序列的可见性。如果false
,则不会渲染序列。
方法文档
这是一个方便的函数,用于根据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.