PySide6.Qt3DExtras.Qt3DExtras.QExtrudedTextGeometry¶
- class QExtrudedTextGeometry¶
QExtrudedTextGeometry类允许在3D空间中创建3D挤出文本。更多…概要¶
属性¶
方法¶
def
__init__()def
font()def
indexAttribute()def
text()
插槽¶
def
setDepth()def
setFont()def
setText()
信号¶
def
depthChanged()def
fontChanged()def
textChanged()
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
QExtrudedTextGeometry类最常用于QText3DMesh内部,但也可以用于自定义的QGeometryRenderer子类中。几何图形的原点位于文本基线的左后端。
注意
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。- property extrusionLengthᅟ: float¶
保存文本的挤出长度。
- Access functions:
保存文本的字体。
几何形状由字体的pointSize进行归一化,因此较大的pointSize将导致文本更平滑,而不是更大。不应使用pixelSize。
- Access functions:
- property indexAttributeᅟ: QAttribute¶
保存几何索引属性。
- Access functions:
- property normalAttributeᅟ: QAttribute¶
保存几何法线属性。
- Access functions:
- property positionAttributeᅟ: QAttribute¶
保存几何位置属性。
- Access functions:
- property textᅟ: str¶
保存用于网格的文本。
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
使用
parent构造一个新的QExtrudedTextGeometry。- depthChanged(extrusionLength)¶
- Parameters:
extrusionLength – 浮点数
属性
extrusionLengthᅟ的通知信号。- extrusionLength()¶
- Return type:
浮点数
属性
extrusionLengthᅟ的获取器。属性
fontᅟ的获取器。属性
fontᅟ的通知信号。- indexAttribute()¶
- Return type:
QAttribute
属性
indexAttributeᅟ的获取器。- normalAttribute()¶
- Return type:
QAttribute
属性
normalAttributeᅟ的获取器。- positionAttribute()¶
- Return type:
QAttribute
属性
positionAttributeᅟ的获取器。- setDepth(extrusionLength)¶
- Parameters:
extrusionLength – 浮点数
属性
extrusionLengthᅟ的设置器。属性
fontᅟ的设置器。- setText(text)¶
- Parameters:
文本 – str
另请参阅
text()
属性
textᅟ的设置器。- text()¶
- Return type:
字符串
另请参阅
setText()
属性
textᅟ的获取器。- textChanged(text)¶
- Parameters:
文本 – str
属性
textᅟ的通知信号。