Cogs.Core
|
Abstract base class for all editor batch Post commands. More...
#include <EditorCommand.h>
Public Member Functions | |
PostCommand (EditorState *state) | |
virtual void | applyPost ()=0 |
![]() | |
EditorCommand (EditorState *state, Context *context) | |
virtual void | apply ()=0 |
Run the command. | |
virtual void | undo ()=0 |
virtual void | redo () |
virtual bool | mergeWith (const EditorCommand *) |
virtual MeshHandle | applyMesh (MeshHandle) |
Workaround for having extendable mesh processing available without linking (e.g command -> RR). | |
virtual void | close () |
Close command, i.e. prevent merging with another command. | |
bool | isClosed () const |
bool | merge (const EditorCommand *command) |
Merge into this if not this is closed. | |
Public Attributes | |
PropertyStore | properties |
![]() | |
std::vector< ParsedValue > | options |
Options passed to the command when running in batch mode. | |
bool | permanentUndo = false |
True if cannot Redo after Undo. | |
Additional Inherited Members | |
![]() | |
EditorState * | state = nullptr |
Context * | context = nullptr |
Abstract base class for all editor batch Post commands.
Definition at line 27 of file EditorCommand.h.
|
inlineexplicit |
Definition at line 29 of file EditorCommand.h.
PropertyStore Cogs::Core::PostCommand::properties |
Definition at line 35 of file EditorCommand.h.