2#include "Engine/Operator/GeometryOperator.h"
3#include "Engine/Operator/Geometry.h"
6#include <unordered_map>
86 boost::signals2::signal<void (
nt::OpId)> displayNodeChanged;
94 boost::signals2::signal<void (std::vector<nt::OpId> selectedNodeIds)> selectedNodesChanged;
107 std::vector<enzo::nt::OpId> getDependencyGraph(
enzo::nt::OpId opId);
108 std::vector<enzo::nt::OpId> getDependentsGraph(
enzo::nt::OpId opId);
112 std::vector<enzo::nt::OpId> selectedNodes_;
113 std::unordered_map<enzo::nt::OpId, std::unique_ptr<enzo::nt::GeometryOperator>> gopStore_;
117 std::optional<OpId> displayOp_=std::nullopt;
Basic attribute, parameter, and node types for Enzo.
uint64_t OpId
The unique ID assigned to each node in the network.
Definition Types.h:80
Attribute based geometry container exchanged and modified by nodes.
The unique runtime representation of a node.
Definition GeometryOperator.h:19
The central coordinator of the engine's node system.
Definition NetworkManager.h:26
OpId addOperator(op::OpInfo opInfo)
Creates a new node in the network.
Definition NetworkManager.cpp:16
NetworkManager(const NetworkManager &obj)=delete
Deleted the copy constructor for singleton.
bool isValidOp(nt::OpId opId)
Returns whether the node exists in the network and is valid.
Definition NetworkManager.cpp:66
void setSelectedNode(OpId opId, bool selected, bool add=false)
Set the selection state for the given node.
Definition NetworkManager.cpp:87
void setDisplayOp(OpId opId)
Sets given OpId to be displayed, releasing previous display Node.
Definition NetworkManager.cpp:76
const std::vector< enzo::nt::OpId > & getSelectedNodes()
Returns the OpIds for all selected nodes.
Definition NetworkManager.cpp:123
static NetworkManager & getInstance()
Returns a reference to the singleton instance.
Definition NetworkManager.cpp:50
std::optional< OpId > getDisplayOp()
Returns the operator ID for the node with its display flag set. There can only be only be one operato...
Definition NetworkManager.cpp:196
GeometryOperator & getGeoOperator(nt::OpId opId)
Returns a reference to the GeometryOperator with the given OpId.
Definition NetworkManager.cpp:56