Qt3DExtras::QExtrudedTextGeometry Class
class Qt3DExtras::QExtrudedTextGeometryLa clase QExtrudedTextGeometry permite la creación de un texto extruido 3D en el espacio 3D. Más...
| Cabecera: | #include <Qt3DExtras/QExtrudedTextGeometry> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras)target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| En QML: | ExtrudedTextGeometry |
| Hereda: | Qt3DCore::QGeometry |
| Status: | Obsoleto |
Propiedades
|
|
Funciones públicas
| 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 |
Ranuras públicas
| void | setDepth(float extrusionLength) |
| void | setFont(const QFont &font) |
| void | setText(const QString &text) |
Señales
| void | depthChanged(float extrusionLength) |
| void | fontChanged(const QFont &font) |
| void | textChanged(const QString &text) |
Descripción Detallada
La clase QExtrudedTextGeometry es más comúnmente utilizada internamente por QText3DMesh pero también puede ser utilizada en subclases personalizadas de Qt3DRender::QGeometryRenderer.
El origen de la geometría es el extremo posterior izquierdo de la línea de base del texto.
Documentación de propiedades
extrusionLength : float
Mantiene la longitud de extrusión del texto.
Funciones de acceso:
| float | extrusionLength() const |
| void | setDepth(float extrusionLength) |
Señal de aviso:
| void | depthChanged(float extrusionLength) |
font : QFont
Contiene la fuente del texto.
La geometría está normalizada por el pointSize de la fuente, por lo que un pointSize mayor dará como resultado un texto más suave, en lugar de más grande. pixelSize no debe utilizarse.
Funciones de acceso:
| QFont | font() const |
| void | setFont(const QFont &font) |
Señal del notificador:
| void | fontChanged(const QFont &font) |
[read-only] indexAttribute : Qt3DCore::QAttribute* const
Contiene el atributo de índice de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | indexAttribute() const |
[read-only] normalAttribute : Qt3DCore::QAttribute* const
Contiene el atributo normal de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | normalAttribute() const |
[read-only] positionAttribute : Qt3DCore::QAttribute* const
Contiene el atributo de posición de la geometría.
Funciones de acceso:
| Qt3DCore::QAttribute * | positionAttribute() const |
text : QString
Contiene el texto utilizado para la malla.
Funciones de acceso:
| QString | text() const |
| void | setText(const QString &text) |
Señal del notificador:
| void | textChanged(const QString &text) |
Documentación de la función miembro
[explicit] QExtrudedTextGeometry::QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)
Construye una nueva 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.