summaryrefslogtreecommitdiffstats
path: root/src/core/qscene.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2014-09-19 08:37:03 +0200
committerSean Harmer <sean.harmer@kdab.com>2014-09-30 12:16:39 +0200
commit94bb50fba66435a078f30b1da9cf5507522ab136 (patch)
tree1c48f4e4463dd0f28fcd38efb259017987bbc8d6 /src/core/qscene.h
parent616e8083872c953a31acc871749e05c621c18bd1 (diff)
Improved/Refactored cloning and doClone off all subclasses
Note: As we are using QScene during cloning, it is important that node hierarchy be created and added in the proper order (parent then child). Change-Id: I8fd53f7ca696ec9aca19cc70dc116ccba4154911 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/qscene.h')
-rw-r--r--src/core/qscene.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/qscene.h b/src/core/qscene.h
index ed8595fa7..fd4c1977c 100644
--- a/src/core/qscene.h
+++ b/src/core/qscene.h
@@ -65,10 +65,17 @@ public:
QNode *lookupNode(const QUuid &uuid) const Q_DECL_OVERRIDE;
QUuid nodeIdFromObservable(QObservableInterface *observable) const Q_DECL_OVERRIDE;
void setArbiter(QChangeArbiter *arbiter) Q_DECL_OVERRIDE;
+
+ // Component -> Entities
QList<QUuid> entitiesForComponent(const QUuid &uuid) const Q_DECL_OVERRIDE;
void addEntityForComponent(const QUuid &componentUuid, const QUuid &entityUuid) Q_DECL_OVERRIDE;
void removeEntityForComponent(const QUuid &componentUuid, const QUuid &entityUuid) Q_DECL_OVERRIDE;
+ // QNode -> QNode *children
+ QNode *lookupClone(const QUuid &id) const Q_DECL_OVERRIDE;
+ void addCloneLookup(QNode *clone) Q_DECL_OVERRIDE;
+ void clearCloneLookup() Q_DECL_OVERRIDE;
+
private:
Q_DECLARE_PRIVATE(QScene)
QScenePrivate *d_ptr;