QPlaneMesh 类
class Qt3D Extras::QPlaneMesh正方形平面网格。 更多...
| 头文件 | #include <Qt3DExtras/QPlaneMesh> | 
| CMake | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) | 
| qmake | QT += 3dextras | 
| 由实例化 | PlaneMesh | 
| 继承自 | Qt3DRender::QGeometryRenderer | 
属性
- height : float
- meshResolution : QSize
- mirrored : bool
- width : float
公共函数
| QPlaneMesh(Qt3DCore::QNode *parent = nullptr) | |
| float | height() const | 
| QSize | meshResolution() const | 
| bool | mirrored() const | 
| float | width() const | 
公共槽
| void | setHeight(float height) | 
| void | setMeshResolution(const QSize &resolution) | 
| void | setMirrored(bool mirrored) | 
| void | setWidth(float width) | 
信号
| void | heightChanged(float height) | 
| void | meshResolutionChanged(const QSize &meshResolution) | 
| void | mirroredChanged(bool mirrored) | 
| void | widthChanged(float width) | 
属性文档
height : float
保持平面高度。
访问函数
| float | height() const | 
| void | setHeight(float height) | 
通知信号
| void | heightChanged(float height) | 
meshResolution : QSize
包含平面分辨率。此属性的宽度和高度值指定了在相应维度中生成的网格顶点数量。
访问函数
| QSize | meshResolution() const | 
| void | setMeshResolution(const QSize &resolution) | 
通知信号
| void | meshResolutionChanged(const QSize &meshResolution) | 
mirrored : bool
控制平面的 UV 坐标是否应垂直翻转。
访问函数
| bool | mirrored() const | 
| void | setMirrored(bool mirrored) | 
通知信号
| void | mirroredChanged(bool mirrored) | 
width : float
包含平面宽度。
访问函数
| float | width() const | 
| void | setWidth(float width) | 
通知信号
| void | widthChanged(float width) | 
© 2024 Qt 公司。包含在此处的文档贡献的版权属于其各自的所有者。在此提供文档受自由软件基金会发布的 GNU 自由文档许可证版本 1.3 的条款约束。Qt 及其相关标志是芬兰及其它国家 Qt 公司的商标。所有其它商标归其各自所有者所有。