QNodeis the base class of all Qt3D node classes used to build a Qt3D scene. 更多 …
继承者: Qt3DAnimation.QAbstractAnimationClip , Qt3DAnimation.QAbstractChannelMapping , Qt3DAnimation.QAbstractClipAnimator , Qt3DAnimation.QAbstractClipBlendNode , Qt3DAnimation.QAdditiveClipBlend , Qt3DAnimation.QAnimationClip , Qt3DAnimation.QAnimationClipLoader , Qt3DAnimation.QBlendedClipAnimator , Qt3DAnimation.QClipAnimator , Qt3DAnimation.QClock , Qt3DAnimation.QLerpClipBlend , Qt3DAnimation.QSkeletonMapping , Qt3DCore.QAbstractSkeleton , Qt3DCore.QArmature , Qt3DCore.QComponent , Qt3DCore.QEntity , Qt3DCore.QJoint , Qt3DCore.QSkeleton , Qt3DCore.QSkeletonLoader , Qt3DCore.QTransform , Qt3DExtras.QAbstractCameraController , Qt3DExtras.QAbstractSpriteSheet , Qt3DExtras.QConeGeometry , Qt3DExtras.QConeMesh , Qt3DExtras.QCuboidGeometry , Qt3DExtras.QCuboidMesh , Qt3DExtras.QCylinderGeometry , Qt3DExtras.QCylinderMesh , Qt3DExtras.QDiffuseMapMaterial , Qt3DExtras.QDiffuseSpecularMapMaterial , Qt3DExtras.QDiffuseSpecularMaterial , Qt3DExtras.QExtrudedTextGeometry , Qt3DExtras.QExtrudedTextMesh , Qt3DExtras.QFirstPersonCameraController , Qt3DExtras.QForwardRenderer , Qt3DExtras.QGoochMaterial , Qt3DExtras.QMetalRoughMaterial , Qt3DExtras.QMorphPhongMaterial , Qt3DExtras.QNormalDiffuseMapMaterial , Qt3DExtras.QNormalDiffuseSpecularMapMaterial , Qt3DExtras.QOrbitCameraController , Qt3DExtras.QPerVertexColorMaterial , Qt3DExtras.QPhongAlphaMaterial , Qt3DExtras.QPhongMaterial , Qt3DExtras.QPlaneGeometry , Qt3DExtras.QPlaneMesh , Qt3DExtras.QSkyboxEntity , Qt3DExtras.QSphereGeometry , Qt3DExtras.QSphereMesh , Qt3DExtras.QSpriteGrid , Qt3DExtras.QSpriteSheet , Qt3DExtras.QSpriteSheetItem , Qt3DExtras.QText2DEntity , Qt3DExtras.QTextureMaterial , Qt3DExtras.QTorusGeometry , Qt3DExtras.QTorusMesh , Qt3DInput.QAbstractActionInput , Qt3DInput.QAbstractAxisInput , Qt3DInput.QAbstractPhysicalDevice , Qt3DInput.QAction , Qt3DInput.QActionInput , Qt3DInput.QAnalogAxisInput , Qt3DInput.QAxis , Qt3DInput.QAxisAccumulator , Qt3DInput.QAxisSetting , Qt3DInput.QButtonAxisInput , Qt3DInput.QInputChord , Qt3DInput.QInputSequence , Qt3DInput.QInputSettings , Qt3DInput.QKeyboardDevice , Qt3DInput.QKeyboardHandler , Qt3DInput.QLogicalDevice , Qt3DInput.QMouseDevice , Qt3DInput.QMouseHandler , Qt3DLogic.QFrameAction , Qt3DRender.QAbstractLight , Qt3DRender.QAbstractRayCaster , Qt3DRender.QAbstractTexture , Qt3DRender.QAbstractTextureImage , Qt3DRender.QAlphaCoverage , Qt3DRender.QAlphaTest , Qt3DRender.QAttribute , Qt3DRender.QBlendEquation , Qt3DRender.QBlendEquationArguments , Qt3DRender.QBlitFramebuffer , Qt3DRender.QBuffer , Qt3DRender.QBufferCapture , Qt3DRender.QCamera , Qt3DRender.QCameraLens , Qt3DRender.QCameraSelector , Qt3DRender.QClearBuffers , Qt3DRender.QClipPlane , Qt3DRender.QColorMask , Qt3DRender.QComputeCommand , Qt3DRender.QCullFace , Qt3DRender.QDepthTest , Qt3DRender.QDirectionalLight , Qt3DRender.QDispatchCompute , Qt3DRender.QDithering , Qt3DRender.QEffect , Qt3DRender.QEnvironmentLight , Qt3DRender.QFilterKey , Qt3DRender.QFrameGraphNode , Qt3DRender.QFrontFace , Qt3DRender.QFrustumCulling , Qt3DRender.QGeometry , Qt3DRender.QGeometryRenderer , Qt3DRender.QLayer , Qt3DRender.QLayerFilter , Qt3DRender.QLevelOfDetail , Qt3DRender.QLevelOfDetailSwitch , Qt3DRender.QLineWidth , Qt3DRender.QMaterial , Qt3DRender.QMemoryBarrier , Qt3DRender.QMesh , Qt3DRender.QMultiSampleAntiAliasing , Qt3DRender.QNoDepthMask , Qt3DRender.QNoDraw , Qt3DRender.QNoPicking , Qt3DRender.QObjectPicker , Qt3DRender.QPaintedTextureImage , Qt3DRender.QParameter , Qt3DRender.QPickingSettings , Qt3DRender.QPointLight , Qt3DRender.QPointSize , Qt3DRender.QPolygonOffset , Qt3DRender.QProximityFilter , Qt3DRender.QRayCaster , Qt3DRender.QRenderCapture , Qt3DRender.QRenderPass , Qt3DRender.QRenderPassFilter , Qt3DRender.QRenderSettings , Qt3DRender.QRenderState , Qt3DRender.QRenderStateSet , Qt3DRender.QRenderSurfaceSelector , Qt3DRender.QRenderTarget , Qt3DRender.QRenderTargetOutput , Qt3DRender.QRenderTargetSelector , Qt3DRender.QSceneLoader , Qt3DRender.QScissorTest , Qt3DRender.QScreenRayCaster , Qt3DRender.QSeamlessCubemap , Qt3DRender.QSetFence , Qt3DRender.QShaderData , Qt3DRender.QShaderImage , Qt3DRender.QShaderProgram , Qt3DRender.QShaderProgramBuilder , Qt3DRender.QSharedGLTexture , Qt3DRender.QSortPolicy , Qt3DRender.QSpotLight , Qt3DRender.QStencilMask , Qt3DRender.QStencilOperation , Qt3DRender.QStencilTest , Qt3DRender.QTechnique , Qt3DRender.QTechniqueFilter , Qt3DRender.QTexture1D , Qt3DRender.QTexture1DArray , Qt3DRender.QTexture2D , Qt3DRender.QTexture2DArray , Qt3DRender.QTexture2DMultisample , Qt3DRender.QTexture2DMultisampleArray , Qt3DRender.QTexture3D , Qt3DRender.QTextureBuffer , Qt3DRender.QTextureCubeMap , Qt3DRender.QTextureCubeMapArray , Qt3DRender.QTextureImage , Qt3DRender.QTextureLoader , Qt3DRender.QTextureRectangle , Qt3DRender.QViewport , Qt3DRender.QWaitFence
def
blockNotifications
(block)
def
childNodes
()
def
clearPropertyTracking
(propertyName)
def
clearPropertyTrackings
()
def
defaultPropertyTrackingMode
()
def
id
()
def
isEnabled
()
def
notificationsBlocked
()
def
notifyObservers
(change)
def
parentNode
()
def
propertyTracking
(propertyName)
def
sendReply
(command)
def
setPropertyTracking
(propertyName, trackMode)
def
sceneChangeEvent
(change)
def
setDefaultPropertyTrackingMode
(mode)
def
setEnabled
(isEnabled)
def
setParent
(parent)
def
defaultPropertyTrackingModeChanged
(mode)
def
enabledChanged
(enabled)
def
nodeDestroyed
()
def
parentChanged
(parent)
The owernship of
QNodeis determined by theQObjectparent/child relationship between nodes. By itself, aQNodehas no visual appearance and no particular meaning, it is there as a way of building a node based tree structure.The parent of a
QNodeinstance can only be anotherQNode实例。每
QNodeinstance has a unique id that allows it to be recognizable from other instances.When properties are defined on a
QNodesubclass, their NOTIFY signal will automatically generate notifications that the Qt3D backend aspects will receive.另请参阅
QEntityQComponent
PySide2.Qt3DCore.Qt3DCore.
QNode
(
[
parent=None
]
)
¶
- param parent
QNode
创建新
QNode
instance with parent
parent
.
注意
The backend aspects will be notified that a
QNode
instance is part of the scene only if it has a parent; unless this is the root node of the Qt3D scene.
另请参阅
PySide2.Qt3DCore.Qt3DCore.QNode.
PropertyTrackingMode
¶
Indicates how a
QNode
listens for property updates.
|
常量 |
描述 |
|---|---|
|
Qt3DCore.QNode.TrackFinalValues |
Tracks final values |
|
Qt3DCore.QNode.DontTrackValues |
Does not track values |
|
Qt3DCore.QNode.TrackAllValues |
Tracks all values |
PySide2.Qt3DCore.Qt3DCore.QNode.
blockNotifications
(
block
)
¶
block
–
bool
bool
若
block
is
true
, property change notifications sent by this object to aspects are blocked. If
block
is
false
, no such blocking will occur.
返回值是先前值的
notificationsBlocked()
.
Note that the other notification types will be sent even if the notifications for this object have been blocked.
PySide2.Qt3DCore.Qt3DCore.QNode.
childNodes
(
)
¶
Returns a list filled with the
QNode
children of the current
QNode
实例。
PySide2.Qt3DCore.Qt3DCore.QNode.
clearPropertyTracking
(
propertyName
)
¶
propertyName – unicode
Clears the tracking property called
propertyName
.
PySide2.Qt3DCore.Qt3DCore.QNode.
clearPropertyTrackings
(
)
¶
Erases all values that have been saved by the property tracking.
PySide2.Qt3DCore.Qt3DCore.QNode.
defaultPropertyTrackingMode
(
)
¶
Returns the default property tracking mode which determines whether a
QNode
should be listening for property updates.
PySide2.Qt3DCore.Qt3DCore.QNode.
defaultPropertyTrackingModeChanged
(
mode
)
¶
mode
–
PropertyTrackingMode
PySide2.Qt3DCore.Qt3DCore.QNode.
enabledChanged
(
enabled
)
¶
enabled
–
bool
PySide2.Qt3DCore.Qt3DCore.QNode.
id
(
)
¶
QNodeId
Returns the id that uniquely identifies the
QNode
实例。
PySide2.Qt3DCore.Qt3DCore.QNode.
isEnabled
(
)
¶
bool
PySide2.Qt3DCore.Qt3DCore.QNode.
nodeDestroyed
(
)
¶
PySide2.Qt3DCore.Qt3DCore.QNode.
notificationsBlocked
(
)
¶
bool
返回
true
if aspect notifications are blocked; otherwise returns
false
. By default, notifications are
not
blocked.
另请参阅
PySide2.Qt3DCore.Qt3DCore.QNode.
notifyObservers
(
change
)
¶
change
–
QSharedPointer
注意
此函数被弃用。
发送
change
QSceneChangePtr
to any QBackendNodes in the registered aspects that correspond to this
QNode
.
You only need to call this function if you wish to send a specific type of change in place of the automatic handling.
Note: as of Qt 5.14, change messages are deprecated and should not be used, in particular for properties.
PySide2.Qt3DCore.Qt3DCore.QNode.
parentChanged
(
parent
)
¶
parent
–
QObject
PySide2.Qt3DCore.Qt3DCore.QNode.
parentNode
(
)
¶
QNode
PySide2.Qt3DCore.Qt3DCore.QNode.
propertyTracking
(
propertyName
)
¶
propertyName – unicode
Returns the tracking mode of
propertyName
.
PySide2.Qt3DCore.Qt3DCore.QNode.
sceneChangeEvent
(
change
)
¶
change
–
QSharedPointer
注意
此函数被弃用。
Called when one or more backend aspects sends a notification
change
to the current
QNode
实例。
注意
This method should be reimplemented in your subclasses to properly handle the
change
.
PySide2.Qt3DCore.Qt3DCore.QNode.
sendReply
(
command
)
¶
command
–
QSharedPointer
注意
此函数被弃用。
发送
command
back to the backend node.
Assumes the command is to be to sent back in reply to itself to the backend node.
另请参阅
QNodeCommand
sendCommand
PySide2.Qt3DCore.Qt3DCore.QNode.
setDefaultPropertyTrackingMode
(
mode
)
¶
mode
–
PropertyTrackingMode
PySide2.Qt3DCore.Qt3DCore.QNode.
setEnabled
(
isEnabled
)
¶
isEnabled
–
bool
另请参阅
PySide2.Qt3DCore.Qt3DCore.QNode.
setParent
(
parent
)
¶
parent
–
QNode
PySide2.Qt3DCore.Qt3DCore.QNode.
setPropertyTracking
(
propertyName
,
trackMode
)
¶
propertyName – unicode
trackMode
–
PropertyTrackingMode
Sets the property tracking for
propertyName
and
trackMode
.
另请参阅