QPickTriangleEvent Class

class Qt3DRender::QPickTriangleEvent

QPickTriangleEventクラスは、三角形がピックされたときの情報を保持します。詳細...

ヘッダー #include <QPickTriangleEvent>
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 のインスタンスを運びます。

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

注意: インデックス付きレンダリングの場合、点のインデックスは座標の配列に対する相対値であり、インデックスの配列に対する相対値ではありません。

QPickingSettingsQPickEventQObjectPickerも参照してください

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

[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

3次元座標u,v,wを返す。

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

uint QPickTriangleEvent::vertex1Index() const

QPickTriangleEvent::vertex1Index ピックした三角形の最初の点のインデックスを返します。

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

uint QPickTriangleEvent::vertex2Index() const

QPickTriangleEvent::vertex2Index ピックした三角形の二番目の点のインデックスを返します。

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

uint QPickTriangleEvent::vertex3Index() const

QPickTriangleEvent::vertex3Index ピックした三角形の三番目の点のインデックスを返します。

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

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