IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QSGTransformNode Class

The QSGTransformNode class implements transformations in the scene graph.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QSGTransformNode Class

  • Header: QSGTransformNode

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Quick)

    target_link_libraries(mytarget PRIVATE Qt6::Quick)

  • qmake: QT += quick

  • Inherits: QSGNode

  • Inherited By:

  • Group: QSGTransformNode is part of Qt Quick Scene Graph Node classes

Detailed Description

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 Scene Graph and Rendering for more information.

Member Function Documentation

 

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.

See Also

See also setMatrix()

void QSGTransformNode::setMatrix(const QMatrix4x4 &matrix)

Sets this transform node's matrix to matrix.

See Also

See also matrix()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+