Qt3DExtras::QCuboidGeometry Class
class Qt3DExtras::QCuboidGeometryLa classe `QCuboidGeometry` permet de créer un parallélépipède rectangle dans l'espace 3D. En savoir plus...
| En-tête : | #include <Qt3DExtras/QCuboidGeometry> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake : | QT += 3dextras |
| En QML : | CuboidGeometry |
| 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
| QCuboidGeometry(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DCore::QAttribute * | indexAttribute() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| Qt3DCore::QAttribute * | tangentAttribute() const |
| Qt3DCore::QAttribute * | texCoordAttribute() const |
| void | updateIndices() |
| void | updateVertices() |
| float | xExtent() const |
| QSize | xyMeshResolution() const |
| QSize | xzMeshResolution() const |
| float | yExtent() const |
| QSize | yzMeshResolution() const |
| float | zExtent() const |
Emplacements publics
| void | setXExtent(float xExtent) |
| void | setXYMeshResolution(const QSize &resolution) |
| void | setXZMeshResolution(const QSize &resolution) |
| void | setYExtent(float yExtent) |
| void | setYZMeshResolution(const QSize &resolution) |
| void | setZExtent(float zExtent) |
Signaux
| void | xExtentChanged(float xExtent) |
| void | xyMeshResolutionChanged(const QSize &xyMeshResolution) |
| void | xzMeshResolutionChanged(const QSize &xzMeshResolution) |
| void | yExtentChanged(float yExtent) |
| void | yzMeshResolutionChanged(const QSize &yzMeshResolution) |
| void | zExtentChanged(float zExtent) |
Description détaillée
La classe QCuboidGeometry est principalement utilisée en interne par l'QCuboidMesh, mais peut également être utilisée dans des sous-classes personnalisées d'Qt3DRender::QGeometryRenderer.
Documentation des propriétés
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Contient l'attribut d'index géométrique.
Fonctions d'accès :
| Qt3DCore::QAttribute * | indexAttribute() const |
[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 |
[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 |
xExtent : float
Contient l'étendue x de la géométrie.
Fonctions d’accès :
| float | xExtent() const |
| void | setXExtent(float xExtent) |
Signal de notification :
| void | xExtentChanged(float xExtent) |
xyMeshResolution : QSize
Définit la résolution x-y. Les valeurs de largeur et de hauteur de cette propriété spécifient le nombre de sommets générés pour les faces x-y du maillage.
Fonctions d'accès :
| QSize | xyMeshResolution() const |
| void | setXYMeshResolution(const QSize &resolution) |
Signal de notification :
| void | xyMeshResolutionChanged(const QSize &xyMeshResolution) |
xzMeshResolution : QSize
Définit la résolution x-z. Les valeurs de largeur et de hauteur de cette propriété spécifient le nombre de sommets générés pour les faces x-z du maillage.
Fonctions d'accès :
| QSize | xzMeshResolution() const |
| void | setXZMeshResolution(const QSize &resolution) |
Signal de notification :
| void | xzMeshResolutionChanged(const QSize &xzMeshResolution) |
yExtent : float
Contient la coordonnée y de la géométrie.
Fonctions d’accès :
| float | yExtent() const |
| void | setYExtent(float yExtent) |
Signal de notification :
| void | yExtentChanged(float yExtent) |
yzMeshResolution : QSize
Définit la résolution y-z. Les valeurs de largeur et de hauteur de cette propriété spécifient le nombre de sommets générés pour les faces y-z du maillage.
Fonctions d'accès :
| QSize | yzMeshResolution() const |
| void | setYZMeshResolution(const QSize &resolution) |
Signal de notification :
| void | yzMeshResolutionChanged(const QSize &yzMeshResolution) |
zExtent : float
Contient l'étendue z de la géométrie.
Fonctions d'accès :
| float | zExtent() const |
| void | setZExtent(float zExtent) |
Signal de notification :
| void | zExtentChanged(float zExtent) |
Documentation des fonctions membres
[explicit] QCuboidGeometry::QCuboidGeometry(Qt3DCore::QNode *parent = nullptr)
Crée un nouvel objet `QCuboidGeometry` à partir de ` parent`.
void QCuboidGeometry::updateIndices()
Mise à jour des indices en fonction des résolutions de maillage.
void QCuboidGeometry::updateVertices()
Mise à jour des sommets en fonction des résolutions 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.