QSGBasicGeometryNode

The QSGBasicGeometryNode class serves as a baseclass for geometry based nodes. More

Inheritance diagram of PySide2.QtQuick.QSGBasicGeometryNode

Inherited by: QSGClipNode, QSGGeometryNode, QSGSimpleRectNode, QSGSimpleTextureNode

Synopsis

Functions

Detailed Description

The QSGBasicGeometryNode class should not be used by itself. It is only encapsulates shared functionality between the QSGGeometryNode and QSGClipNode classes.

Note

All classes with QSG prefix should be used solely on the scene graph’s rendering thread. See Scene Graph and Rendering for more information.

class QSGBasicGeometryNode(type)
param type

NodeType

Creates a new basic geometry node of type type

PySide2.QtQuick.QSGBasicGeometryNode.clipList()
Return type

QSGClipNode

Will be set during rendering to contain the clip of the geometry for that rendering pass.

PySide2.QtQuick.QSGBasicGeometryNode.geometry()
Return type

QSGGeometry

Returns this node’s geometry.

The geometry is null by default.

See also

setGeometry()

PySide2.QtQuick.QSGBasicGeometryNode.matrix()
Return type

QMatrix4x4

Will be set during rendering to contain transformation of the geometry for that rendering pass.

PySide2.QtQuick.QSGBasicGeometryNode.setGeometry(geometry)
Parameters

geometryQSGGeometry

Sets the geometry of this node to geometry .

If the node has the flag OwnsGeometry set, it will also delete the geometry object it is pointing to. This flag is not set by default.

If the geometry is changed without calling again, the user must also mark the geometry as dirty using markDirty() .

PySide2.QtQuick.QSGBasicGeometryNode.setRendererClipList(c)
Parameters

cQSGClipNode

PySide2.QtQuick.QSGBasicGeometryNode.setRendererMatrix(m)
Parameters

mQMatrix4x4