Qt3DExtras::QExtrudedTextGeometry Class
class Qt3DExtras::QExtrudedTextGeometryLa classe QExtrudedTextGeometry permet de créer un texte extrudé en 3D dans l'espace 3D. Plus d'informations...
| 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 : | Qt3DCore::QGeometry |
| Statut : | Déclassé |
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 le plus souvent utilisée en interne par le QText3DMesh, mais elle peut également être utilisée dans les sous-classes personnalisées de Qt3DRender::QGeometryRenderer.
L'origine de la géométrie est l'extrémité arrière gauche de la ligne de base du texte.
Documentation sur les propriétés
extrusionLength : float
Détient 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
Indique la police de caractères du texte.
La géométrie est normalisée par la taille de point de la police, de sorte qu'une taille de point plus grande se traduira par un texte plus lisse, plutôt que plus grand. pixelSize ne doit pas être utilisé.
Fonctions d'accès :
| QFont | font() const |
| void | setFont(const QFont &font) |
Signal du notificateur :
| void | fontChanged(const QFont &font) |
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Contient l'attribut d'index de géométrie.
Fonctions d'accès :
| Qt3DCore::QAttribute * | indexAttribute() const |
[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 |
text : QString
Contient le texte utilisé pour le maillage.
Fonctions d'accès :
| QString | text() const |
| void | setText(const QString &text) |
Signal du notificateur :
| void | textChanged(const QString &text) |
Member Function Documentation
[explicit] QExtrudedTextGeometry::QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)
Construit une nouvelle QExtrudedTextGeometry 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.