Open 3D Engine ScriptCanvas Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
ScriptCanvasEditor::GraphItemChangeCommand Class Reference

Inherits ScriptCanvasEditor::GraphItemCommand.

Inherited by ScriptCanvasEditor::GraphItemAddCommand, and ScriptCanvasEditor::GraphItemRemovalCommand.

Public Member Functions

 AZ_RTTI (GraphItemChangeCommand, "{9F8805F7-61CD-40FC-B426-020925F4E3DB}", GraphItemCommand)
 
 AZ_CLASS_ALLOCATOR (GraphItemChangeCommand, AZ::SystemAllocator)
 
 GraphItemChangeCommand (AZStd::string_view friendlyName)
 
void Undo () override
 
void Redo () override
 
void Capture (EditorGraph *graph, bool captureUndo) override
 
void RestoreItem (const AZStd::vector< AZ::u8 > &restoreBuffer) override
 
- Public Member Functions inherited from ScriptCanvasEditor::GraphItemCommand
 AZ_RTTI (GraphItemCommand, "{94B50FAC-ACAF-4B9B-BA3C-9F3EE36854BA}", AzToolsFramework::UndoSystem::URSequencePoint)
 
 AZ_CLASS_ALLOCATOR (GraphItemCommand, AZ::SystemAllocator)
 
 GraphItemCommand (AZStd::string_view friendlyName)
 
void Undo () override
 
void Redo () override
 
virtual void Capture (EditorGraph *graph, bool captureUndo)
 
bool Changed () const override
 

Protected Member Functions

 GraphItemChangeCommand (const GraphItemChangeCommand &)=delete
 
const GraphItemChangeCommandoperator= (const GraphItemChangeCommand &)=delete
 
void DeleteOldGraphData (const UndoData &oldData)
 
void ActivateRestoredGraphData (const UndoData &restoredData)
 
- Protected Member Functions inherited from ScriptCanvasEditor::GraphItemCommand
 GraphItemCommand (const GraphItemCommand &)=delete
 
const GraphItemCommandoperator= (const GraphItemCommand &)=delete
 
virtual void RestoreItem (const AZStd::vector< AZ::u8 > &restoreBuffer)
 

Additional Inherited Members

- Protected Attributes inherited from ScriptCanvasEditor::GraphItemCommand
AZ::EntityId m_graphCanvasGraphId
 
AZ::EntityId m_scriptCanvasEntityId
 The id of the ScriptCanvas Entity with the Script Canvas Graph and Graph Canvas Scene.
 
ScriptCanvas::ScriptCanvasId m_scriptCanvasId
 
AZStd::vector< AZ::u8 > m_undoState
 
AZStd::vector< AZ::u8 > m_redoState
 

Member Function Documentation

◆ Capture()

void ScriptCanvasEditor::GraphItemChangeCommand::Capture ( EditorGraph graph,
bool  captureUndo 
)
overridevirtual

◆ RestoreItem()

void ScriptCanvasEditor::GraphItemChangeCommand::RestoreItem ( const AZStd::vector< AZ::u8 > &  restoreBuffer)
overridevirtual

The documentation for this class was generated from the following file: