QAlphaTest Class

class Qt3DRender::QAlphaTest

QAlphaTestクラスはアルファ参照テストを指定します。詳細...

ヘッダー #include <QAlphaTest>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake QT += 3drender
QML で AlphaTest
を継承しています: Qt3DRender::QRenderState
ステータス非推奨

パブリックな型

enum AlphaFunction { Never, Always, Less, LessOrEqual, Equal, …, NotEqual }

プロパティ

パブリック機能

Qt3DRender::QAlphaTest::AlphaFunction alphaFunction() const
float referenceValue() const

パブリックスロット

void setAlphaFunction(Qt3DRender::QAlphaTest::AlphaFunction alphaFunction)
void setReferenceValue(float referenceValue)

シグナル

void alphaFunctionChanged(Qt3DRender::QAlphaTest::AlphaFunction alphaFunction)
void referenceValueChanged(float referenceValue)

詳細説明

OpenGLのドキュメントで説明されているように、アルファテストは、入力されるフラグメントのアルファ値と一定の参照値との比較の結果を条件として、フラグメントを破棄する。

メンバー型ドキュメント

enum QAlphaTest::AlphaFunction

アルファ関数値の列挙

定数説明
Qt3DRender::QAlphaTest::Never0x0200アルファテストに合格しない
Qt3DRender::QAlphaTest::Always0x0207常にアルファテストに合格
Qt3DRender::QAlphaTest::Less0x0201フラグメントのアルファ値が基準値以下の場合、アルファテストに合格
Qt3DRender::QAlphaTest::LessOrEqual0x0203フラグメントのアルファ値が基準値以下の場合、アルファテストに合格
Qt3DRender::QAlphaTest::Equal0x0202フラグメントαが参照値と等しい場合、αテストに合格する
Qt3DRender::QAlphaTest::GreaterOrEqual0x0206フラグメントαが参照値以上の場合、αテスト合格
Qt3DRender::QAlphaTest::Greater0x0204断片アルファ値が基準値より大きい場合、アルファ値テストに合格
Qt3DRender::QAlphaTest::NotEqual0x0205フラグメントαが参照値と等しくない場合、αテスト合格

プロパティ文書

alphaFunction : AlphaFunction

アルファ・テストで使用するアルファ関数を保持する。デフォルトはNever。

アクセス関数:

Qt3DRender::QAlphaTest::AlphaFunction alphaFunction() const
void setAlphaFunction(Qt3DRender::QAlphaTest::AlphaFunction alphaFunction)

通知シグナル:

void alphaFunctionChanged(Qt3DRender::QAlphaTest::AlphaFunction alphaFunction)

referenceValue : float

アルファテストで使用される基準値を保持する。デフォルトは0.0。設定すると、値は 0 から 1 の間でクランプされる。

アクセス関数:

float referenceValue() const
void setReferenceValue(float referenceValue)

通知シグナル:

void referenceValueChanged(float referenceValue)

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