QSGBasicGeometryNodeclass serves as a baseclass for geometry based nodes. 更多 …
继承者: QSGClipNode , QSGGeometryNode , QSGSimpleRectNode , QSGSimpleTextureNode
def
clipList
()
def
geometry
()
def
matrix
()
def
setGeometry
(geometry)
def
setRendererClipList
(c)
def
setRendererMatrix
(m)
QSGBasicGeometryNodeclass should not be used by itself. It is only encapsulates shared functionality between theQSGGeometryNodeandQSGClipNode类。注意
All classes with QSG prefix should be used solely on the scene graph’s rendering thread. See 场景图形和渲染 了解更多信息。
QSGBasicGeometryNode
(
type
)
¶
- param type
NodeType
Creates a new basic geometry node of type
type
PySide2.QtQuick.QSGBasicGeometryNode.
clipList
(
)
¶
PySide2.QtQuick.QSGBasicGeometryNode.
geometry
(
)
¶
Returns this node’s geometry.
The geometry is null by default.
另请参阅
PySide2.QtQuick.QSGBasicGeometryNode.
matrix
(
)
¶
QMatrix4x4
PySide2.QtQuick.QSGBasicGeometryNode.
setGeometry
(
geometry
)
¶
geometry
–
QSGGeometry
Sets the geometry of this node to
geometry
.
If the node has the flag
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 again, the user must also mark the geometry as dirty using
markDirty()
.
另请参阅
PySide2.QtQuick.QSGBasicGeometryNode.
setRendererClipList
(
c
)
¶
c
–
QSGClipNode
PySide2.QtQuick.QSGBasicGeometryNode.
setRendererMatrix
(
m
)
¶
m
–
QMatrix4x4