|
Cogs.Core
|
Public Member Functions | |
| RRMultiSimplifyCommand (EditorState *state) | |
| void | apply () override |
| Run the command. | |
| void | undo () override |
| void | beginModal () override |
| Called when the command is initiated. | |
| void | showGui () override |
| Display custom ImGUI. | |
| bool | continueModal () override |
| Shall return true while the GUI should still be shown. False when. | |
| bool | initTaskData () |
| void | finishTaskData () |
| bool | issueTask () |
| void | waitForTask () |
| void | showParameterGui () |
| void | showProgressGui () |
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. | |
Public Attributes | |
| float | epsilon = 0.1f |
| float | error = 0.3f |
| int | steps = 5 |
| bool | error_guided = false |
| bool | singleMesh = true |
| bool | debugColors = false |
| NormalGenArgs | normalGenArgs |
| RRTaskState | taskState |
| std::vector< MeshHandle > | originalMeshes |
| std::atomic< bool > | modal = false |
| TaskId | task = NoTask |
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. | |
Additional Inherited Members | |
Protected Attributes inherited from Cogs::Core::EditorCommand | |
| EditorState * | state = nullptr |
| Context * | context = nullptr |
Definition at line 8 of file RRMultiSimplifyCommand.h.
| Cogs::Core::RRMultiSimplifyCommand::RRMultiSimplifyCommand | ( | EditorState * | state | ) |
Definition at line 21 of file RRMultiSimplifyCommand.cpp.
|
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 120 of file RRMultiSimplifyCommand.cpp.
|
overridevirtual |
Called when the command is initiated.
Implements Cogs::Core::ModalEditorCommand.
Definition at line 260 of file RRMultiSimplifyCommand.cpp.
|
overridevirtual |
Shall return true while the GUI should still be shown. False when.
Implements Cogs::Core::ModalEditorCommand.
Definition at line 275 of file RRMultiSimplifyCommand.cpp.
| void Cogs::Core::RRMultiSimplifyCommand::finishTaskData | ( | ) |
Definition at line 65 of file RRMultiSimplifyCommand.cpp.
| bool Cogs::Core::RRMultiSimplifyCommand::initTaskData | ( | ) |
Definition at line 27 of file RRMultiSimplifyCommand.cpp.
| bool Cogs::Core::RRMultiSimplifyCommand::issueTask | ( | ) |
Definition at line 164 of file RRMultiSimplifyCommand.cpp.
|
overridevirtual |
Display custom ImGUI.
Implements Cogs::Core::ModalEditorCommand.
Definition at line 265 of file RRMultiSimplifyCommand.cpp.
| void Cogs::Core::RRMultiSimplifyCommand::showParameterGui | ( | ) |
Definition at line 199 of file RRMultiSimplifyCommand.cpp.
| void Cogs::Core::RRMultiSimplifyCommand::showProgressGui | ( | ) |
Definition at line 244 of file RRMultiSimplifyCommand.cpp.
|
inlineoverridevirtual |
Implements Cogs::Core::EditorCommand.
Definition at line 13 of file RRMultiSimplifyCommand.h.
| void Cogs::Core::RRMultiSimplifyCommand::waitForTask | ( | ) |
Definition at line 192 of file RRMultiSimplifyCommand.cpp.
| bool Cogs::Core::RRMultiSimplifyCommand::debugColors = false |
Definition at line 25 of file RRMultiSimplifyCommand.h.
| float Cogs::Core::RRMultiSimplifyCommand::epsilon = 0.1f |
Definition at line 19 of file RRMultiSimplifyCommand.h.
| float Cogs::Core::RRMultiSimplifyCommand::error = 0.3f |
Definition at line 20 of file RRMultiSimplifyCommand.h.
| bool Cogs::Core::RRMultiSimplifyCommand::error_guided = false |
Definition at line 22 of file RRMultiSimplifyCommand.h.
| std::atomic<bool> Cogs::Core::RRMultiSimplifyCommand::modal = false |
Definition at line 31 of file RRMultiSimplifyCommand.h.
| NormalGenArgs Cogs::Core::RRMultiSimplifyCommand::normalGenArgs |
Definition at line 26 of file RRMultiSimplifyCommand.h.
| std::vector<MeshHandle> Cogs::Core::RRMultiSimplifyCommand::originalMeshes |
Definition at line 29 of file RRMultiSimplifyCommand.h.
| bool Cogs::Core::RRMultiSimplifyCommand::singleMesh = true |
Definition at line 24 of file RRMultiSimplifyCommand.h.
| int Cogs::Core::RRMultiSimplifyCommand::steps = 5 |
Definition at line 21 of file RRMultiSimplifyCommand.h.
| TaskId Cogs::Core::RRMultiSimplifyCommand::task = NoTask |
Definition at line 32 of file RRMultiSimplifyCommand.h.
| RRTaskState Cogs::Core::RRMultiSimplifyCommand::taskState |
Definition at line 28 of file RRMultiSimplifyCommand.h.