Detailed Description
The QSGBasicGeometryNode class serves as a baseclass for geometry based nodes
The QSGBasicGeometryNode class should not be used by itself. It is only encapsulates shared functionality between the QSGGeometryNode and QSGClipNode classes.
Member Function Documentation
QSGBasicGeometryNode::QSGBasicGeometryNode(NodeType type) [protected]
Creates a new basic geometry node.
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
const QSGGeometry * QSGBasicGeometryNode::geometry() const
Returns this node's geometry.
The geometry is null by default.
See also setGeometry().
QSGGeometry * QSGBasicGeometryNode::geometry()
const QMatrix4x4 * QSGBasicGeometryNode::matrix() const
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 whitout calling setGeometry() again, the user must also mark the geometry as dirty using QSGNode::markDirty().
See also geometry() and markDirty.