Qt3DCore::QGeometryView Class
class Qt3DCore::QGeometryViewEncapsula detalhes geométricos. Mais...
| Cabeçalho: | #include <QGeometryView> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| Desde: | Qt 6.0 |
| No QML: | GeometryView |
| Herda de: | Qt3DCore::QNode |
| Herdado por: | Qt3DExtras::QConeGeometryView, Qt3DExtras::QCuboidGeometryView, Qt3DExtras::QCylinderGeometryView, Qt3DExtras::QPlaneGeometryView, Qt3DExtras::QSphereGeometryView e Qt3DExtras::QTorusGeometryView |
| Status: | Obsoleta |
Esta classe está obsoleta. Recomendamos enfaticamente que não seja usada em código novo.
Tipos públicos
| enum | PrimitiveType { Points, Lines, LineLoop, LineStrip, Triangles, …, Patches } |
Propriedades
|
|
Funções públicas
| 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 |
Slots públicos
| 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) |
Sinais
| 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) |
Descrição detalhada
Um ` GeometryView ` contém todas as informações necessárias para lidar com uma `Geometry`. Uma `Geometry` contém as coordenadas dos dados geométricos — ` GeometryView ` especifica como interpretar esses dados.
Documentação dos tipos de membros
enum QGeometryView::PrimitiveType
O tipo da primitiva.
| Constante | Valor | Descrição |
|---|---|---|
Qt3DCore::QGeometryView::Points | 0x0000 | Lista de pontos |
Qt3DCore::QGeometryView::Lines | 0x0001 | Lista de linhas |
Qt3DCore::QGeometryView::LineLoop | 0x0002 | Grupo de linhas conectadas pelas extremidades, formando um laço |
Qt3DCore::QGeometryView::LineStrip | 0x0003 | Grupo de linhas conectadas |
Qt3DCore::QGeometryView::Triangles | 0x0004 | Lista de triângulos |
Qt3DCore::QGeometryView::TriangleStrip | 0x0005 | Lista de triângulos conectados |
Qt3DCore::QGeometryView::TriangleFan | 0x0006 | Lista de triângulos conectados em que todos os triângulos compartilham o primeiro vértice |
Qt3DCore::QGeometryView::LinesAdjacency | 0x000A | Permite que o shader de geometria acesse linhas adjacentes em uma lista de linhas |
Qt3DCore::QGeometryView::TrianglesAdjacency | 0x000C | Permite que o shader de geometria acesse triângulos adjacentes em uma lista de triângulos |
Qt3DCore::QGeometryView::LineStripAdjacency | 0x000B | Permite que o shader de geometria acesse linhas adjacentes em uma faixa de linhas |
Qt3DCore::QGeometryView::TriangleStripAdjacency | 0x000D | Permite que o shader de geometria acesse triângulos adjacentes em uma faixa de triângulos |
Qt3DCore::QGeometryView::Patches | 0x000E | Único tipo de primitiva aceito pelo shader de tesselação, em que um patch consiste em um número arbitrário de vértices |
Documentação da propriedade
firstInstance : int
Contém a instância base.
Funções de acesso:
| int | firstInstance() const |
| void | setFirstInstance(int firstInstance) |
Sinal do notificador:
| void | firstInstanceChanged(int firstInstance) |
firstVertex : int
Contém o vértice base.
Funções de acesso:
| int | firstVertex() const |
| void | setFirstVertex(int firstVertex) |
Sinal do notificador:
| void | firstVertexChanged(int firstVertex) |
geometry : Qt3DCore::QGeometry*
Contém a geometria.
Funções de acesso:
| Qt3DCore::QGeometry * | geometry() const |
| void | setGeometry(Qt3DCore::QGeometry *geometry) |
Sinal do notificador:
| void | geometryChanged(Qt3DCore::QGeometry *geometry) |
indexBufferByteOffset : int
Armazena o deslocamento em bytes no buffer de índice.
Funções de acesso:
| int | indexBufferByteOffset() const |
| void | setIndexBufferByteOffset(int offset) |
Sinal do notificador:
| void | indexBufferByteOffsetChanged(int offset) |
indexOffset : int
Contém o vértice base.
Funções de acesso:
| int | indexOffset() const |
| void | setIndexOffset(int indexOffset) |
Sinal do notificador:
| void | indexOffsetChanged(int indexOffset) |
instanceCount : int
Armazena a contagem de instâncias.
Funções de acesso:
| int | instanceCount() const |
| void | setInstanceCount(int instanceCount) |
Sinal do notificador:
| void | instanceCountChanged(int instanceCount) |
primitiveRestartEnabled : bool
Contém o sinalizador de reinício primitivo.
Funções de acesso:
| bool | primitiveRestartEnabled() const |
| void | setPrimitiveRestartEnabled(bool enabled) |
Sinal do Notifier:
| void | primitiveRestartEnabledChanged(bool primitiveRestartEnabled) |
primitiveType : PrimitiveType
Contém o tipo primitivo.
Funções de acesso:
| Qt3DCore::QGeometryView::PrimitiveType | primitiveType() const |
| void | setPrimitiveType(Qt3DCore::QGeometryView::PrimitiveType primitiveType) |
Sinal do notificador:
| void | primitiveTypeChanged(Qt3DCore::QGeometryView::PrimitiveType primitiveType) |
restartIndexValue : int
Armazena o índice de reinício.
Funções de acesso:
| int | restartIndexValue() const |
| void | setRestartIndexValue(int index) |
Sinal do notificador:
| void | restartIndexValueChanged(int restartIndexValue) |
vertexCount : int
Armazena a contagem de primitivas.
Funções de acesso:
| int | vertexCount() const |
| void | setVertexCount(int vertexCount) |
Sinal do notificador:
| void | vertexCountChanged(int vertexCount) |
verticesPerPatch : int
Armazena vértices por patch.
Funções de acesso:
| int | verticesPerPatch() const |
| void | setVerticesPerPatch(int verticesPerPatch) |
Sinal do notificador:
| void | verticesPerPatchChanged(int verticesPerPatch) |
Documentação das funções de membro
[explicit] QGeometryView::QGeometryView(Qt3DCore::QNode *parent = nullptr)
Cria um novo objeto `QGeometryView` com ` parent`.
© 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.