本页内容

Qt3DRender::QFrontFace Class

class Qt3DRender::QFrontFace

QFrontFace 类定义了朝前和朝后的多边形。更多内容...

头文件: #include <qfrontface.h>
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 }

属性

公共函数

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::ClockWise0x0900顺时针多边形朝前。
Qt3DRender::QFrontFace::CounterClockWise0x0901逆时针多边形面向前方。

属性文档

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

© 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.