-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathVisualNodeSystem.h
More file actions
38 lines (29 loc) · 1.06 KB
/
VisualNodeSystem.h
File metadata and controls
38 lines (29 loc) · 1.06 KB
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
33
34
35
36
37
38
#pragma once
#include "SubSystems/VisualNodeArea/VisualNodeArea.h"
namespace VisNodeSys
{
class VISUAL_NODE_SYSTEM_API NodeSystem
{
SINGLETON_PRIVATE_PART(NodeSystem)
std::vector<NodeArea*> CreatedAreas;
#ifdef VISUAL_NODE_SYSTEM_BUILD_STANDARD_NODES
void RegisterStandardNodes();
#endif
public:
SINGLETON_PUBLIC_PART(NodeSystem)
void Initialize(bool bTestMode = false);
std::string GetVersion();
std::string GetFullVersion();
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
}