Sur cette page

Qt3DExtras::QPlaneMesh Class

class Qt3DExtras::QPlaneMesh

Un maillage plan carré. En savoir plus...

En-tête : #include <Qt3DExtras/QPlaneMesh>
CMake : find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake : QT += 3dextras
En QML : PlaneMesh
Hérite de : Qt3DRender::QGeometryRenderer
Statut : Obsolète

Cette classe est obsolète. Nous déconseillons fortement de l'utiliser dans du nouveau code.

Propriétés

Fonctions publiques

QPlaneMesh(Qt3DCore::QNode *parent = nullptr)
float height() const
QSize meshResolution() const
bool mirrored() const
float width() const

Emplacements publics

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

Signaux

void heightChanged(float height)
void meshResolutionChanged(const QSize &meshResolution)
void mirroredChanged(bool mirrored)
void widthChanged(float width)

Description détaillée

Documentation sur les 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)

meshResolution : QSize

Définit la résolution du plan. Les valeurs de largeur et de hauteur de cette propriété indiquent le nombre de sommets générés pour le maillage dans les dimensions correspondantes.

Fonctions d'accès :

QSize meshResolution() const
void setMeshResolution(const QSize &resolution)

Signal de notification :

void meshResolutionChanged(const QSize &meshResolution)

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)

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] QPlaneMesh::QPlaneMesh(Qt3DCore::QNode *parent = nullptr)

Crée un nouvel objet `QPlaneMesh` avec ` parent`.

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