Qt3DExtras::QExtrudedTextGeometry Class
class Qt3DExtras::QExtrudedTextGeometryLa classe QExtrudedTextGeometry consente di creare un testo estruso in 3D nello spazio tridimensionale. Per saperne di più...
| Intestazione: | #include <Qt3DExtras/QExtrudedTextGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| In QML: | ExtrudedTextGeometry |
| Eredita da: | Qt3DCore::QGeometry |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel codice nuovo.
Proprietà
|
|
Funzioni pubbliche
| 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 |
Slot pubblici
| void | setDepth(float extrusionLength) |
| void | setFont(const QFont &font) |
| void | setText(const QString &text) |
Segnali
| void | depthChanged(float extrusionLength) |
| void | fontChanged(const QFont &font) |
| void | textChanged(const QString &text) |
Descrizione dettagliata
La classe QExtrudedTextGeometry è utilizzata principalmente internamente da QText3DMesh, ma può essere impiegata anche in sottoclassi personalizzate di Qt3DRender::QGeometryRenderer.
L'origine della geometria è l'estremità posteriore sinistra della linea di base del testo.
Documentazione delle proprietà
extrusionLength : float
Contiene la lunghezza di estrusione del testo.
Funzioni di accesso:
| float | extrusionLength() const |
| void | setDepth(float extrusionLength) |
Segnale di notifica:
| void | depthChanged(float extrusionLength) |
font : QFont
Contiene il font del testo.
La geometria viene normalizzata in base al valore pointSize del font, quindi un valore pointSize maggiore produrrà un testo più liscio, anziché più grande. Non si dovrebbe utilizzare pixelSize.
Funzioni di accesso:
| QFont | font() const |
| void | setFont(const QFont &font) |
Segnale di notifica:
| void | fontChanged(const QFont &font) |
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Contiene l'attributo dell'indice geometrico.
Funzioni di accesso:
| Qt3DCore::QAttribute * | indexAttribute() const |
[read-only] normalAttribute : Qt3DCore::QAttribute* const
Contiene l'attributo "normale" della geometria.
Funzioni di accesso:
| Qt3DCore::QAttribute * | normalAttribute() const |
[read-only] positionAttribute : Qt3DCore::QAttribute* const
Contiene l'attributo relativo alla posizione geometrica.
Funzioni di accesso:
| Qt3DCore::QAttribute * | positionAttribute() const |
text : QString
Contiene il testo utilizzato per la mesh.
Funzioni di accesso:
| QString | text() const |
| void | setText(const QString &text) |
Segnale di notifica:
| void | textChanged(const QString &text) |
Documentazione delle funzioni membro
[explicit] QExtrudedTextGeometry::QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)
Crea un nuovo oggetto `QExtrudedTextGeometry` con ` 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.