このページでは

Qt3DRender::QPickTriangleEvent Class

class Qt3DRender::QPickTriangleEvent

QPickTriangleEvent クラスは、三角形が選択された際の情報を保持します。詳細...

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

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

プロパティ

公開関数

QPickTriangleEvent()
QPickTriangleEvent(const QPointF &position, const QVector3D &worldIntersection, const QVector3D &localIntersection, float distance, uint triangleIndex, uint vertex1Index, uint vertex2Index, uint vertex3Index)
uint triangleIndex() const
QVector3D uvw() const
uint vertex1Index() const
uint vertex2Index() const
uint vertex3Index() const

詳細な説明

QPickingSettings::pickMode() がQPickingSettings::TrianglePicking に設定されている場合、QObjectPicker のシグナルにはQPickTriangleEventのインスタンスが渡されます。

これには、ピックされた三角形の詳細が含まれます。

注: インデックス付きレンダリングの場合 、点のインデックスは、インデックスの配列ではなく、座標の配列を基準としています。

QPickingSettings 、QPickEvent 、およびQObjectPickerも参照してください 。

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

[read-only] triangleIndex : const uint

イベントの三角形インデックスを指定します

アクセス関数:

uint triangleIndex() const

[read-only] uvw : const QVector3D

アクセス関数:

QVector3D uvw() const

[read-only] vertex1Index : const uint

三角形内の最初の頂点のインデックスを指定します

アクセス関数:

uint vertex1Index() const

[read-only] vertex2Index : const uint

三角形における2番目の頂点のインデックスを指定します

アクセス関数:

uint vertex2Index() const

[read-only] vertex3Index : const uint

三角形の3番目の頂点のインデックスを指定します

アクセス関数:

uint vertex3Index() const

メンバ関数のドキュメント

QPickTriangleEvent::QPickTriangleEvent()

新しい QPickEvent を作成します。

QPickTriangleEvent::QPickTriangleEvent(const QPointF &position, const QVector3D &worldIntersection, const QVector3D &localIntersection, float distance, uint triangleIndex, uint vertex1Index, uint vertex2Index, uint vertex3Index)

*

QPickTriangleEvent::QPickTriangleEvent 指定されたパラメータ *position 、 *worldIntersection 、 *localIntersection 、 *distance 、 *triangleIndex 、 *vertex1Index 、 *vertex2Index および * を使用して、新しい QPickEvent を生成します。vertex3Index

uint QPickTriangleEvent::triangleIndex() const

QPickTriangleEvent::triangleIndex 選択された三角形のインデックスを返します

注: プロパティ triangleIndexのゲッター関数です 。

QVector3D QPickTriangleEvent::uvw() const

3D座標 u、v、w を返します。

注: プロパティ uvw のゲッター 関数です。

uint QPickTriangleEvent::vertex1Index() const

QPickTriangleEvent::vertex1Index 選択された三角形の最初の頂点のインデックスを返します

注: プロパティ `vertex1Index`のゲッター関数です 。

uint QPickTriangleEvent::vertex2Index() const

QPickTriangleEvent::vertex2Index 選択された三角形の2番目の頂点のインデックスを返します

注: プロパティ vertex2Indexのゲッター関数です 。

uint QPickTriangleEvent::vertex3Index() const

QPickTriangleEvent::vertex3Index 選択された三角形の3番目の頂点のインデックスを返します

注: プロパティ vertex3Indexのゲッター関数です 。

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