このページでは

Qt3DRender::QClipPlane Class

class Qt3DRender::QClipPlane

gl_ClipDistance を使用して、シェーダー内で利用可能な追加の OpenGL クリッピングプレーンを有効にします。詳細...

ヘッダー: #include <qclipplane.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML内: ClipPlane
継承元: Qt3DRender::QRenderState
ステータス: 非推奨

このクラスは非推奨です。新しいコードでの使用は強く推奨されません。

プロパティ

パブリック関数

float distance() const
QVector3D normal() const
int planeIndex() const

パブリックスロット

void setDistance(float)
void setNormal(QVector3D)
void setPlaneIndex(int)

シグナル

void distanceChanged(float distance)
void normalChanged(QVector3D normal)
void planeIndexChanged(int planeIndex)

詳細な説明

デフォルトでは、OpenGL は最大 8 つの追加クリッピングプレーンをサポートしています。 Qt3DCore::QClipPlane を使用すると、これらの追加クリッピングプレーンのいずれかを有効にすることができます。これらのプレーンは、gl_ClipDistance[i] を使用してシェーダー内で操作することができ、i の値は 0 から 7 までの範囲です。基盤となる実装では 8 つ以上のクリッピングプレーンがサポートされている場合がありますが、保証されるものではありません。

プロパティのドキュメント

distance : float

ワールド原点からの平面までの距離を保持します。

アクセス関数:

float distance() const
void setDistance(float)

通知シグナル:

void distanceChanged(float distance)

normal : QVector3D

平面の法線を保持します。

アクセス関数:

QVector3D normal() const
void setNormal(QVector3D)

通知信号:

void normalChanged(QVector3D normal)

planeIndex : int

平面のインデックスを保持します。

注:通常は0 ~7の範囲です。

アクセス関数:

int planeIndex() const
void setPlaneIndex(int)

通知信号:

void planeIndexChanged(int planeIndex)

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