QExtrudedTextGeometry¶
The QExtrudedTextGeometry
class allows creation of a 3D extruded text in 3D space. More…
Synopsis¶
Functions¶
def
extrusionLength
()def
font
()def
indexAttribute
()def
normalAttribute
()def
positionAttribute
()def
text
()
Slots¶
Signals¶
def
depthChanged
(extrusionLength)def
fontChanged
(font)def
textChanged
(text)
Detailed Description¶
The QExtrudedTextGeometry
class is most commonly used internally by the QText3DMesh but can also be used in custom QGeometryRenderer
subclasses.
The origin of the geometry is the rear left end of the text’s baseline.
- class PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry([parent=None])¶
- Parameters
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QExtrudedTextGeometry
with parent
.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.depthChanged(extrusionLength)¶
- Parameters
extrusionLength – float
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.extrusionLength()¶
- Return type
float
Holds the extrusion length of the text.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.font()¶
- Return type
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.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.fontChanged(font)¶
- Parameters
font –
PySide6.QtGui.QFont
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.indexAttribute()¶
- Return type
Holds the geometry index attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.normalAttribute()¶
- Return type
Holds the geometry normal attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.positionAttribute()¶
- Return type
Holds the geometry position attribute.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.setDepth(extrusionLength)¶
- Parameters
extrusionLength – float
Holds the extrusion length of the text.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.setFont(font)¶
- Parameters
font –
PySide6.QtGui.QFont
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.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.setText(text)¶
- Parameters
text – str
Holds the text used for the mesh.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.text()¶
- Return type
str
Holds the text used for the mesh.
- PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry.textChanged(text)¶
- Parameters
text – str
© 2022 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.