Qt3DRender.QGeometry

Encapsulates geometry. More

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QGeometry

Inherited by: Qt3DExtras.QConeGeometry, Qt3DExtras.QCuboidGeometry, Qt3DExtras.QCylinderGeometry, Qt3DExtras.QExtrudedTextGeometry, Qt3DExtras.QPlaneGeometry, Qt3DExtras.QSphereGeometry, Qt3DExtras.QTorusGeometry

Synopsis

Functions

Slots

Signals

Detailed Description

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

Constructs a new QGeometry with parent .

PySide2.Qt3DRender.Qt3DRender.QGeometry.addAttribute(attribute)
Parameters

attributeQAttribute

Adds an attribute to this geometry.

PySide2.Qt3DRender.Qt3DRender.QGeometry.attributes()
Return type

Returns the list of attributes in this geometry.

PySide2.Qt3DRender.Qt3DRender.QGeometry.boundingVolumePositionAttribute()
Return type

QAttribute

See also

setBoundingVolumePositionAttribute()

PySide2.Qt3DRender.Qt3DRender.QGeometry.boundingVolumePositionAttributeChanged(boundingVolumePositionAttribute)
Parameters

boundingVolumePositionAttributeQAttribute

PySide2.Qt3DRender.Qt3DRender.QGeometry.removeAttribute(attribute)
Parameters

attributeQAttribute

Removes the given attribute from this geometry.

PySide2.Qt3DRender.Qt3DRender.QGeometry.setBoundingVolumePositionAttribute(boundingVolumePositionAttribute)
Parameters

boundingVolumePositionAttributeQAttribute

See also

boundingVolumePositionAttribute()