The QSGBasicGeometryNode class serves as a baseclass for geometry based nodes. 更多...
| 頭: | #include <QSGBasicGeometryNode> |
| qmake: | QT += quick |
| 繼承: | QSGNode |
| 繼承者: |
| virtual | ~QSGBasicGeometryNode () override |
| const QSGGeometry * | geometry () const |
| QSGGeometry * | geometry () |
| void | setGeometry (QSGGeometry * geometry ) |
The QSGBasicGeometryNode class should not be used by itself. It is only encapsulates shared functionality between the QSGGeometryNode and QSGClipNode 類。
注意: 所有帶有 QSG 前綴的類隻應用於場景圖形渲染綫程。見 場景圖形和渲染 瞭解更多信息。
[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.
Returns this node's geometry.
The geometry is null by default.
另請參閱 setGeometry ().
Returns this node's geometry.
The geometry is null by default.
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 ().