内容表

上一话题

QSGTextureProvider

下一话题

QQuickFramebufferObject.Renderer

QSGTransformNode

QSGTransformNode class implements transformations in the scene graph. 更多

Inheritance diagram of PySide2.QtQuick.QSGTransformNode

概要

函数

详细描述

Transformations apply the node’s subtree and can be nested. Multiple transform nodes will be accumulated by intersecting all their matrices. The accumulation happens as part of the rendering.

The transform nodes implement a 4x4 matrix which in theory supports full 3D transformations. However, because the renderer optimizes for 2D use-cases rather than 3D use-cases, rendering a scene with full 3D transformations needs to be done with some care.

注意

All classes with QSG prefix should be used solely on the scene graph’s rendering thread. See 场景图形和渲染 了解更多信息。

class QSGTransformNode

创建新的 QSGTransformNode with its matrix set to the identity matrix.

PySide2.QtQuick.QSGTransformNode. combinedMatrix ( )
返回类型

QMatrix4x4

PySide2.QtQuick.QSGTransformNode. matrix ( )
返回类型

QMatrix4x4

Returns this transform node’s matrix.

另请参阅

setMatrix()

PySide2.QtQuick.QSGTransformNode. setCombinedMatrix ( matrix )
参数

matrix QMatrix4x4

Sets the combined matrix of this matrix to transform .

This function is meant to be called by the node preprocessing prior to rendering the tree, so it will not mark the tree as dirty.

PySide2.QtQuick.QSGTransformNode. setMatrix ( matrix )
参数

matrix QMatrix4x4

Sets this transform node’s matrix to matrix .

另请参阅

matrix()