Qt3DExtras::QExtrudedTextGeometry Class
class Qt3DExtras::QExtrudedTextGeometryLa classe QExtrudedTextGeometry permet de créer un texte extrudé en 3D dans l'espace tridimensionnel. En savoir plus...
| En-tête : | #include <Qt3DExtras/QExtrudedTextGeometry> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake : | QT += 3dextras |
| En QML : | ExtrudedTextGeometry |
| 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
| QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr) | |
| float | extrusionLength() const |
| QFont | font() const |
| Qt3DCore::QAttribute * | indexAttribute() const |
| Qt3DCore::QAttribute * | normalAttribute() const |
| Qt3DCore::QAttribute * | positionAttribute() const |
| QString | text() const |
Emplacements publics
| void | setDepth(float extrusionLength) |
| void | setFont(const QFont &font) |
| void | setText(const QString &text) |
Signaux
| void | depthChanged(float extrusionLength) |
| void | fontChanged(const QFont &font) |
| void | textChanged(const QString &text) |
Description détaillée
La classe QExtrudedTextGeometry est principalement utilisée en interne par la classe QText3DMesh, mais peut également être utilisée dans des sous-classes personnalisées de Qt3DRender::QGeometryRenderer.
L'origine de la géométrie est située à l'extrémité arrière gauche de la ligne de base du texte.
Documentation sur les propriétés
extrusionLength : float
Contient la longueur d'extrusion du texte.
Fonctions d’accès :
| float | extrusionLength() const |
| void | setDepth(float extrusionLength) |
Signal de notification :
| void | depthChanged(float extrusionLength) |
font : QFont
Contient la police du texte.
La géométrie est normalisée en fonction de la taille en points (pointSize) de la police ; ainsi, une valeur plus élevée de pointSize donnera un texte plus lisse, et non pas plus grand. Il ne faut pas utiliser pixelSize.
Fonctions d'accès :
| QFont | font() const |
| void | setFont(const QFont &font) |
Signal de notification :
| void | fontChanged(const QFont &font) |
[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 |
text : QString
Contient le texte utilisé pour le maillage.
Fonctions d'accès :
| QString | text() const |
| void | setText(const QString &text) |
Signal de notification :
| void | textChanged(const QString &text) |
Documentation des fonctions membres
[explicit] QExtrudedTextGeometry::QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)
Crée un nouvel objet `QExtrudedTextGeometry` à l'aide de ` 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.