QSGBasicGeometryNode Class
The QSGBasicGeometryNode class serves as a baseclass for geometry based nodes. More...
Header: | #include <QSGBasicGeometryNode> |
Inherits: | QSGNode |
Inherited By: |
Public Functions
virtual | ~QSGBasicGeometryNode() override |
const QSGClipNode * | clipList() const |
const QSGGeometry * | geometry() const |
QSGGeometry * | geometry() |
const QMatrix4x4 * | matrix() const |
void | setGeometry(QSGGeometry *geometry) |
void | setRendererClipList(const QSGClipNode *c) |
void | setRendererMatrix(const QMatrix4x4 *m) |
Protected Functions
QSGBasicGeometryNode(NodeType type) | |
QSGBasicGeometryNode(QSGBasicGeometryNodePrivate &dd, NodeType type) |
Detailed Description
\inmodule
QtQuick
The QSGBasicGeometryNode class should not be used by itself. It is only encapsulates shared functionality between the QSGGeometryNode and QSGClipNode classes.
Note: 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
[protected]
QSGBasicGeometryNode::QSGBasicGeometryNode(NodeType type)
Creates a new basic geometry node of type type
\internal
[protected]
QSGBasicGeometryNode::QSGBasicGeometryNode(QSGBasicGeometryNodePrivate &dd, NodeType type)
\internal
[override virtual noexcept]
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 QSGClipNode *QSGBasicGeometryNode::clipList() const
Will be set during rendering to contain the clip of the geometry for that rendering pass.
\internal
const QSGGeometry *QSGBasicGeometryNode::geometry() const
Returns this node's geometry.
The geometry is null by default.
See also setGeometry().
QSGGeometry *QSGBasicGeometryNode::geometry()
Returns this node's geometry.
The geometry is null by default.
const QMatrix4x4 *QSGBasicGeometryNode::matrix() const
Will be set during rendering to contain transformation of the geometry for that rendering pass.
\internal
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 geometry() and markDirty().
void QSGBasicGeometryNode::setRendererClipList(const QSGClipNode *c)
\internal
void QSGBasicGeometryNode::setRendererMatrix(const QMatrix4x4 *m)
\internal