内容表

上一话题

Qt3DRender.QFrustumCulling

下一话题

Qt3DRender.QGeometryFactory

Qt3DRender.QGeometry

Encapsulates geometry. 更多

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QGeometry

继承者: Qt3DExtras.QConeGeometry , Qt3DExtras.QCuboidGeometry , Qt3DExtras.QCylinderGeometry , Qt3DExtras.QExtrudedTextGeometry , Qt3DExtras.QPlaneGeometry , Qt3DExtras.QSphereGeometry , Qt3DExtras.QTorusGeometry

概要

信号

详细描述

A QGeometry class is used to group a list of QAttribute objects together to form a geometric shape Qt3D is able to render using QGeometryRenderer . Special attribute can be set in order to calculate bounding volume of the shape.

class PySide2.Qt3DRender.Qt3DRender. QGeometry ( [ parent=None ] )
param parent

QNode

构造新 QGeometry with parent .

PySide2.Qt3DRender.Qt3DRender.QGeometry. addAttribute ( attribute )
参数

attribute QAttribute

添加 attribute to this geometry.

PySide2.Qt3DRender.Qt3DRender.QGeometry. attributes ( )
返回类型

Returns the list of attributes in this geometry.

PySide2.Qt3DRender.Qt3DRender.QGeometry. boundingVolumePositionAttribute ( )
返回类型

QAttribute

PySide2.Qt3DRender.Qt3DRender.QGeometry. boundingVolumePositionAttributeChanged ( boundingVolumePositionAttribute )
参数

boundingVolumePositionAttribute QAttribute

PySide2.Qt3DRender.Qt3DRender.QGeometry. maxExtent ( )
返回类型

QVector3D

PySide2.Qt3DRender.Qt3DRender.QGeometry. maxExtentChanged ( maxExtent )
参数

maxExtent QVector3D

PySide2.Qt3DRender.Qt3DRender.QGeometry. minExtent ( )
返回类型

QVector3D

PySide2.Qt3DRender.Qt3DRender.QGeometry. minExtentChanged ( minExtent )
参数

minExtent QVector3D

PySide2.Qt3DRender.Qt3DRender.QGeometry. removeAttribute ( attribute )
参数

attribute QAttribute

移除给定 attribute from this geometry.

PySide2.Qt3DRender.Qt3DRender.QGeometry. setBoundingVolumePositionAttribute ( boundingVolumePositionAttribute )
参数

boundingVolumePositionAttribute QAttribute