![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
NodeGraphManager - Manages multiple node graphs Allows opening multiple behavior trees/FSMs simultaneously. More...
#include <NodeGraphManager.h>
Public Member Functions | |
| void | Initialize () |
| void | Shutdown () |
| int | CreateGraph (const std::string &name, const std::string &type) |
| bool | CloseGraph (int graphId) |
| NodeGraph * | GetGraph (int graphId) |
| const NodeGraph * | GetGraph (int graphId) const |
| void | SetActiveGraph (int graphId) |
| int | GetActiveGraphId () const |
| NodeGraph * | GetActiveGraph () |
| const NodeGraph * | GetActiveGraph () const |
| std::vector< int > | GetAllGraphIds () const |
| std::string | GetGraphName (int graphId) const |
| void | SetGraphOrder (const std::vector< int > &newOrder) |
| bool | SaveGraph (int graphId, const std::string &filepath) |
| int | LoadGraph (const std::string &filepath) |
| bool | IsInitialized () const |
| bool | IsGraphDirty (int graphId) const |
| bool | HasUnsavedChanges () const |
Static Public Member Functions | |
| static NodeGraphManager & | Instance () |
| static NodeGraphManager & | Get () |
Private Member Functions | |
| NodeGraphManager () | |
| ~NodeGraphManager () | |
| NodeGraphManager (const NodeGraphManager &)=delete | |
| NodeGraphManager & | operator= (const NodeGraphManager &)=delete |
Private Attributes | |
| bool | m_Initialized = false |
| int | m_ActiveGraphId = -1 |
| int | m_LastActiveGraphId = -1 |
| int | m_NextGraphId = 1 |
| std::map< int, std::unique_ptr< NodeGraph > > | m_Graphs |
| std::vector< int > | m_GraphOrder |
NodeGraphManager - Manages multiple node graphs Allows opening multiple behavior trees/FSMs simultaneously.
Definition at line 190 of file NodeGraphManager.h.
|
private |
Definition at line 555 of file NodeGraphManager.cpp.
|
private |
Definition at line 559 of file NodeGraphManager.cpp.
References Shutdown().
Here is the call graph for this function:
|
privatedelete |
Definition at line 600 of file NodeGraphManager.cpp.
References GetComponentTypeID_Static(), m_ActiveGraphId, m_GraphOrder, m_Graphs, and m_LastActiveGraphId.
Referenced by Olympe::NodeGraphPanel::RenderGraphTabs().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 584 of file NodeGraphManager.cpp.
References GetComponentTypeID_Static(), m_ActiveGraphId, m_GraphOrder, m_Graphs, m_LastActiveGraphId, and m_NextGraphId.
Referenced by Olympe::NodeGraphPanel::Render(), and Olympe::NodeGraphPanel::RenderGraphTabs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 194 of file NodeGraphManager.h.
References Instance().
Referenced by Olympe::NodeGraphPanel::CreateNewNode(), Olympe::CreateNodeCommand::Execute(), Olympe::LinkNodesCommand::Execute(), Olympe::UnlinkNodesCommand::Execute(), Olympe::SetParameterCommand::Execute(), Olympe::DuplicateNodeCommand::Execute(), Olympe::EditNodeCommand::Execute(), Olympe::NodeGraphPanel::HandleKeyboardShortcuts(), Olympe::NodeGraphPanel::HandleNodeInteractions(), Olympe::BlueprintEditor::Initialize(), Olympe::BlueprintEditor::OpenGraphInEditor(), Olympe::NodeGraphPanel::Render(), Olympe::NodeGraphPanel::RenderContextMenu(), Olympe::NodeGraphPanel::RenderGraph(), Olympe::NodeGraphPanel::RenderGraphTabs(), Olympe::NodeGraphPanel::RenderNodeEditModal(), Olympe::BlueprintEditor::Shutdown(), Olympe::CreateNodeCommand::Undo(), Olympe::LinkNodesCommand::Undo(), Olympe::UnlinkNodesCommand::Undo(), Olympe::SetParameterCommand::Undo(), Olympe::DuplicateNodeCommand::Undo(), Olympe::EditNodeCommand::Undo(), and Olympe::ValidationPanel::ValidateActiveGraph().
Here is the call graph for this function:
Here is the caller graph for this function:| NodeGraph * Olympe::NodeGraphManager::GetActiveGraph | ( | ) |
Definition at line 677 of file NodeGraphManager.cpp.
References GetGraph(), and m_ActiveGraphId.
Referenced by Olympe::NodeGraphPanel::CreateNewNode(), Olympe::NodeGraphPanel::HandleKeyboardShortcuts(), Olympe::NodeGraphPanel::HandleNodeInteractions(), Olympe::NodeGraphPanel::Render(), Olympe::NodeGraphPanel::RenderContextMenu(), Olympe::NodeGraphPanel::RenderGraph(), Olympe::NodeGraphPanel::RenderNodeEditModal(), and Olympe::ValidationPanel::ValidateActiveGraph().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 682 of file NodeGraphManager.cpp.
References GetGraph(), and m_ActiveGraphId.
Here is the call graph for this function:
|
inline |
Definition at line 208 of file NodeGraphManager.h.
References m_ActiveGraphId.
Referenced by Olympe::NodeGraphPanel::Render(), Olympe::NodeGraphPanel::RenderGraph(), and Olympe::NodeGraphPanel::RenderGraphTabs().
Here is the caller graph for this function:| std::vector< int > Olympe::NodeGraphManager::GetAllGraphIds | ( | ) | const |
Definition at line 687 of file NodeGraphManager.cpp.
References m_GraphOrder.
Referenced by Olympe::NodeGraphPanel::RenderGraphTabs().
Here is the caller graph for this function:Definition at line 652 of file NodeGraphManager.cpp.
References GetComponentTypeID_Static(), and m_Graphs.
Referenced by Olympe::CreateNodeCommand::Execute(), Olympe::LinkNodesCommand::Execute(), Olympe::UnlinkNodesCommand::Execute(), Olympe::SetParameterCommand::Execute(), Olympe::DuplicateNodeCommand::Execute(), Olympe::EditNodeCommand::Execute(), GetActiveGraph(), GetActiveGraph(), GetGraphName(), IsGraphDirty(), Olympe::NodeGraphPanel::RenderGraphTabs(), SaveGraph(), Olympe::CreateNodeCommand::Undo(), Olympe::LinkNodesCommand::Undo(), Olympe::UnlinkNodesCommand::Undo(), Olympe::SetParameterCommand::Undo(), Olympe::DuplicateNodeCommand::Undo(), and Olympe::EditNodeCommand::Undo().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 660 of file NodeGraphManager.cpp.
References GetComponentTypeID_Static(), and m_Graphs.
Here is the call graph for this function:| std::string Olympe::NodeGraphManager::GetGraphName | ( | int | graphId | ) | const |
Definition at line 693 of file NodeGraphManager.cpp.
References GetComponentTypeID_Static(), and GetGraph().
Referenced by Olympe::NodeGraphPanel::RenderGraphTabs().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Olympe::NodeGraphManager::HasUnsavedChanges | ( | ) | const |
Definition at line 940 of file NodeGraphManager.cpp.
References GetComponentTypeID_Static(), and m_Graphs.
Here is the call graph for this function:| void Olympe::NodeGraphManager::Initialize | ( | ) |
Definition at line 564 of file NodeGraphManager.cpp.
References m_Initialized.
Referenced by Olympe::BlueprintEditor::Initialize().
Here is the caller graph for this function:
|
static |
Definition at line 549 of file NodeGraphManager.cpp.
References GetComponentTypeID_Static().
Referenced by Get().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 934 of file NodeGraphManager.cpp.
References GetComponentTypeID_Static(), and GetGraph().
Here is the call graph for this function:
|
inline |
Definition at line 222 of file NodeGraphManager.h.
References m_Initialized.
Definition at line 757 of file NodeGraphManager.cpp.
References Olympe::NodeGraph::FromJson(), GetComponentTypeID_Static(), m_ActiveGraphId, m_GraphOrder, m_Graphs, m_LastActiveGraphId, and m_NextGraphId.
Referenced by Olympe::BlueprintEditor::OpenGraphInEditor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatedelete |
Definition at line 716 of file NodeGraphManager.cpp.
References GetComponentTypeID_Static(), and GetGraph().
Here is the call graph for this function:Definition at line 668 of file NodeGraphManager.cpp.
References m_ActiveGraphId, m_Graphs, and m_LastActiveGraphId.
Referenced by Olympe::NodeGraphPanel::RenderGraphTabs().
Here is the caller graph for this function:Definition at line 699 of file NodeGraphManager.cpp.
References GetComponentTypeID_Static(), m_GraphOrder, and m_Graphs.
Here is the call graph for this function:| void Olympe::NodeGraphManager::Shutdown | ( | ) |
Definition at line 573 of file NodeGraphManager.cpp.
References m_ActiveGraphId, m_Graphs, and m_Initialized.
Referenced by Olympe::BlueprintEditor::Shutdown(), and ~NodeGraphManager().
Here is the caller graph for this function:
|
private |
Definition at line 237 of file NodeGraphManager.h.
Referenced by CloseGraph(), CreateGraph(), GetActiveGraph(), GetActiveGraph(), GetActiveGraphId(), LoadGraph(), SetActiveGraph(), and Shutdown().
|
private |
Definition at line 241 of file NodeGraphManager.h.
Referenced by CloseGraph(), CreateGraph(), GetAllGraphIds(), LoadGraph(), and SetGraphOrder().
Definition at line 240 of file NodeGraphManager.h.
Referenced by CloseGraph(), CreateGraph(), GetGraph(), GetGraph(), HasUnsavedChanges(), LoadGraph(), SetActiveGraph(), SetGraphOrder(), and Shutdown().
Definition at line 236 of file NodeGraphManager.h.
Referenced by Initialize(), IsInitialized(), and Shutdown().
|
private |
Definition at line 238 of file NodeGraphManager.h.
Referenced by CloseGraph(), CreateGraph(), LoadGraph(), and SetActiveGraph().
|
private |
Definition at line 239 of file NodeGraphManager.h.
Referenced by CreateGraph(), and LoadGraph().