QExtrudedTextGeometry Class

(Qt3DExtras::QExtrudedTextGeometry)

The QExtrudedTextGeometry class allows creation of a 3D extruded text in 3D space. 更多...

头文件: #include <Qt3DExtras/QExtrudedTextGeometry>
qmake: QT += 3dextras
开始支持版本: Qt 5.9
Instantiated By: ExtrudedTextGeometry
基类: Qt3DRender::QGeometry

属性

公有函数

QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)
float extrusionLength() const
QFont font() const
Qt3DRender::QAttribute *indexAttribute() const
Qt3DRender::QAttribute *normalAttribute() const
Qt3DRender::QAttribute *positionAttribute() const
QString text() const

公有槽函数

void setDepth(float extrusionLength)
void setFont(const QFont &font)
void setText(const QString &text)

信号

void depthChanged(float extrusionLength)
void fontChanged(const QFont &font)
void textChanged(const QString &text)

受保护的函数

QExtrudedTextGeometry(QExtrudedTextGeometryPrivate &dd, QNode *parent = nullptr)

其他继承的成员

  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

The QExtrudedTextGeometry class allows creation of a 3D extruded text in 3D space.

The QExtrudedTextGeometry class is most commonly used internally by the QText3DMesh but can also be used in custom Qt3DRender::QGeometryRenderer subclasses.

属性

extrusionLength : float

访问函数:

float extrusionLength() const
void setDepth(float extrusionLength)

Notifier signal:

void depthChanged(float extrusionLength)

font : QFont

访问函数:

QFont font() const
void setFont(const QFont &font)

Notifier signal:

void fontChanged(const QFont &font)

indexAttribute : Qt3DRender::QAttribute * const

访问函数:

Qt3DRender::QAttribute *indexAttribute() const

normalAttribute : Qt3DRender::QAttribute * const

访问函数:

Qt3DRender::QAttribute *normalAttribute() const

positionAttribute : Qt3DRender::QAttribute * const

Holds the geometry position attribute.

访问函数:

Qt3DRender::QAttribute *positionAttribute() const

text : QString

访问函数:

QString text() const
void setText(const QString &text)

Notifier signal:

void textChanged(const QString &text)

成员函数

QExtrudedTextGeometry::QExtrudedTextGeometry(Qt3DCore::QNode *parent = nullptr)

Constructs a new QExtrudedTextGeometry with parent.

[protected] QExtrudedTextGeometry::QExtrudedTextGeometry(QExtrudedTextGeometryPrivate &dd, QNode *parent = nullptr)

Copy constructor.