Qt3DExtras::QPlaneGeometry Class
class Qt3DExtras::QPlaneGeometryLa classe QPlaneGeometry permet de créer un plan dans l'espace 3D. En savoir plus...
| 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 de : | Qt3DCore::QGeometry |
| Statut : | Obsolète |
Cette classe est obsolète. Nous déconseillons fortement de l'utiliser dans du nouveau code.
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 principalement utilisée en interne par l'QPlaneMesh, mais peut également être utilisée dans des sous-classes personnalisées d'Qt3DRender::QGeometryRenderer.
Documentation des propriétés
height : float
Maintient la hauteur de l'avion.
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 géométrique.
Fonctions d'accès :
| Qt3DCore::QAttribute * | indexAttribute() const |
mirrored : bool
Détermine si les coordonnées UV du plan doivent être inversé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
Contient 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 géométrique.
Fonctions d'accès :
| Qt3DCore::QAttribute * | positionAttribute() const |
resolution : QSize
Contient 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
Contient l'attribut « tangente » 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 texture géométrique.
Fonctions d'accès :
| Qt3DCore::QAttribute * | texCoordAttribute() const |
width : float
Contient la largeur du plan.
Fonctions d'accès :
| float | width() const |
| void | setWidth(float width) |
Signal de notification :
| void | widthChanged(float width) |
Documentation des fonctions membres
[explicit] QPlaneGeometry::QPlaneGeometry(Qt3DCore::QNode *parent = nullptr)
Crée un nouvel objet `QPlaneGeometry` à l'aide de ` parent`.
void QPlaneGeometry::updateIndices()
Mise à jour des indices en fonction de la résolution du maillage.
void QPlaneGeometry::updateVertices()
Mise à jour des sommets en fonction de la résolution du maillage et des propriétés de largeur et de hauteur.
© 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.