Qt3DRender::QFrontFace Class
class Qt3DRender::QFrontFaceQFrontFace 类定义了正面和背面多边形。更多
头文件: | #include <QFrontFace> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
在 QML 中: | FrontFace |
继承: | Qt3DRender::QRenderState |
状态: | 已废弃 |
公共类型
enum | WindingDirection { ClockWise, CounterClockWise } |
属性
- direction : WindingDirection
公共功能
QFrontFace(Qt3DCore::QNode *parent = nullptr) | |
Qt3DRender::QFrontFace::WindingDirection | direction() const |
公共插槽
void | setDirection(Qt3DRender::QFrontFace::WindingDirection direction) |
信号
void | directionChanged(Qt3DRender::QFrontFace::WindingDirection direction) |
详细说明
Qt3DRender::QFrontFace 设置前端多边形的卷绕方向。
另请参见 QCullFace 。
成员类型文档
enum QFrontFace::WindingDirection
该枚举指定了绕线方向值。
常数 | 值 | 说明 |
---|---|---|
Qt3DRender::QFrontFace::ClockWise | 0x0900 | 顺时针多边形正面朝向。 |
Qt3DRender::QFrontFace::CounterClockWise | 0x0901 | 逆时针多边形朝前。 |
属性文档
direction : WindingDirection
保持正面多边形的卷绕方向。默认为顺时针。
访问功能:
Qt3DRender::QFrontFace::WindingDirection | direction() const |
void | setDirection(Qt3DRender::QFrontFace::WindingDirection direction) |
通知信号:
void | directionChanged(Qt3DRender::QFrontFace::WindingDirection direction) |
成员函数 文档
[explicit]
QFrontFace::QFrontFace(Qt3DCore::QNode *parent = nullptr)
构造函数创建一个新的QFrontFace::QFrontFace 实例,该实例具有指定的parent
© 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.