QSGTransformNode 类

QSGTransformNode class implements transformations in the scene graph 更多...

头: #include <QSGTransformNode>
qmake: QT += quick
继承: QSGNode

公共函数

QSGTransformNode ()
~QSGTransformNode ()
const QMatrix4x4 & matrix () const
void setMatrix (const QMatrix4x4 & matrix )

详细描述

QSGTransformNode class implements transformations in the scene graph

变换应用节点子树,且可以嵌套。多个变换节点将通过相交其所有矩阵来累积。累积是作为渲染的一部分发生的。

变换节点实现了理论上支持完整 3D 变换的 4x4 矩阵。不管怎样,由于渲染器优化是针对 2D 用例而不是 3D 用例的,因此渲染具有完整 3D 变换的场景需要很小心进行。

注意: 所有带有 QSG 前缀的类只应用于场景图形渲染线程。见 场景图形和渲染 了解更多信息。

成员函数文档编制

QSGTransformNode:: QSGTransformNode ()

Create a new QSGTransformNode with its matrix set to the identity matrix.

QSGTransformNode:: ~QSGTransformNode ()

删除此变换节点。

const QMatrix4x4 &QSGTransformNode:: matrix () const

返回此变换节点的矩阵。

另请参阅 setMatrix ().

void QSGTransformNode:: setMatrix (const QMatrix4x4 & matrix )

将此变换节点的矩阵设为 matrix .

另请参阅 matrix ().