QClipPlane Class

class Qt3DRender::QClipPlane

gl_ClipDistanceを使用するシェーダーで使用できる追加のOpenGLクリッピングプレーンを有効にします。詳細...

ヘッダー #include <QClipPlane>
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は、これらの追加プレーンの1つを有効にすることができます。これらのプレーンは、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)

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