Qt3DExtras::QPlaneGeometry Class
class Qt3DExtras::QPlaneGeometryLa clase QPlaneGeometry permite la creación de un plano en el espacio 3D. Más...
| Cabecera: | #include <Qt3DExtras/QPlaneGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras)target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| En QML: | PlaneGeometry |
| Hereda: | Qt3DCore::QGeometry |
| Status: | Obsoleto |
Propiedades
|
|
Funciones públicas
| QPlaneGeometry(Qt3DCore::QNode *parent = nullptr) | |
| float | height() const |
| Qt3DCore::QAttribute * | indexAttribute() const |
| bool | mirrored() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| QSize | resolution() const |
| Qt3DCore::QAttribute * | tangentAttribute() const |
| Qt3DCore::QAttribute * | texCoordAttribute() const |
| void | updateIndices() |
| void | updateVertices() |
| float | width() const |
Ranuras públicas
| void | setHeight(float height) |
| void | setMirrored(bool mirrored) |
| void | setResolution(const QSize &resolution) |
| void | setWidth(float width) |
Señales
| void | heightChanged(float height) |
| void | mirroredChanged(bool mirrored) |
| void | resolutionChanged(const QSize &resolution) |
| void | widthChanged(float width) |
Descripción Detallada
La clase QPlaneGeometry es más comúnmente usada internamente por QPlaneMesh pero también puede ser usada en subclases personalizadas de Qt3DRender::QGeometryRenderer.
Documentación de Propiedades
height : float
Mantiene la altura del plano.
Funciones de acceso:
| float | height() const |
| void | setHeight(float height) |
Señal de aviso:
| void | heightChanged(float height) |
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Contiene el atributo de índice de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | indexAttribute() const |
mirrored : bool
Controla si las coordenadas UV del plano deben voltearse verticalmente.
Funciones de acceso:
| bool | mirrored() const |
| void | setMirrored(bool mirrored) |
Señal del notificador:
| void | mirroredChanged(bool mirrored) |
[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
Contiene el atributo de posición de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | positionAttribute() const |
resolution : QSize
Contiene la resolución del plano.
Funciones de acceso:
| QSize | resolution() const |
| void | setResolution(const QSize &resolution) |
Señal del notificador:
| void | resolutionChanged(const QSize &resolution) |
[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 la textura de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | texCoordAttribute() const |
width : float
Mantiene la anchura del plano.
Funciones de acceso:
| float | width() const |
| void | setWidth(float width) |
Señal del notificador:
| void | widthChanged(float width) |
Documentación de la función miembro
[explicit] QPlaneGeometry::QPlaneGeometry(Qt3DCore::QNode *parent = nullptr)
Construye una nueva QPlaneGeometry con parent.
void QPlaneGeometry::updateIndices()
Actualiza los índices en función de la resolución de la malla.
void QPlaneGeometry::updateVertices()
Actualiza los vértices en función de las propiedades de resolución, anchura y altura 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.