|
Cogs.Core
|
Public Member Functions | |
| GenerateNormalsCommand (EditorState *state) | |
| void | apply () override |
| Run the command. | |
| void | showGui () override |
| Display custom ImGUI. | |
| bool | issueTask () override |
Public Member Functions inherited from Cogs::Core::AbstractLiveUpdateCommand | |
| 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. | |
Public Attributes | |
| float | featureAngle = 0.6f |
| float | protrusionAngle = 0.6f |
| bool | flip = false |
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::AbstractLiveUpdateCommand | |
| 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 |
Definition at line 59 of file MeshOpCommands.h.
| Cogs::Core::GenerateNormalsCommand::GenerateNormalsCommand | ( | EditorState * | state | ) |
Definition at line 121 of file MeshOpCommands.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 130 of file MeshOpCommands.cpp.
|
overridevirtual |
Implements Cogs::Core::AbstractLiveUpdateCommand.
Definition at line 183 of file MeshOpCommands.cpp.
|
overridevirtual |
Display custom ImGUI.
Reimplemented from Cogs::Core::AbstractLiveUpdateCommand.
Definition at line 153 of file MeshOpCommands.cpp.
References Cogs::Core::AbstractLiveUpdateCommand::showGui().
| float Cogs::Core::GenerateNormalsCommand::featureAngle = 0.6f |
Definition at line 63 of file MeshOpCommands.h.
| bool Cogs::Core::GenerateNormalsCommand::flip = false |
Definition at line 65 of file MeshOpCommands.h.
| float Cogs::Core::GenerateNormalsCommand::protrusionAngle = 0.6f |
Definition at line 64 of file MeshOpCommands.h.