QExtrudedTextGeometry Class
class Qt3DExtras::QExtrudedTextGeometryDie Klasse QExtrudedTextGeometry ermöglicht die Erstellung eines 3D-extrudierten Textes im 3D-Raum. Mehr...
Kopfzeile: | #include <Qt3DExtras/QExtrudedTextGeometry> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
qmake: | QT += 3dextras |
In QML: | ExtrudedTextGeometry |
Vererbt: | Qt3DCore::QGeometry |
Status: | Veraltet |
Eigenschaften
|
|
Öffentliche Funktionen
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 |
Öffentliche Slots
void | setDepth(float extrusionLength) |
void | setFont(const QFont &font) |
void | setText(const QString &text) |
Signale
void | depthChanged(float extrusionLength) |
void | fontChanged(const QFont &font) |
void | textChanged(const QString &text) |
Detaillierte Beschreibung
Die Klasse QExtrudedTextGeometry wird am häufigsten intern von QText3DMesh verwendet, kann aber auch in benutzerdefinierten Qt3DRender::QGeometryRenderer Unterklassen verwendet werden.
Der Ursprung der Geometrie ist das hintere linke Ende der Grundlinie des Textes.
Dokumentation der Eigenschaft
extrusionLength : float
Enthält die Extrusionslänge des Textes.
Zugriffsfunktionen:
float | extrusionLength() const |
void | setDepth(float extrusionLength) |
Melder-Signal:
void | depthChanged(float extrusionLength) |
font : QFont
Enthält die Schriftart des Textes.
Die Geometrie wird durch die pointSize der Schriftart normalisiert, so dass eine größere pointSize eher zu einem glatteren als zu einem größeren Text führt. pixelSize sollte nicht verwendet werden.
Zugriffsfunktionen:
QFont | font() const |
void | setFont(const QFont &font) |
Benachrichtigungssignal:
void | fontChanged(const QFont &font) |
[read-only]
indexAttribute : Qt3DCore::QAttribute* const
Enthält das Geometrie-Index-Attribut.
Zugriffsfunktionen:
Qt3DCore::QAttribute * | indexAttribute() const |
[read-only]
normalAttribute : Qt3DCore::QAttribute* const
Enthält das Attribut "Geometrienormal".
Zugriffsfunktionen:
Qt3DCore::QAttribute * | normalAttribute() const |
[read-only]
positionAttribute : Qt3DCore::QAttribute* const
Enthält das Positionsattribut der Geometrie.
Zugriffsfunktionen:
Qt3DCore::QAttribute * | positionAttribute() const |
text : QString
Enthält den für das Netz verwendeten Text.
Zugriffsfunktionen:
QString | text() const |
void | setText(const QString &text) |
Benachrichtigungssignal:
void | textChanged(const QString &text) |
Member Function Dokumentation
[explicit]
QExtrudedTextGeometry::QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)
Konstruiert eine neue QExtrudedTextGeometry mit parent.
© 2025 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.