Nesta página

Qt3DExtras::QPlaneGeometry Class

class Qt3DExtras::QPlaneGeometry

A classe QPlaneGeometry permite a criação de um plano no espaço 3D. Mais...

Cabeçalho: #include <Qt3DExtras/QPlaneGeometry>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
No QML: PlaneGeometry
Herdado de: Qt3DCore::QGeometry
Status: Obsoleta

Esta classe está obsoleta. Recomendamos enfaticamente que não seja utilizada em código novo.

Propriedades

Funções 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

Slots públicos

void setHeight(float height)
void setMirrored(bool mirrored)
void setResolution(const QSize &resolution)
void setWidth(float width)

Sinais

void heightChanged(float height)
void mirroredChanged(bool mirrored)
void resolutionChanged(const QSize &resolution)
void widthChanged(float width)

Descrição detalhada

A classe `QPlaneGeometry` é mais comumente usada internamente pelo ` QPlaneMesh `, mas também pode ser usada em subclasses personalizadas de ` Qt3DRender::QGeometryRenderer `.

Documentação das propriedades

height : float

Mantém a altura do plano.

Funções de acesso:

float height() const
void setHeight(float height)

Sinal de notificação:

void heightChanged(float height)

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

Contém o atributo de índice geométrico.

Funções de acesso:

Qt3DCore::QAttribute *indexAttribute() const

mirrored : bool

Determina se as coordenadas UV do plano devem ser invertidas verticalmente.

Funções de acesso:

bool mirrored() const
void setMirrored(bool mirrored)

Sinal de notificação:

void mirroredChanged(bool mirrored)

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

Contém o atributo de normal da geometria.

Funções de acesso:

Qt3DCore::QAttribute *normalAttribute() const

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

Contém o atributo de posição da geometria.

Funções de acesso:

Qt3DCore::QAttribute *positionAttribute() const

resolution : QSize

Mantém a resolução do plano.

Funções de acesso:

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

Sinal do notificador:

void resolutionChanged(const QSize &resolution)

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

Contém o atributo de tangente da geometria.

Funções de acesso:

Qt3DCore::QAttribute *tangentAttribute() const

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

Contém o atributo de coordenadas de textura da geometria.

Funções de acesso:

Qt3DCore::QAttribute *texCoordAttribute() const

width : float

Armazena a largura do plano.

Funções de acesso:

float width() const
void setWidth(float width)

Sinal do notificador:

void widthChanged(float width)

Documentação das funções de membro

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

Cria um novo objeto `QPlaneGeometry` com ` parent`.

void QPlaneGeometry::updateIndices()

Atualiza os índices com base na resolução da malha.

void QPlaneGeometry::updateVertices()

Atualiza os vértices com base nas propriedades de resolução, largura e altura da malha.

© 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.