以下成员源于类 QSceneChange 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(obsolete)
enum
|
ChangeFlag { NodeCreated, NodeDeleted, PropertyUpdated, PropertyValueAdded, PropertyValueRemoved, …, AllChanges } |
This enum is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
The types of change that can be sent and received by Qt3D's change notification system.
常量 | 值 | 描述 |
---|---|---|
Qt3DCore::QSceneChange::NodeCreated
|
1 << 0
|
A new instance of a QNode subclass has been created. |
Qt3DCore::QSceneChange::NodeDeleted
|
1 << 1
|
A QNode has been deleted. |
Qt3DCore::QSceneChange::PropertyUpdated
|
1 << 2
|
A QNode property has been updated. |
Qt3DCore::QSceneChange::PropertyValueAdded
|
1 << 3
|
A QNode has been added to the scene. |
Qt3DCore::QSceneChange::PropertyValueRemoved
|
1 << 4
|
A QNode has been removed from the scene. |
Qt3DCore::QSceneChange::CommandRequested
|
1 << 7
|
A QNodeCommand has been sent between a node and its backend. |
Qt3DCore::QSceneChange::ComponentAdded
|
1 << 5
|
A QComponent has been added to a QEntity . |
Qt3DCore::QSceneChange::ComponentRemoved
|
1 << 6
|
A QComponent has been removed from a QEntity . |
Qt3DCore::QSceneChange::CallbackTriggered
|
1 << 8
|
A QNode triggered a callback. |
Qt3DCore::QSceneChange::AllChanges
|
0xFFFFFFFF
|
Allows an observer to monitor for any of the above changes. |
ChangeFlags 类型是 typedef 对于 QFlags <ChangeFlag>。它存储 ChangeFlag 值的 OR 组合。