En esta página

Qt3DExtras::QPlaneGeometry Class

class Qt3DExtras::QPlaneGeometry

La clase QPlaneGeometry permite crear un plano en el espacio 3D. Más información...

Encabezado: #include <Qt3DExtras/QPlaneGeometry>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
En QML: PlaneGeometry
Heredado de: Qt3DCore::QGeometry
Estado: Obsoleto

Esta clase está obsoleta. Recomendamos encarecidamente no utilizarla en código nuevo.

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` se utiliza principalmente de forma interna en el ` QPlaneMesh `, pero también puede emplearse en subclases personalizadas de ` Qt3DRender::QGeometryRenderer `.

Documentación de propiedades

height : float

Mantiene la altura del avión.

Funciones de acceso:

float height() const
void setHeight(float height)

Señal de notificación:

void heightChanged(float height)

[read-only] indexAttribute : Qt3DCore::QAttribute* const

Contiene el atributo de índice geométrico.

Funciones de acceso:

Qt3DCore::QAttribute *indexAttribute() const

mirrored : bool

Determina si las coordenadas UV del plano deben invertirse verticalmente.

Funciones de acceso:

bool mirrored() const
void setMirrored(bool mirrored)

Señal de notificación:

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

Almacena el atributo de posición geométrica.

Funciones de acceso:

Qt3DCore::QAttribute *positionAttribute() const

resolution : QSize

Mantiene la resolución del plano.

Funciones de acceso:

QSize resolution() const
void setResolution(const QSize &resolution)

Señal de notificación:

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 textura geométrica.

Funciones de acceso:

Qt3DCore::QAttribute *texCoordAttribute() const

width : float

Almacena la anchura del plano.

Funciones de acceso:

float width() const
void setWidth(float width)

Señal de notificación:

void widthChanged(float width)

Documentación de las funciones de miembro

[explicit] QPlaneGeometry::QPlaneGeometry(Qt3DCore::QNode *parent = nullptr)

Crea un nuevo objeto `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.