The QExtrudedTextGeometry class allows creation of a 3D extruded text in 3D space. 更多...
| 头: | #include <Qt3DExtras/QExtrudedTextGeometry> | 
| qmake: | QT += 3dextras | 
| Since: | Qt 5.9 | 
| 实例化: | ExtrudedTextGeometry | 
| 继承: | Qt3DRender::QGeometry | 
该类在 Qt 5.9 引入。
								
  | 
							
								
  | 
						
| 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 ) | 
The QExtrudedTextGeometry class is most commonly used internally by the QText3DMesh but can also be used in custom Qt3DRender::QGeometryRenderer 子类。
The origin of the geometry is the rear left end of the text's baseline.
Holds the extrusion length of the text.
访问函数:
| float | extrusionLength () const | 
| void | setDepth (float extrusionLength ) | 
通知程序信号:
| void | depthChanged (float extrusionLength ) | 
Holds the font of the text.
The geometry is normalized by the font's pointSize, so a larger pointSize will result in smoother, rather than larger, text. pixelSize should not be used.
访问函数:
| QFont | font () const | 
| void | setFont (const QFont & font ) | 
通知程序信号:
| void | fontChanged (const QFont & font ) | 
Holds the geometry index attribute.
访问函数:
| Qt3DRender::QAttribute * | indexAttribute () const | 
Holds the geometry normal attribute.
访问函数:
| Qt3DRender::QAttribute * | normalAttribute () const | 
Holds the geometry position attribute.
访问函数:
| Qt3DRender::QAttribute * | positionAttribute () const | 
Holds the text used for the mesh.
访问函数:
| QString | text () const | 
| void | setText (const QString & text ) | 
通知程序信号:
| void | textChanged (const QString & text ) | 
Constructs a new QExtrudedTextGeometry with parent .