summaryrefslogtreecommitdiffstats
path: root/src/runtime/dragon/framegraph/dragonframegraphnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/dragon/framegraph/dragonframegraphnode.cpp')
-rw-r--r--src/runtime/dragon/framegraph/dragonframegraphnode.cpp44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/runtime/dragon/framegraph/dragonframegraphnode.cpp b/src/runtime/dragon/framegraph/dragonframegraphnode.cpp
index 09dd558..5b058bf 100644
--- a/src/runtime/dragon/framegraph/dragonframegraphnode.cpp
+++ b/src/runtime/dragon/framegraph/dragonframegraphnode.cpp
@@ -70,52 +70,8 @@ FrameGraphNode::~FrameGraphNode()
{
}
-void FrameGraphNode::initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &change)
-{
- // Set up the parent child relationship and enabled state
- const auto creationChange = qSharedPointerCast<QFrameGraphNodeCreatedChangeBase>(change);
- m_childFrameGraphNodeIds = QFrameGraphNodeCreatedChangeBasePrivate::get(creationChange.get())->m_childFrameGraphNodeIds;
-}
-
-QVector<Qt3DCore::QNodeId> FrameGraphNode::childrenIds() const
-{
- return m_childFrameGraphNodeIds;
-}
-
void FrameGraphNode::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e)
{
- switch (e->type()) {
-
- case Qt3DCore::PropertyUpdated: {
- Qt3DCore::QPropertyUpdatedChangePtr change = qSharedPointerCast<Qt3DCore::QPropertyUpdatedChange>(e);
- break;
- }
-
- case Qt3DCore::PropertyValueAdded: {
- Qt3DCore::QPropertyNodeAddedChangePtr change = qSharedPointerCast<Qt3DCore::QPropertyNodeAddedChange>(e);
- if (change->metaObject()->inherits(&QFrameGraphNode::staticMetaObject)) {
- if (!m_childFrameGraphNodeIds.contains(change->addedNodeId())) {
- markDirty(DirtyTreeInfo{});
- m_childFrameGraphNodeIds.append(change->addedNodeId());
- }
- }
- break;
- }
-
- case Qt3DCore::PropertyValueRemoved: {
- Qt3DCore::QPropertyNodeRemovedChangePtr change = qSharedPointerCast<Qt3DCore::QPropertyNodeRemovedChange>(e);
- if (change->metaObject()->inherits(&QFrameGraphNode::staticMetaObject)) {
- m_childFrameGraphNodeIds.removeAll(change->removedNodeId());
- markDirty(DirtyTreeInfo{});
- }
- break;
- }
- default:
- break;
- }
- // TODO what if the parent changes?
-
- markDirty();
BackendNode::sceneChangeEvent(e);
}