PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry

class QPlaneGeometry

QPlaneGeometry 类允许在3D空间中创建一个平面。更多

PySide6.Qt3DExtras.Qt3DExtras.QPlaneGeometry 的继承图

概要

属性

方法

插槽

信号

注意

本文档可能包含从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:
property resolutionᅟ: QSize

保持平面分辨率。

Access functions:
property tangentAttributeᅟ: QAttribute

保存几何切线属性。

Access functions:
property texCoordAttributeᅟ: QAttribute

保存几何纹理坐标属性。

Access functions:
property widthᅟ: float

保持平面宽度。

Access functions:
__init__([parent=None])
Parameters:

parentQNode

使用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()
Return type:

QSize

另请参阅

setResolution()

属性 resolutionᅟ 的获取器。

resolutionChanged(resolution)
Parameters:

分辨率QSize

属性 resolutionᅟ 的通知信号。

setHeight(height)
Parameters:

height – 浮点数

另请参阅

height()

属性 heightᅟ 的设置器。

setMirrored(mirrored)
Parameters:

mirrored – 布尔值

另请参阅

mirrored()

属性 mirroredᅟ 的设置器。

setResolution(resolution)
Parameters:

分辨率QSize

另请参阅

resolution()

属性 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ᅟ 的通知信号。