Sur cette page

Qt3DExtras::QPlaneGeometry Class

class Qt3DExtras::QPlaneGeometry

La classe QPlaneGeometry permet de créer un plan dans l'espace 3D. Plus d'informations...

En-tête : #include <Qt3DExtras/QPlaneGeometry>
CMake : find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake : QT += 3dextras
En QML : PlaneGeometry
Hérite : Qt3DCore::QGeometry
Statut : Déclassé

Propriétés

Fonctions publiques

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

Emplacements publics

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

Signaux

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

Description détaillée

La classe QPlaneGeometry est le plus souvent utilisée en interne par QPlaneMesh mais peut également être utilisée dans des sous-classes personnalisées de Qt3DRender::QGeometryRenderer.

Documentation des propriétés

height : float

Maintient la hauteur du plan.

Fonctions d'accès :

float height() const
void setHeight(float height)

Signal de notification :

void heightChanged(float height)

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

Contient l'attribut d'index de géométrie.

Fonctions d'accès :

Qt3DCore::QAttribute *indexAttribute() const

mirrored : bool

Contrôle si les coordonnées UV du plan doivent être retournées verticalement.

Fonctions d'accès :

bool mirrored() const
void setMirrored(bool mirrored)

Signal de notification :

void mirroredChanged(bool mirrored)

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

Détient l'attribut normal de la géométrie.

Fonctions d'accès :

Qt3DCore::QAttribute *normalAttribute() const

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

Contient l'attribut de position de la géométrie.

Fonctions d'accès :

Qt3DCore::QAttribute *positionAttribute() const

resolution : QSize

Détient la résolution du plan.

Fonctions d'accès :

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

Signal de notification :

void resolutionChanged(const QSize &resolution)

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

Détient l'attribut tangent de la géométrie.

Fonctions d'accès :

Qt3DCore::QAttribute *tangentAttribute() const

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

Contient l'attribut de coordonnées de la texture de la géométrie.

Fonctions d'accès :

Qt3DCore::QAttribute *texCoordAttribute() const

width : float

Indique la largeur du plan.

Fonctions d'accès :

float width() const
void setWidth(float width)

Signal de notification :

void widthChanged(float width)

Member Function Documentation

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

Construit un nouveau QPlaneGeometry avec parent.

void QPlaneGeometry::updateIndices()

Met à jour les indices en fonction de la résolution du maillage.

void QPlaneGeometry::updateVertices()

Met à jour les vertices en fonction de la résolution, de la largeur et de la hauteur du maillage.

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