Qt3DCore::QGeometry Class
class Qt3DCore::QGeometryEncapsula la geometría. Más...
| Cabecera: | #include <QGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore)target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
| qmake: | QT += 3dcore |
| En QML: | Geometry |
| Hereda: | Qt3DCore::QNode |
| Heredado de: | Qt3DExtras::QConeGeometry, Qt3DExtras::QCuboidGeometry, Qt3DExtras::QCylinderGeometry, Qt3DExtras::QExtrudedTextGeometry, Qt3DExtras::QPlaneGeometry, Qt3DExtras::QSphereGeometry, y Qt3DExtras::QTorusGeometry |
| Estado: | Deprecated |
Propiedades
- boundingVolumePositionAttribute : Qt3DCore::QAttribute*
- maxExtent : QVector3D
- minExtent : QVector3D
Funciones públicas
| QGeometry(Qt3DCore::QNode *parent = nullptr) | |
| void | addAttribute(Qt3DCore::QAttribute *attribute) |
| QList<Qt3DCore::QAttribute *> | attributes() const |
| Qt3DCore::QAttribute * | boundingVolumePositionAttribute() const |
| QVector3D | maxExtent() const |
| QVector3D | minExtent() const |
| void | removeAttribute(Qt3DCore::QAttribute *attribute) |
Ranuras públicas
| void | setBoundingVolumePositionAttribute(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
Señales
| void | boundingVolumePositionAttributeChanged(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
| void | maxExtentChanged(const QVector3D &maxExtent) |
| void | minExtentChanged(const QVector3D &minExtent) |
Descripción Detallada
Una clase Qt3DCore::QGeometry se utiliza para agrupar una lista de objetos Qt3DCore::QAttribute juntos para formar una forma geométrica Qt3D es capaz de renderizar utilizando Qt3DCore::QGeometryRenderer. Se puede establecer un atributo especial para calcular el volumen límite de la forma.
Documentación de Propiedades
boundingVolumePositionAttribute : Qt3DCore::QAttribute*
Contiene el atributo utilizado para calcular el volumen delimitador. El volumen delimitador se utiliza internamente para el picking y el culling del frustum de la vista.
Si no se especifica, el sistema buscará el atributo utilizando el nombre devuelto por QAttribute::defaultPositionAttributeName.
Funciones de acceso:
| Qt3DCore::QAttribute * | boundingVolumePositionAttribute() const |
| void | setBoundingVolumePositionAttribute(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
Señal notificadora:
| void | boundingVolumePositionAttributeChanged(Qt3DCore::QAttribute *boundingVolumePositionAttribute) |
Véase también Qt3DCore::QAttribute.
[read-only] maxExtent : QVector3D
Mantiene el vértice con los valores de posición x, y, z más altos.
Funciones de acceso:
| QVector3D | maxExtent() const |
Señal notificadora:
| void | maxExtentChanged(const QVector3D &maxExtent) |
[read-only] minExtent : QVector3D
Mantiene el vértice con los valores de posición x, y, z más bajos.
Funciones de acceso:
| QVector3D | minExtent() const |
Señal notificadora:
| void | minExtentChanged(const QVector3D &minExtent) |
Documentación de la función miembro
[explicit] QGeometry::QGeometry(Qt3DCore::QNode *parent = nullptr)
Construye una nueva QGeometry con parent.
[invokable] void QGeometry::addAttribute(Qt3DCore::QAttribute *attribute)
Añade un attribute a esta geometría.
Nota: Esta función puede invocarse a través del sistema de metaobjetos y desde QML. Véase Q_INVOKABLE.
QList<Qt3DCore::QAttribute *> QGeometry::attributes() const
Devuelve la lista de atributos de esta geometría.
[invokable] void QGeometry::removeAttribute(Qt3DCore::QAttribute *attribute)
Elimina el attribute dado de esta geometría.
Nota: Esta función puede invocarse a través del sistema de metaobjetos y desde QML. Véase Q_INVOKABLE.
© 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.