Cogs.Core
|
Public Member Functions | |
AssetStatsCommand (EditorState *state) | |
void | apply () override |
Run the command. | |
void | undo () override |
void | applyPost () override |
![]() | |
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. | |
Static Public Member Functions | |
static bool | calculateStats (Context *context, PropertyStore &properties, const StringView &source, const StringView &destination) |
Additional Inherited Members | |
![]() | |
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. | |
![]() | |
EditorState * | state = nullptr |
Context * | context = nullptr |
Definition at line 9 of file AssetStatsCommand.h.
|
inline |
Definition at line 11 of file AssetStatsCommand.h.
|
overridevirtual |
Run the command.
In batch scripts this method is called for all type of commands. In interactive mode this method is not called for model commands (subclasses of ModalEditorCommand)
Implements Cogs::Core::EditorCommand.
Definition at line 1089 of file AssetStatsCommand.cpp.
|
overridevirtual |
Implements Cogs::Core::PostCommand.
Definition at line 1159 of file AssetStatsCommand.cpp.
|
static |
Definition at line 1099 of file AssetStatsCommand.cpp.
|
overridevirtual |
Implements Cogs::Core::EditorCommand.
Definition at line 1094 of file AssetStatsCommand.cpp.