QSceneChange Class

(Qt3DCore::QSceneChange)

The base class for changes that can be sent and received by Qt3D's change notification system More...

Public Types

enum DeliveryFlag { BackendNodes, Nodes, DeliverToAll }
flags DeliveryFlags

Public Functions

virtual ~QSceneChange()
DeliveryFlags deliveryFlags() const
void setDeliveryFlags(DeliveryFlags flags)
QNodeId subjectId() const
ChangeFlag type() const

Protected Functions

QSceneChange(ChangeFlag type, QNodeId subjectId)
enum ChangeFlag { NodeCreated, NodeDeleted, PropertyUpdated, PropertyValueAdded, ..., AllChanges }
typedef QSceneChangePtr

Detailed Description

The base class for changes that can be sent and received by Qt3D's change notification system

Member Type Documentation

enum QSceneChange::DeliveryFlag
flags QSceneChange::DeliveryFlags

The types of change that can be sent and received by Qt3D's change notification system.

ConstantValue
Qt3DCore::QSceneChange::BackendNodes0x0001
Qt3DCore::QSceneChange::Nodes0x0010
Qt3DCore::QSceneChange::DeliverToAllBackendNodes | Nodes

The DeliveryFlags type is a typedef for QFlags<DeliveryFlag>. It stores an OR combination of DeliveryFlag values.

Member Function Documentation

[protected] QSceneChange::QSceneChange(ChangeFlag type, QNodeId subjectId)

Constructs a new QSceneChange with type and subjectId.

[virtual] QSceneChange::~QSceneChange()

Destroys the instance of QSceneChange. The destructor is virtual.

DeliveryFlags QSceneChange::deliveryFlags() const

Returns the set delivery flags

See also setDeliveryFlags().

void QSceneChange::setDeliveryFlags(DeliveryFlags flags)

Set the Delivery flags of the change to flags

See also deliveryFlags().

QNodeId QSceneChange::subjectId() const

Returns scene change subject id.

ChangeFlag QSceneChange::type() const

Returns scene change type.

Related Non-Members

enum Qt3DCore::ChangeFlag
flags Qt3DCore::ChangeFlags

The types of change that can be sent and received by Qt3D's change notification system.

ConstantValueDescription
Qt3DCore::NodeCreated1<<0A new instance of a QNode subclass has been created.
Qt3DCore::NodeDeleted1<<1A QNode has been deleted.
Qt3DCore::PropertyUpdated1<<2A QNode property has been updated.
Qt3DCore::PropertyValueAdded1<<3A QNode has been added to the scene.
Qt3DCore::PropertyValueRemoved1<<4A QNode has been removed from the scene.
Qt3DCore::ComponentAdded1<<5A QComponent has been added to a QEntity.
Qt3DCore::ComponentRemoved1<<6A QComponent has been removed from a QEntity.
Qt3DCore::AllChanges0xFFFFFFFFAllows an observer to monitor for any of the above changes.

The ChangeFlags type is a typedef for QFlags<ChangeFlag>. It stores an OR combination of ChangeFlag values.

typedef Qt3DCore::QSceneChangePtr

A shared pointer for QSceneChange.