Qt3DCore::QGeometryView Class
class Qt3DCore::QGeometryView기하학적 세부 정보를 캡슐화합니다. 더 보기...
| 헤더: | #include <QGeometryView> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| 다음부터: | Qt 6.0부터 |
| QML에서: | GeometryView |
| 상속: | Qt3DCore::QNode |
| 상속하는 클래스: | Qt3DExtras::QConeGeometryView, Qt3DExtras::QCuboidGeometryView, Qt3DExtras::QCylinderGeometryView, Qt3DExtras::QPlaneGeometryView, Qt3DExtras::QSphereGeometryView 및 Qt3DExtras::QTorusGeometryView |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
공개 타입
| enum | PrimitiveType { Points, Lines, LineLoop, LineStrip, Triangles, …, Patches } |
속성
|
|
공개 함수
| QGeometryView(Qt3DCore::QNode *parent = nullptr) | |
| int | firstInstance() const |
| int | firstVertex() const |
| Qt3DCore::QGeometry * | geometry() const |
| int | indexBufferByteOffset() const |
| int | indexOffset() const |
| int | instanceCount() const |
| bool | primitiveRestartEnabled() const |
| Qt3DCore::QGeometryView::PrimitiveType | primitiveType() const |
| int | restartIndexValue() const |
| int | vertexCount() const |
| int | verticesPerPatch() const |
공개 슬롯
| void | setFirstInstance(int firstInstance) |
| void | setFirstVertex(int firstVertex) |
| void | setGeometry(Qt3DCore::QGeometry *geometry) |
| void | setIndexBufferByteOffset(int offset) |
| void | setIndexOffset(int indexOffset) |
| void | setInstanceCount(int instanceCount) |
| void | setPrimitiveRestartEnabled(bool enabled) |
| void | setPrimitiveType(Qt3DCore::QGeometryView::PrimitiveType primitiveType) |
| void | setRestartIndexValue(int index) |
| void | setVertexCount(int vertexCount) |
| void | setVerticesPerPatch(int verticesPerPatch) |
신호
| void | firstInstanceChanged(int firstInstance) |
| void | firstVertexChanged(int firstVertex) |
| void | geometryChanged(Qt3DCore::QGeometry *geometry) |
| void | indexBufferByteOffsetChanged(int offset) |
| void | indexOffsetChanged(int indexOffset) |
| void | instanceCountChanged(int instanceCount) |
| void | primitiveRestartEnabledChanged(bool primitiveRestartEnabled) |
| void | primitiveTypeChanged(Qt3DCore::QGeometryView::PrimitiveType primitiveType) |
| void | restartIndexValueChanged(int restartIndexValue) |
| void | vertexCountChanged(int vertexCount) |
| void | verticesPerPatchChanged(int verticesPerPatch) |
상세 설명
GeometryView 는 Geometry를 처리하는 데 필요한 모든 정보를 포함합니다. Geometry는 기하 데이터의 좌표를 포함하며, GeometryView 는 해당 데이터를 해석하는 방법을 지정합니다.
멤버 유형 설명
enum QGeometryView::PrimitiveType
기본형의 유형.
| 상수 | 값 | 설명 |
|---|---|---|
Qt3DCore::QGeometryView::Points | 0x0000 | 점의 목록 |
Qt3DCore::QGeometryView::Lines | 0x0001 | 선의 목록 |
Qt3DCore::QGeometryView::LineLoop | 0x0002 | 양 끝이 연결되어 고리를 형성하는 선분의 연결된 집합 |
Qt3DCore::QGeometryView::LineStrip | 0x0003 | 연결된 선의 집합 |
Qt3DCore::QGeometryView::Triangles | 0x0004 | 삼각형 목록 |
Qt3DCore::QGeometryView::TriangleStrip | 0x0005 | 연결된 삼각형 목록 |
Qt3DCore::QGeometryView::TriangleFan | 0x0006 | 모든 삼각형이 첫 번째 꼭짓점을 공유하는 연결된 삼각형 목록 |
Qt3DCore::QGeometryView::LinesAdjacency | 0x000A | 지오메트리 셰이더가 선 목록 내의 인접한 선에 접근할 수 있게 함 |
Qt3DCore::QGeometryView::TrianglesAdjacency | 0x000C | 지오메트리 셰이더가 삼각형 목록에서 인접한 삼각형에 접근할 수 있게 합니다 |
Qt3DCore::QGeometryView::LineStripAdjacency | 0x000B | 지오메트리 셰이더가 라인 스트립 내의 인접한 선에 접근할 수 있게 합니다 |
Qt3DCore::QGeometryView::TriangleStripAdjacency | 0x000D | 지오메트리 셰이더가 삼각형 스트립 내의 인접한 삼각형에 접근할 수 있게 합니다 |
Qt3DCore::QGeometryView::Patches | 0x000E | 패치가 임의의 수의 정점으로 구성되는 테셀레이션 셰이더에서 허용되는 유일한 프리미티브 유형 |
속성 설명서
firstInstance : int
기본 인스턴스를 보관합니다.
액세스 함수:
| int | firstInstance() const |
| void | setFirstInstance(int firstInstance) |
알림 신호:
| void | firstInstanceChanged(int firstInstance) |
firstVertex : int
베이스 정점을 저장합니다.
액세스 함수:
| int | firstVertex() const |
| void | setFirstVertex(int firstVertex) |
알림 신호:
| void | firstVertexChanged(int firstVertex) |
geometry : Qt3DCore::QGeometry*
지오메트리를 저장합니다.
액세스 함수:
| Qt3DCore::QGeometry * | geometry() const |
| void | setGeometry(Qt3DCore::QGeometry *geometry) |
알림 신호:
| void | geometryChanged(Qt3DCore::QGeometry *geometry) |
indexBufferByteOffset : int
인덱스 버퍼 내의 바이트 오프셋을 저장합니다.
액세스 함수:
| int | indexBufferByteOffset() const |
| void | setIndexBufferByteOffset(int offset) |
알림 신호:
| void | indexBufferByteOffsetChanged(int offset) |
indexOffset : int
베이스 정점을 저장합니다.
액세스 함수:
| int | indexOffset() const |
| void | setIndexOffset(int indexOffset) |
알림 신호:
| void | indexOffsetChanged(int indexOffset) |
instanceCount : int
인스턴스 수를 저장합니다.
액세스 함수:
| int | instanceCount() const |
| void | setInstanceCount(int instanceCount) |
알림 신호:
| void | instanceCountChanged(int instanceCount) |
primitiveRestartEnabled : bool
기본 재시작 플래그를 보유합니다.
액세스 함수:
| bool | primitiveRestartEnabled() const |
| void | setPrimitiveRestartEnabled(bool enabled) |
알림 신호:
| void | primitiveRestartEnabledChanged(bool primitiveRestartEnabled) |
primitiveType : PrimitiveType
기본 데이터형을 저장합니다.
액세스 함수:
| Qt3DCore::QGeometryView::PrimitiveType | primitiveType() const |
| void | setPrimitiveType(Qt3DCore::QGeometryView::PrimitiveType primitiveType) |
알림 신호:
| void | primitiveTypeChanged(Qt3DCore::QGeometryView::PrimitiveType primitiveType) |
restartIndexValue : int
재시작 인덱스를 저장합니다.
액세스 함수:
| int | restartIndexValue() const |
| void | setRestartIndexValue(int index) |
알림 신호:
| void | restartIndexValueChanged(int restartIndexValue) |
vertexCount : int
기본 카운트 값을 저장합니다.
액세스 함수:
| int | vertexCount() const |
| void | setVertexCount(int vertexCount) |
알림 신호:
| void | vertexCountChanged(int vertexCount) |
verticesPerPatch : int
패치당 정점 수를 저장합니다.
액세스 함수:
| int | verticesPerPatch() const |
| void | setVerticesPerPatch(int verticesPerPatch) |
알림 신호:
| void | verticesPerPatchChanged(int verticesPerPatch) |
멤버 함수 문서
[explicit] QGeometryView::QGeometryView(Qt3DCore::QNode *parent = nullptr)
parent 를 사용하여 새로운 QGeometryView를 생성합니다.
© 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.