QSGTransformNode Class

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

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

公共函数

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

详细描述

QSGTransformNode class implements transformations in the scene graph.

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 场景图形和渲染 了解更多信息。

成员函数文档编制

QSGTransformNode:: QSGTransformNode ()

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

[override virtual] QSGTransformNode:: ~QSGTransformNode ()

Deletes this transform node.

const QMatrix4x4 &QSGTransformNode:: matrix () const

Returns this transform node's matrix.

另请参阅 setMatrix ().

void QSGTransformNode:: setMatrix (const QMatrix4x4 & matrix )

Sets this transform node's matrix to matrix .

另请参阅 matrix ().