Qt3DExtras::QPlaneGeometryView Class
class Qt3DExtras::QPlaneGeometryView正方形平面网格更多
头文件: | #include <Qt3DExtras/QPlaneGeometryView> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
qmake: | QT += 3dextras |
在 QML 中: | PlaneGeometryView |
继承: | Qt3DCore::QGeometryView |
状态: | 已废弃 |
属性
- height : float
- meshResolution : QSize
- mirrored : bool
- width : float
公共功能
QPlaneGeometryView(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) |
成员函数 文档
[explicit]
QPlaneGeometryView::QPlaneGeometryView(Qt3DCore::QNode *parent = nullptr)
使用parent 构建一个新的 QPlaneGeometryView。
© 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.