15#include "../../NodeGraphCore/NodeGraphCore.h"
16#include "../../NodeGraphCore/GraphDocument.h"
17#include "../../vector.h"
ComponentTypeID GetComponentTypeID_Static()
Singleton clipboard manager for AI Editor.
AIEditorClipboard & operator=(const AIEditorClipboard &)=delete
void Cut(const std::vector< NodeGraph::NodeId > &nodeIds, NodeGraph::GraphDocument *doc)
Cut selected nodes (copy + delete)
~AIEditorClipboard()=default
void Clear()
Clear clipboard.
static AIEditorClipboard & Get()
Get singleton instance.
AIEditorClipboard()=default
AIEditorClipboard(const AIEditorClipboard &)=delete
size_t GetNodeCount() const
Get number of nodes in clipboard.
void Copy(const std::vector< NodeGraph::NodeId > &nodeIds, NodeGraph::GraphDocument *doc)
Copy selected nodes to clipboard.
std::vector< NodeGraph::NodeId > Paste(NodeGraph::GraphDocument *doc, Vector pasteOffset)
Paste clipboard nodes into active graph.
bool IsEmpty() const
Check if clipboard has data.
std::vector< ClipboardNode > m_nodes
Copied nodes.
std::vector< ClipboardLink > m_links
Copied links.
Main document class for a node graph.
constexpr uint32_t PIN_ID_INPUT_OFFSET
Offset for input pin: nodeId * 1000 + 0.
constexpr uint32_t PIN_ID_OUTPUT_OFFSET
Offset for output pin: nodeId * 1000 + 1.
constexpr uint32_t PIN_ID_MULTIPLIER
Multiplier for pin IDs from node IDs.
< Provides AssetID and INVALID_ASSET_ID
Represents a connection between nodes in the clipboard.
uint32_t childOriginalId
Child node's original ID.
uint32_t parentOriginalId
Parent node's original ID.
Represents a node in the clipboard.
uint32_t originalId
Original node ID (for link reconstruction)
std::string name
Node display name.
Vector position
Position relative to first node.
std::string type
Node type (e.g., "BT_Selector")
std::map< std::string, std::string > parameters
Node parameters.