|
Cogs.Core
|
Public Member Functions | |
| AbstractLiveUpdateCommand (EditorState *state, uint32_t primitiveMask=~0u) | |
| void | beginModal () override |
| Called when the command is initiated. | |
| bool | continueModal () override |
| Shall return true while the GUI should still be shown. False when. | |
| void | showGui () override |
| Display custom ImGUI. | |
| void | undo () override |
| virtual bool | issueTask ()=0 |
Public Member Functions inherited from Cogs::Core::ModalEditorCommand | |
| ModalEditorCommand (EditorState *state) | |
| virtual void | beginModal ()=0 |
| Called when the command is initiated. | |
| virtual void | showGui ()=0 |
| Display custom ImGUI. | |
| virtual bool | continueModal ()=0 |
| Shall return true while the GUI should still be shown. False when. | |
Public Member Functions inherited from Cogs::Core::EditorCommand | |
| 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. | |
Protected Attributes | |
| UnpackOptions | opts |
| uint32_t | primitiveMask |
| bool | modal = false |
| bool | dirty = false |
| std::atomic< bool > | running = false |
| std::atomic< bool > | cancel = false |
| MeshItems | items |
| MeshReps | meshes |
| MeshReps | newMeshes |
| std::vector< MeshHandle > | originalMeshes |
| TaskId | task = NoTask |
Protected Attributes inherited from Cogs::Core::EditorCommand | |
| EditorState * | state = nullptr |
| Context * | context = nullptr |
Additional Inherited Members | |
Public Attributes inherited from Cogs::Core::EditorCommand | |
| std::vector< ParsedValue > | options |
| Options passed to the command when running in batch mode. | |
| bool | permanentUndo = false |
| True if cannot Redo after Undo. | |
Definition at line 31 of file MeshOpCommands.h.
|
inline |
Definition at line 33 of file MeshOpCommands.h.
|
overridevirtual |
Called when the command is initiated.
Implements Cogs::Core::ModalEditorCommand.
Definition at line 65 of file MeshOpCommands.cpp.
|
overridevirtual |
Shall return true while the GUI should still be shown. False when.
Implements Cogs::Core::ModalEditorCommand.
Definition at line 79 of file MeshOpCommands.cpp.
|
overridevirtual |
Display custom ImGUI.
Implements Cogs::Core::ModalEditorCommand.
Reimplemented in Cogs::Core::GenerateNormalsCommand, and Cogs::Core::UniqueVerticesCommand.
Definition at line 103 of file MeshOpCommands.cpp.
Referenced by Cogs::Core::GenerateNormalsCommand::showGui(), and Cogs::Core::UniqueVerticesCommand::showGui().
|
overridevirtual |
Implements Cogs::Core::EditorCommand.
Definition at line 97 of file MeshOpCommands.cpp.
|
protected |
Definition at line 49 of file MeshOpCommands.h.
|
protected |
Definition at line 47 of file MeshOpCommands.h.
|
protected |
Definition at line 50 of file MeshOpCommands.h.
|
protected |
Definition at line 51 of file MeshOpCommands.h.
|
protected |
Definition at line 46 of file MeshOpCommands.h.
|
protected |
Definition at line 52 of file MeshOpCommands.h.
|
protected |
Definition at line 44 of file MeshOpCommands.h.
|
protected |
Definition at line 53 of file MeshOpCommands.h.
|
protected |
Definition at line 45 of file MeshOpCommands.h.
|
protected |
Definition at line 48 of file MeshOpCommands.h.
|
protected |
Definition at line 55 of file MeshOpCommands.h.