Qt3DRender::QPickTriangleEvent Class
class Qt3DRender::QPickTriangleEventQPickTriangleEvent 클래스는 삼각형이 선택되었을 때의 정보를 저장합니다. 더 보기...
| 헤더: | #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
삼각형에서 두 번째 꼭짓점의 인덱스를 지정합니다
액세스 함수:
| uint | vertex2Index() const |
[read-only] vertex3Index : const uint
삼각형에서 세 번째 꼭짓점의 인덱스를 지정합니다.
액세스 함수:
| 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 및 * 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: 선택된 삼각형의 두 번째 점의 인덱스를 반환합니다.
참고: vertex2Index 속성에 대한게터 함수입니다.
uint QPickTriangleEvent::vertex3Index() const
QPickTriangleEvent::vertex3Index: 선택된 삼각형의 세 번째 점의 인덱스를 반환합니다.
참고: 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.