Spline3DSeries QML Type
在三维样条曲线图中表示数据序列。更多
Import Statement: | import QtGraphs |
Since: | Qt 6.9 |
In C++: | QSpline3DSeries |
Inherits: |
- 所有成员(包括继承成员)的列表
- Spline3DSeries 是Qt Graphs QML Types for 3D 的一部分。
属性
- baseColor : color
- baseGradient : Gradient
- colorStyle : GraphsTheme.ColorStyle
- itemLabel : string
- itemLabelFormat : string
- itemLabelVisible : bool
- mesh : Abstract3DSeries.Mesh
- meshRotation : quaternion
- meshSmooth : bool
- multiHighlightColor : color
- multiHighlightGradient : Gradient
- name : string
- singleHighlightColor : color
- singleHighlightGradient : Gradient
- splineColor : color
- splineKnotting : real
- splineLooping : bool
- splineTension : real
- splineVisible : bool
- type : Abstract3DSeries.SeriesType
- userDefinedMesh : string
- visible : bool
信号
- baseColorChanged(color color)
- baseGradientChanged(Gradient gradient)
- colorStyleChanged(GraphsTheme.ColorStyle style)
- itemLabelChanged(string label)
- itemLabelFormatChanged(string format)
- itemLabelVisibilityChanged(bool visible)
- meshChanged(Abstract3DSeries.Mesh mesh)
- meshRotationChanged(quaternion rotation)
- meshSmoothChanged(bool enabled)
- multiHighlightColorChanged(color color)
- multiHighlightGradientChanged(Gradient gradient)
- nameChanged(string name)
- singleHighlightColorChanged(color color)
- singleHighlightGradientChanged(Gradient gradient)
- userDefinedMeshChanged(string fileName)
- visibilityChanged(bool visible)
方法
- void setMeshAxisAndAngle(vector3d axis, real angle)
详细说明
样条曲线图用于将信息显示为由弯曲或笔直的 Catmull-Rom 样条曲线连接的一系列数据点。
该类型管理特定于样条线的可视化元素。
属性文档
baseColor : color |
设置序列的基色。
另请参阅 colorStyle 和GraphsTheme.seriesColors 。
baseGradient : Gradient |
设置序列的基本梯度。
另请参阅 colorStyle 和 GraphsTheme.seriesGradients。
colorStyle : GraphsTheme.ColorStyle |
设置系列的颜色样式。
另请参阅 GraphsTheme.ColorStyle 。
itemLabel : string |
格式化的项目标签。如果没有选中项或选中项不可见,则返回空字符串。
另请参阅 itemLabelFormat 。
itemLabelFormat : string |
该系列中数据项的标签格式。该格式用于单个项目标签,例如,当项目被选中时。如何解释格式取决于系列类型。
另请参阅 Bar3DSeries,Scatter3DSeries, 和Surface3DSeries 。
itemLabelVisible : bool |
如果true
,项目标签在图表中将绘制为浮动标签。否则不绘制项目标签。要在外部控件中显示项目标签,应将此属性设置为false
。默认值为true
。
另请参阅 itemLabelFormat 和itemLabel 。
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 |
设置系列的多项目高亮颜色。
multiHighlightGradient : Gradient |
设置系列的多条目高亮渐变色。
name : string |
系列名称。可通过标签@seriesName
以项目标签格式使用。
另请参阅 itemLabelFormat 。
singleHighlightColor : color |
设置系列的单项高亮颜色。
singleHighlightGradient : Gradient |
设置系列的单项高亮渐变色。
splineColor : color |
样条曲线的颜色。
splineKnotting : real |
样条曲线的节点参数。
该参数可以改变曲线的轮廓。当值为0.0
时,样条曲线被划分为均匀 Catmull-Rom 样条曲线;当值为0.5
时,样条曲线被划分为向心 Catmull-Rom 样条曲线;当值为1.0
时,样条曲线被划分为和弦 Catmull-Rom 样条曲线。
该值必须介于0.0
和1.0
之间。默认值为0.5
。
splineLooping : bool |
决定样条曲线是否循环。
这将在连接花键的系列的第一个点和最后一个点之间添加一个花键段,使其成为一个循环。
默认值为false
splineTension : real |
花键的张力。
在0.0
的值时,样条线段的曲率最大;在1.0
的值时,样条线段的曲率完全为直线;样条线段的曲率必须在0.0
和1.0
之间。0.0
splineVisible : bool |
样条线的可见度。默认值为true
。
type : Abstract3DSeries.SeriesType |
系列的类型。QAbstract3DSeries::SeriesType 值之一。
userDefinedMesh : string |
设置用户自定义网格的文件名,当mesh 为Abstract3DSeries.Mesh.UserDefined 时使用。
注: 文件必须是QtQuick3D 网格格式。使用balsam
转换工具从其他 3D 模型格式创建网格。
visible : bool |
设置系列的可见性。如果false
,则不会渲染序列。
信号文档
baseGradientChanged(Gradient gradient) |
当baseGradient 更改为gradient 时,将发出此信号。
注: 相应的处理程序是onBaseGradientChanged
。
colorStyleChanged(GraphsTheme.ColorStyle style) |
当colorStyle 变更为style 时,发出该信号。
注: 相应的处理程序是onColorStyleChanged
。
itemLabelFormatChanged(string format) |
当itemLabelFormat 变更为format 时,发出此信号。
注: 相应的处理程序是onItemLabelFormatChanged
。
itemLabelVisibilityChanged(bool visible) |
当 itemLabelVisibility 变更为visible 时,发出此信号。
注: 相应的处理程序是onItemLabelVisibilityChanged
。
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
。
singleHighlightColorChanged(color color) |
当singleHighlightColor 变更为color 时,发出此信号。
注: 相应的处理程序是onSingleHighlightColorChanged
。
singleHighlightGradientChanged(Gradient gradient) |
当singleHighlightGradient 变更为gradient 时,发出此信号。
注: 相应的处理程序是onSingleHighlightGradientChanged
。
userDefinedMeshChanged(string fileName) |
当userDefinedMesh 变更为fileName 时,发出此信号。
注: 相应的处理程序是onUserDefinedMeshChanged
。
visibilityChanged(bool visible) |
当系列可见性更改为visible 时,发出此信号。
注: 相应的处理程序是onVisibilityChanged
。
方法文档
方便函数,用于从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.