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

QSGBasicGeometryNode Class

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

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QSGBasicGeometryNode Class

  • Header: QSGBasicGeometryNode

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Quick)

    target_link_libraries(mytarget PRIVATE Qt6::Quick)

  • qmake: QT += quick

  • Inherits: QSGNode

  • Inherited By: QSGClipNode and QSGGeometryNode

Detailed Description

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

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

 

[override virtual] QSGBasicGeometryNode::~QSGBasicGeometryNode()

Deletes this QSGBasicGeometryNode.

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

const QSGGeometry *QSGBasicGeometryNode::geometry() const

Returns this node's geometry.

The geometry is null by default.

See Also

See also setGeometry()

QSGGeometry *QSGBasicGeometryNode::geometry()

Returns this node's geometry.

The geometry is null by default.

void QSGBasicGeometryNode::setGeometry(QSGGeometry *geometry)

Sets the geometry of this node to geometry.

If the node has the flag QSGNode::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 setGeometry() again, the user must also mark the geometry as dirty using QSGNode::markDirty().

See Also

See also geometry(), markDirty()

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