PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry¶
- class QPlaneGeometry¶
QPlaneGeometry类允许在3D空间中创建一个平面。更多…概要¶
属性¶
方法¶
def
__init__()def
height()def
indexAttribute()def
mirrored()def
resolution()def
updateIndices()def
updateVertices()def
width()
插槽¶
def
setHeight()def
setMirrored()def
setResolution()def
setWidth()
信号¶
def
heightChanged()def
widthChanged()
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
QPlaneGeometry类最常用于QPlaneMesh内部,但也可以用于自定义的QGeometryRenderer子类中。注意
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。- property heightᅟ: float¶
保持平面高度。
- Access functions:
- property indexAttributeᅟ: QAttribute¶
保存几何索引属性。
- Access functions:
- property mirroredᅟ: bool¶
控制平面的UV坐标是否应该垂直翻转。
- Access functions:
- property normalAttributeᅟ: QAttribute¶
保存几何法线属性。
- Access functions:
- property positionAttributeᅟ: QAttribute¶
保存几何位置属性。
- Access functions:
保持平面分辨率。
- Access functions:
- property tangentAttributeᅟ: QAttribute¶
保存几何切线属性。
- Access functions:
- property texCoordAttributeᅟ: QAttribute¶
保存几何纹理坐标属性。
- Access functions:
- property widthᅟ: float¶
保持平面宽度。
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
使用
parent构造一个新的QPlaneGeometry。- height()¶
- Return type:
浮点数
另请参阅
setHeight()
属性
heightᅟ的获取器。- heightChanged(height)¶
- Parameters:
height – 浮点数
属性
heightᅟ的通知信号。- indexAttribute()¶
- Return type:
QAttribute
属性
indexAttributeᅟ的获取器。- mirrored()¶
- Return type:
布尔
另请参阅
setMirrored()
属性
mirroredᅟ的获取器。- mirroredChanged(mirrored)¶
- Parameters:
mirrored – 布尔值
属性
mirroredᅟ的通知信号。- normalAttribute()¶
- Return type:
QAttribute
属性
normalAttributeᅟ的获取器。- positionAttribute()¶
- Return type:
QAttribute
属性
positionAttributeᅟ的获取器。属性
resolutionᅟ的获取器。属性
resolutionᅟ的通知信号。- setHeight(height)¶
- Parameters:
height – 浮点数
另请参阅
height()
属性
heightᅟ的设置器。- setMirrored(mirrored)¶
- Parameters:
mirrored – 布尔值
另请参阅
mirrored()
属性
mirroredᅟ的设置器。属性
resolutionᅟ的设置器。- setWidth(width)¶
- Parameters:
width – 浮点数
另请参阅
width()
属性
widthᅟ的设置器。- tangentAttribute()¶
- Return type:
QAttribute
属性
tangentAttributeᅟ的获取器。- texCoordAttribute()¶
- Return type:
QAttribute
属性
texCoordAttributeᅟ的获取器。- updateIndices()¶
根据网格分辨率更新索引。
- updateVertices()¶
根据网格分辨率、宽度和高度属性更新顶点。
- width()¶
- Return type:
浮点数
另请参阅
setWidth()
属性
widthᅟ的获取器。- widthChanged(width)¶
- Parameters:
width – 浮点数
属性
widthᅟ的通知信号。