QPickTriangleEvent Class
class Qt3DRender::QPickTriangleEventQPickTriangleEvent 클래스는 삼각형이 선택될 때 정보를 저장합니다. 더 보기...
Header: | #include <QPickTriangleEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
QML에서: | PickTriangleEvent |
상속합니다: | Qt3DRender::QPickEvent |
상태: | Deprecated |
속성
|
|
공공 기능
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 및 *를 사용하여 QPickEvent 을 새로 만듭니다. vertex3Index
uint QPickTriangleEvent::triangleIndex() const
QPickTriangleEvent::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 프로퍼티에 대한 겟터 함수입니다.
© 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.