3#include "Engine/UndoRedo/UndoCommand.h"
4#include "Engine/Network/NetworkManager.h"
13 : opId_(opId), oldPos_(oldPos), newPos_(newPos) {}
18 nm().nodePositionChanged(opId_, oldPos_);
24 nm().nodePositionChanged(opId_, newPos_);
27 UndoCommandType type()
const override {
return UndoCommandType::MoveNode; }
Basic attribute, parameter, and node types for Enzo.
uint64_t OpId
The unique ID assigned to each node in the network.
Definition Types.h:87
void setPosition(bt::Vector2f pos)
Sets the node's position in the network graph.
Definition GeometryOperator.h:158
Definition MoveNodeCommand.h:10
GeometryOperator & getGeoOperator(nt::OpId opId)
Returns a reference to the GeometryOperator with the given OpId.
Definition NetworkManager.cpp:140
Definition UndoCommand.h:8