Polyphase Game Engine
Loading...
Searching...
No Matches
NodeClipboard.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "SmartPointer.h"
6
7class Node;
8
9// In-process clipboard for scene-hierarchy copy/paste. Holds deep-cloned
10// snapshots of selected nodes so the source nodes can be edited, deleted, or
11// shelved (when switching the active scene) without invalidating the
12// clipboard. Paste re-clones the snapshots, so each paste produces fresh
13// nodes with new persistent UUIDs.
15{
16 void Copy(const std::vector<Node*>& sourceNodes);
17 bool HasContent();
18 const std::vector<NodePtr>& GetContents();
19 void Clear();
20}
Definition Node.h:67
Definition NodeClipboard.h:15
const std::vector< NodePtr > & GetContents()
Definition NodeClipboard.cpp:68
void Clear()
Definition NodeClipboard.cpp:73
void Copy(const std::vector< Node * > &sourceNodes)
Definition NodeClipboard.cpp:19
bool HasContent()
Definition NodeClipboard.cpp:63