Surface3DSeries QML Type
在三维曲面图中表示数据序列。更多
Import Statement: | import QtDataVisualization 1.9 |
Since: | QtDataVisualization 1.0 |
In C++: | QSurface3DSeries |
Inherits: |
属性
- 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 |
表示当前系统是否支持曲面平铺着色。它至少需要 GLSL 1.2 版本和 GL_EXT_gpu_shader4 扩展。
注意: 此只读属性会在第一次渲染后设置为正确值。在此之前,它始终是true
。
invalidSelectionPosition : point |
提供无效选择位置的常量属性。将该位置设置为selectedPoint 属性后,将从该系列中清除选区。
另请参阅 AbstractGraph3D::clearSelection() 。
selectedPoint : point |
将曲面网格点设置在所选系列数据数组中某一行和某一列指定的位置。一次只能选择一个点。
要清除此序列的选择,invalidSelectionPosition 。如果将此序列添加到图表中,图表会根据用户交互或选择无效的情况调整选择。
在所选点的行之前从系列中移除行或插入行都会调整选区,使同一点保持在选区中。
另请参阅 AbstractGraph3D::clearSelection()。
textureFile : string |
曲面纹理的纹理文件名。如果要清除纹理,则设置一个空文件名。
wireframeColor : color |
用于绘制曲面线框网格线的颜色。
此属性在 Qt 6.3 中引入。
© 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.