Qt3DRender::QCullFace Class
class Qt3DRender::QCullFaceQCullFace クラスは、前面カリングと背面カリングのどちらを有効にするかを指定します。詳細...
| ヘッダー: | #include <qcullface.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML内: | CullFace |
| 継承元: | Qt3DRender::QRenderState |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
パブリック型
| enum | CullingMode { NoCulling, Front, Back, FrontAndBack } |
プロパティ
- mode : CullingMode
パブリック関数
パブリックスロット
| void | setMode(Qt3DRender::QCullFace::CullingMode mode) |
シグナル
| void | modeChanged(Qt3DRender::QCullFace::CullingMode mode) |
詳細な説明
QCullFace は、前面または背面のファセットをカリングするかどうかを設定します。ファセットには、三角形、四角形、多角形、長方形が含まれます。
QRenderPass のaddRenderState()メソッドを呼び出すことで追加できます:
// using namespace Qt3DRender;
QRenderPass *renderPass = new QRenderPass();
// Create a front face culling render state
QCullFace *cullFront = new QCullFace();
cullFront->setMode(QCullFace::Front);
// Add the render state to the render pass
renderPass->addRenderState(cullFront);あるいは、QRenderStateSet に対して addRenderState() メソッドを呼び出すことで追加できます:
// using namespace Qt3DRender;
QRenderStateSet *renderStateSet = new QRenderStateSet();
// Create a front face culling render state
QCullFace *cullFront = new QCullFace();
cullFront->setMode(QCullFace::Front);
// Add the render state to the render pass
renderStateSet->addRenderState(cullFront);QFrontFaceも参照してください 。
メンバ型のドキュメント
enum QCullFace::CullingMode
この列挙型は、カリングモードの値を指定します。
| 定数 | 値 | 説明 |
|---|---|---|
Qt3DRender::QCullFace::NoCulling | 0x0 | カリングは無効です |
Qt3DRender::QCullFace::Front | 0x0404 | 前面向きのポリゴンに対してカリングが有効 |
Qt3DRender::QCullFace::Back | 0x0405 | 背面向きのポリゴンに対してカリングが有効 |
Qt3DRender::QCullFace::FrontAndBack | 0x0408 | すべてのポリゴンに対してカリングが有効であり、点と線が描画されます |
プロパティのドキュメント
mode : CullingMode
QCullFace で使用されるカリングモードを保持します。デフォルトはQCullFace に設定されています。戻る。
アクセス関数:
| Qt3DRender::QCullFace::CullingMode | mode() const |
| void | setMode(Qt3DRender::QCullFace::CullingMode mode) |
通知シグナル:
| void | modeChanged(Qt3DRender::QCullFace::CullingMode mode) |
メンバ関数のドキュメント
[explicit] QCullFace::QCullFace(Qt3DCore::QNode *parent = nullptr)
parent を親として、新しいQCullFace::QCullFace インスタンスを作成します。
© 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.