-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVisualNodeSystem.h
32 lines (24 loc) · 941 Bytes
/
VisualNodeSystem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "SubSystems/VisualNodeArea/VisualNodeArea.h"
namespace VisNodeSys
{
class VISUAL_NODE_SYSTEM_API NodeSystem
{
SINGLETON_PRIVATE_PART(NodeSystem)
std::vector<NodeArea*> CreatedAreas;
public:
SINGLETON_PUBLIC_PART(NodeSystem)
void Initialize(bool bTestMode = false);
NodeArea* CreateNodeArea();
void DeleteNodeArea(const NodeArea* NodeArea);
void MoveNodesTo(NodeArea* SourceNodeArea, NodeArea* TargetNodeArea, bool SelectMovedNodes = false);
std::vector<std::pair<std::string, ImColor>> GetAssociationsOfSocketTypeToColor(std::string SocketType, ImColor Color);
void AssociateSocketTypeToColor(std::string SocketType, ImColor Color);
};
#ifdef VISUAL_NODE_SYSTEM_SHARED
extern "C" __declspec(dllexport) void* GetNodeSystem();
#define NODE_SYSTEM (*static_cast<VisNodeSys::NodeSystem*>(VisNodeSys::GetNodeSystem()))
#else
#define NODE_SYSTEM VisNodeSys::NodeSystem::GetInstance()
#endif
}