Open 3D Engine AzToolsFramework 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.
AzToolsFramework::UndoSystem::UndoStack Class Reference

Public Member Functions

 AZ_CLASS_ALLOCATOR (UndoStack, AZ::SystemAllocator)
 
 UndoStack (IUndoNotify *notify)
 
 UndoStack (int, IUndoNotify *notify)
 
URSequencePointPost (URSequencePoint *)
 
URSequencePointUndo ()
 
URSequencePointRedo ()
 
URSequencePointFind (URCommandID id, const AZ::Uuid &typeOfCommand)
 
void SetClean ()
 
bool IsClean () const
 
void Reset ()
 
bool CanUndo () const
 
bool CanRedo () const
 
const char * GetRedoName () const
 
const char * GetUndoName () const
 
URSequencePointGetTop ()
 
URSequencePointPopTop ()
 
void Slice ()
 

Protected Types

typedef AZStd::vector< URSequencePoint * > SequencePointBuffer
 

Protected Attributes

int m_Cursor
 
int m_CleanPoint
 
SequencePointBuffer m_SequencePointsBuffer
 
IUndoNotifym_notify
 

Member Function Documentation

◆ Find()

URSequencePoint * AzToolsFramework::UndoSystem::UndoStack::Find ( URCommandID  id,
const AZ::Uuid &  typeOfCommand 
)

Usage: return the first command in all active command trees with a matching id returns NULL on failure to make any match

◆ Slice()

void AzToolsFramework::UndoSystem::UndoStack::Slice ( )

Usage: slices off all commands above the current cursor example: undo followed by new commands should slice to remove redo commands no longer viable


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