Surface3DSeries QML Type
表示三维曲面图中的数据序列。更多...
| Import Statement: | import QtDataVisualization 1.12 |
| Since: | QtDataVisualization 1.0 |
| In C++: | QSurface3DSeries |
| Inherits: | |
| Status: | Deprecated |
此类型已弃用。我们强烈建议在新代码中不要使用它。
属性
- dataProxy : SurfaceDataProxy
- drawMode : DrawFlag
- flatShadingEnabled : bool
- flatShadingSupported : bool
- invalidSelectionPosition : point
- selectedPoint : point
- textureFile : string
- wireframeColor : color
(since 6.3)
详细说明
此类负责管理该系列特有的视觉元素,以及该系列的数据(通过数据代理)。
如需更完整的说明,请参阅QSurface3DSeries 。
另请参阅 Qt Data Visualization 数据处理。
属性文档
dataProxy : SurfaceDataProxy
活动数据代理。该序列会接管其上设置的任何代理,并在添加新代理时删除先前设置的代理。代理不能为空,也不能设置为另一个序列。
drawMode : DrawFlag
将绘图模式设置为以下选项之一:Surface3DSeries.DrawFlag 。不允许清除所有标志。
flatShadingEnabled : bool
将表面平铺着色设置为启用状态。默认值为true 。禁用时,表面法线会进行插值处理,使边缘看起来呈圆角;启用时,三角形上的法线保持不变,使三角形的颜色呈现实心效果。这使得模型数据更易于解读。
注意:平滑着色 表面至少需要 GLSL 1.2 版本,并支持 GL_EXT_gpu_shader4 扩展。flatShadingSupported 属性的值表示运行时是否支持平滑着色。
flatShadingSupported : bool [read-only]
指示当前系统是否支持曲面的平面着色。这需要至少 GLSL 1.2 版本,并具备 GL_EXT_gpu_shader4 扩展。
注意:此 只读属性将在首次渲染通过后设置为正确值。在此之前,其值始终为true 。
invalidSelectionPosition : point
一个常量属性,用于提供一个无效的选择位置。将该位置设置为selectedPoint 属性,可清除该系列中的选择内容。
另请参阅 AbstractGraph3D::clearSelection()。
selectedPoint : point
将系列数据数组中由行和列指定的位置处的表面网格点设为选中点。每次只能选中一个点。
要清除该系列的选择,请将位置设置为invalidSelectionPosition 。如果该系列被添加到图表中,图表可根据用户交互或当选择失效时自动调整选择范围。
在所选点所在行之前从该系列中删除或插入行时,系统会调整选定范围,以确保该点仍处于选定状态。
另请参阅 AbstractGraph3D::clearSelection()。
textureFile : string
表面纹理的纹理文件名。若要清除纹理,则设置为空文件名。
wireframeColor : color [since 6.3]
用于绘制曲面线框网格线的颜色。
该属性在 Qt 6.3 中引入。
© 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.