Qt3DExtras::QCuboidGeometry Class
class Qt3DExtras::QCuboidGeometryLa clase `QCuboidGeometry` permite crear un cuboide en el espacio 3D. Más información...
| Encabezado: | #include <Qt3DExtras/QCuboidGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| En QML: | CuboidGeometry |
| Heredado de: | Qt3DCore::QGeometry |
| Estado: | Obsoleto |
Esta clase está obsoleta. Se desaconseja encarecidamente su uso en código nuevo.
Propiedades
|
|
Funciones públicas
| QCuboidGeometry(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DCore::QAttribute * | indexAttribute() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| Qt3DCore::QAttribute * | tangentAttribute() const |
| Qt3DCore::QAttribute * | texCoordAttribute() const |
| void | updateIndices() |
| void | updateVertices() |
| float | xExtent() const |
| QSize | xyMeshResolution() const |
| QSize | xzMeshResolution() const |
| float | yExtent() const |
| QSize | yzMeshResolution() const |
| float | zExtent() const |
Ranuras públicas
| void | setXExtent(float xExtent) |
| void | setXYMeshResolution(const QSize &resolution) |
| void | setXZMeshResolution(const QSize &resolution) |
| void | setYExtent(float yExtent) |
| void | setYZMeshResolution(const QSize &resolution) |
| void | setZExtent(float zExtent) |
Señales
| void | xExtentChanged(float xExtent) |
| void | xyMeshResolutionChanged(const QSize &xyMeshResolution) |
| void | xzMeshResolutionChanged(const QSize &xzMeshResolution) |
| void | yExtentChanged(float yExtent) |
| void | yzMeshResolutionChanged(const QSize &yzMeshResolution) |
| void | zExtentChanged(float zExtent) |
Descripción detallada
La clase `QCuboidGeometry` se utiliza principalmente de forma interna en el ` QCuboidMesh `, pero también puede emplearse en subclases personalizadas de ` Qt3DRender::QGeometryRenderer `.
Documentación de propiedades
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Contiene el atributo de índice geométrico.
Funciones de acceso:
| Qt3DCore::QAttribute * | indexAttribute() const |
[read-only] normalAttribute : Qt3DCore::QAttribute* const
Contiene el atributo «normal» de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | normalAttribute() const |
[read-only] positionAttribute : Qt3DCore::QAttribute* const
Almacena el atributo de posición geométrica.
Funciones de acceso:
| Qt3DCore::QAttribute * | positionAttribute() const |
[read-only] tangentAttribute : Qt3DCore::QAttribute* const
Contiene el atributo «tangente» de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | tangentAttribute() const |
[read-only] texCoordAttribute : Qt3DCore::QAttribute* const
Contiene el atributo de coordenadas de textura geométrica.
Funciones de acceso:
| Qt3DCore::QAttribute * | texCoordAttribute() const |
xExtent : float
Almacena la extensión x de la geometría.
Funciones de acceso:
| float | xExtent() const |
| void | setXExtent(float xExtent) |
Señal de notificación:
| void | xExtentChanged(float xExtent) |
xyMeshResolution : QSize
Establece la resolución x-y. Los valores de anchura y altura de esta propiedad especifican el número de vértices generados para las caras x-y de la malla.
Funciones de acceso:
| QSize | xyMeshResolution() const |
| void | setXYMeshResolution(const QSize &resolution) |
Señal de notificación:
| void | xyMeshResolutionChanged(const QSize &xyMeshResolution) |
xzMeshResolution : QSize
Establece la resolución x-z. Los valores de anchura y altura de esta propiedad especifican el número de vértices generados para las caras x-z de la malla.
Funciones de acceso:
| QSize | xzMeshResolution() const |
| void | setXZMeshResolution(const QSize &resolution) |
Señal de notificación:
| void | xzMeshResolutionChanged(const QSize &xzMeshResolution) |
yExtent : float
Almacena la extensión «y» de la geometría.
Funciones de acceso:
| float | yExtent() const |
| void | setYExtent(float yExtent) |
Señal de notificación:
| void | yExtentChanged(float yExtent) |
yzMeshResolution : QSize
Determina la resolución en los ejes y y z. Los valores de anchura y altura de esta propiedad especifican el número de vértices generados para las caras en los ejes y y z de la malla.
Funciones de acceso:
| QSize | yzMeshResolution() const |
| void | setYZMeshResolution(const QSize &resolution) |
Señal de notificación:
| void | yzMeshResolutionChanged(const QSize &yzMeshResolution) |
zExtent : float
Almacena la extensión en la dirección z de la geometría.
Funciones de acceso:
| float | zExtent() const |
| void | setZExtent(float zExtent) |
Señal de notificación:
| void | zExtentChanged(float zExtent) |
Documentación de las funciones de miembro
[explicit] QCuboidGeometry::QCuboidGeometry(Qt3DCore::QNode *parent = nullptr)
Crea un nuevo objeto `QCuboidGeometry` con ` parent`.
void QCuboidGeometry::updateIndices()
Actualiza los índices en función de las resoluciones de la malla.
void QCuboidGeometry::updateVertices()
Actualiza los vértices en función de las resoluciones de la malla.
© 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.