QSGBasicGeometryNode Class

QSGBasicGeometryNode class serves as a baseclass for geometry based nodes. 更多...

头: #include <QSGBasicGeometryNode>
qmake: QT += quick
继承: QSGNode
继承者:

QSGClipNode and QSGGeometryNode

公共函数

~QSGBasicGeometryNode ()
const QSGGeometry * geometry () const
QSGGeometry * geometry ()
void setGeometry (QSGGeometry * geometry )

详细描述

QSGBasicGeometryNode class serves as a baseclass for geometry based nodes.

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

注意: 所有带有 QSG 前缀的类只应用于场景图形渲染线程。见 场景图形和渲染 了解更多信息。

成员函数文档编制

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.

另请参阅 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 ().

另请参阅 geometry () 和 markDirty ().