Qt3DRender::QDepthRange Class
class Qt3DRender::QDepthRange深度バッファに書き込まれた深度値の再マッピングを有効にします。詳細...
| ヘッダー: | #include <qdepthrange.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML内: | DepthRange |
| 継承元: | Qt3DRender::QRenderState |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨されません。
プロパティ
パブリック関数
パブリック・スロット
| void | setFarValue(double value) |
| void | setNearValue(double value) |
シグナル
| void | farValueChanged(double farValue) |
| void | nearValueChanged(double nearValue) |
詳細な説明
デフォルトでは、OpenGL はシーンの深度情報を [0.0, 1.0] の範囲で深度バッファに書き込みます。0.0 は近クリップ平面、1.0 は遠クリップ平面に対応します。 QDepthRange を使用すると、これらの値を別の範囲にマッピングできるため、シーンの一部が常に他の部分の前面または背面にレンダリングされるようになります。near および far の有効な値は 0 から 1 の間です。
プロパティのドキュメント
farValue : double
ファー・クリップ・プレーンに対応する深度バッファの値。有効な値は 0 から 1 の範囲です。
アクセス関数:
| double | farValue() const |
| void | setFarValue(double value) |
通知信号:
| void | farValueChanged(double farValue) |
nearValue : double
ニアクリッププレーンに対応する深度バッファの値。有効な値は 0 から 1 の範囲です。
アクセス関数:
| double | nearValue() const |
| void | setNearValue(double value) |
通知信号:
| void | nearValueChanged(double nearValue) |
© 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.