Qt3DCore::QGeometryView Class
class Qt3DCore::QGeometryViewEncapsula los detalles de la geometría. Más...
| Cabecera: | #include <QGeometryView> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore)target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| Desde: | Qt 6.0 |
| En QML: | GeometryView |
| Hereda de: | Qt3DCore::QNode |
| Heredado de: | Qt3DExtras::QConeGeometryView, Qt3DExtras::QCuboidGeometryView, Qt3DExtras::QCylinderGeometryView, Qt3DExtras::QPlaneGeometryView, Qt3DExtras::QSphereGeometryView, y Qt3DExtras::QTorusGeometryView |
| Estado: | Deprecated |
Tipos públicos
| enum | PrimitiveType { Points, Lines, LineLoop, LineStrip, Triangles, …, Patches } |
Propiedades
|
|
Funciones 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 |
Ranuras públicas
| 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) |
Señales
| 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) |
Descripción detallada
Un GeometryView contiene toda la información necesaria para manejar una Geometría. Una Geometría contiene las coordenadas de los datos de la geometría - GeometryView especifica cómo interpretar esos datos.
Documentación del tipo de miembro
enum QGeometryView::PrimitiveType
Tipo de la primitiva.
| Constante | Valor | Descripción |
|---|---|---|
Qt3DCore::QGeometryView::Points | 0x0000 | Lista de puntos |
Qt3DCore::QGeometryView::Lines | 0x0001 | Lista de líneas |
Qt3DCore::QGeometryView::LineLoop | 0x0002 | Grupo conectado de líneas conectadas en los extremos formando un bucle |
Qt3DCore::QGeometryView::LineStrip | 0x0003 | Grupo conectado de líneas |
Qt3DCore::QGeometryView::Triangles | 0x0004 | Lista de triángulos |
Qt3DCore::QGeometryView::TriangleStrip | 0x0005 | Lista de triángulos enlazados |
Qt3DCore::QGeometryView::TriangleFan | 0x0006 | Lista de triángulos conectados donde todos los triángulos comparten el primer vértice |
Qt3DCore::QGeometryView::LinesAdjacency | 0x000A | Permite al sombreador de geometría acceder a líneas adyacentes en una lista de líneas |
Qt3DCore::QGeometryView::TrianglesAdjacency | 0x000C | Permite al sombreador de geometría acceder a triángulos adyacentes en una lista de triángulos. |
Qt3DCore::QGeometryView::LineStripAdjacency | 0x000B | Permite al sombreador de geometría acceder a líneas adyacentes en una tira de líneas. |
Qt3DCore::QGeometryView::TriangleStripAdjacency | 0x000D | Permite que el sombreador de geometría acceda a triángulos adyacentes en una tira de triángulos. |
Qt3DCore::QGeometryView::Patches | 0x000E | Único tipo primitivo aceptado por el sombreador de teselación en el que un parche consta de un número arbitrario de vértices |
Documentación de propiedades
firstInstance : int
Contiene la instancia base.
Funciones de acceso:
| int | firstInstance() const |
| void | setFirstInstance(int firstInstance) |
Señal del notificador:
| void | firstInstanceChanged(int firstInstance) |
firstVertex : int
Contiene el vértice base.
Funciones de acceso:
| int | firstVertex() const |
| void | setFirstVertex(int firstVertex) |
Señal notificadora:
| void | firstVertexChanged(int firstVertex) |
geometry : Qt3DCore::QGeometry*
Contiene la geometría.
Funciones de acceso:
| Qt3DCore::QGeometry * | geometry() const |
| void | setGeometry(Qt3DCore::QGeometry *geometry) |
Señal del notificador:
| void | geometryChanged(Qt3DCore::QGeometry *geometry) |
indexBufferByteOffset : int
Contiene el desplazamiento de bytes en el búfer de índice.
Funciones de acceso:
| int | indexBufferByteOffset() const |
| void | setIndexBufferByteOffset(int offset) |
Señal notificadora:
| void | indexBufferByteOffsetChanged(int offset) |
indexOffset : int
Contiene el vértice base.
Funciones de acceso:
| int | indexOffset() const |
| void | setIndexOffset(int indexOffset) |
Señal notificadora:
| void | indexOffsetChanged(int indexOffset) |
instanceCount : int
Contiene el recuento de instancias.
Funciones de acceso:
| int | instanceCount() const |
| void | setInstanceCount(int instanceCount) |
Señal del notificador:
| void | instanceCountChanged(int instanceCount) |
primitiveRestartEnabled : bool
Contiene el indicador de reinicio primitivo.
Funciones de acceso:
| bool | primitiveRestartEnabled() const |
| void | setPrimitiveRestartEnabled(bool enabled) |
Señal notificadora:
| void | primitiveRestartEnabledChanged(bool primitiveRestartEnabled) |
primitiveType : PrimitiveType
Contiene el tipo primitivo.
Funciones de acceso:
| Qt3DCore::QGeometryView::PrimitiveType | primitiveType() const |
| void | setPrimitiveType(Qt3DCore::QGeometryView::PrimitiveType primitiveType) |
Señal notificadora:
| void | primitiveTypeChanged(Qt3DCore::QGeometryView::PrimitiveType primitiveType) |
restartIndexValue : int
Contiene el índice de reinicio.
Funciones de acceso:
| int | restartIndexValue() const |
| void | setRestartIndexValue(int index) |
Señal de aviso:
| void | restartIndexValueChanged(int restartIndexValue) |
vertexCount : int
Contiene el recuento de primitivas.
Funciones de acceso:
| int | vertexCount() const |
| void | setVertexCount(int vertexCount) |
Señal notificadora:
| void | vertexCountChanged(int vertexCount) |
verticesPerPatch : int
Contiene vértices por parche.
Funciones de acceso:
| int | verticesPerPatch() const |
| void | setVerticesPerPatch(int verticesPerPatch) |
Señal notificadora:
| void | verticesPerPatchChanged(int verticesPerPatch) |
Documentación de funciones miembro
[explicit] QGeometryView::QGeometryView(Qt3DCore::QNode *parent = nullptr)
Construye un nuevo QGeometryView con 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.