Qt3DExtras::QCylinderGeometry Class
class Qt3DExtras::QCylinderGeometryLa classe QCylinderGeometry permet de créer un cylindre dans l'espace 3D. Plus d'informations...
| En-tête : | #include <Qt3DExtras/QCylinderGeometry> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3dextras)target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake : | QT += 3dextras |
| En QML : | CylinderGeometry |
| Hérite : | Qt3DCore::QGeometry |
| Statut : | Déclassé |
Propriétés
|
|
Fonctions publiques
| QCylinderGeometry(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DCore::QAttribute * | indexAttribute() const |
| float | length() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| float | radius() const |
| int | rings() const |
| int | slices() const |
| Qt3DCore::QAttribute * | texCoordAttribute() const |
| void | updateIndices() |
| void | updateVertices() |
Emplacements publics
| void | setLength(float length) |
| void | setRadius(float radius) |
| void | setRings(int rings) |
| void | setSlices(int slices) |
Signaux
| void | lengthChanged(float length) |
| void | radiusChanged(float radius) |
| void | ringsChanged(int rings) |
| void | slicesChanged(int slices) |
Description détaillée
La classe QCylinderGeometry est le plus souvent utilisée en interne par QCylinderMesh mais peut également être utilisée dans des sous-classes personnalisées de Qt3DRender::QGeometryRenderer.
Documentation des propriétés
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Contient l'attribut d'index de géométrie.
Fonctions d'accès :
| Qt3DCore::QAttribute * | indexAttribute() const |
length : float
Indique la longueur du cylindre.
Fonctions d'accès :
| float | length() const |
| void | setLength(float length) |
Signal de notification :
| void | lengthChanged(float length) |
[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 |
radius : float
Indique le rayon du cylindre.
Fonctions d'accès :
| float | radius() const |
| void | setRadius(float radius) |
Signal de notification :
| void | radiusChanged(float radius) |
rings : int
Indique le nombre de bagues dans le cylindre.
Fonctions d'accès :
| int | rings() const |
| void | setRings(int rings) |
Signal de notification :
| void | ringsChanged(int rings) |
slices : int
Indique le nombre de tranches dans le cylindre.
Fonctions d'accès :
| int | slices() const |
| void | setSlices(int slices) |
Signal de notification :
| void | slicesChanged(int slices) |
[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 |
Fonction membre Documentation
[explicit] QCylinderGeometry::QCylinderGeometry(Qt3DCore::QNode *parent = nullptr)
Construit un nouveau QCylinderMesh avec parent.
void QCylinderGeometry::updateIndices()
Met à jour les indices en fonction des anneaux, des tranches et des propriétés de longueur.
void QCylinderGeometry::updateVertices()
Met à jour les sommets en fonction des anneaux, des tranches et des propriétés de longueur.
© 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.