Cogs.Core
|
Public Member Functions | |
UniqueVerticesCommand (EditorState *state) | |
void | apply () override |
Run the command. | |
void | showGui () override |
Display custom ImGUI. | |
bool | issueTask () override |
![]() | |
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 |
![]() | |
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. | |
![]() | |
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 = std::numeric_limits<float>::epsilon() |
bool | keepNormals = true |
bool | keepTexCoords = true |
bool | keepTangents = true |
bool | hasNormals = true |
bool | hasTexCoords = true |
bool | hasTangents = true |
![]() | |
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 | |
![]() | |
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 |
![]() | |
EditorState * | state = nullptr |
Context * | context = nullptr |
Definition at line 72 of file MeshOpCommands.h.
Cogs::Core::UniqueVerticesCommand::UniqueVerticesCommand | ( | EditorState * | state | ) |
Definition at line 221 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 228 of file MeshOpCommands.cpp.
|
overridevirtual |
Implements Cogs::Core::AbstractLiveUpdateCommand.
Definition at line 274 of file MeshOpCommands.cpp.
|
overridevirtual |
Display custom ImGUI.
Reimplemented from Cogs::Core::AbstractLiveUpdateCommand.
Definition at line 251 of file MeshOpCommands.cpp.
References Cogs::Core::AbstractLiveUpdateCommand::showGui().
float Cogs::Core::UniqueVerticesCommand::epsilon = std::numeric_limits<float>::epsilon() |
Definition at line 76 of file MeshOpCommands.h.
bool Cogs::Core::UniqueVerticesCommand::hasNormals = true |
Definition at line 82 of file MeshOpCommands.h.
bool Cogs::Core::UniqueVerticesCommand::hasTangents = true |
Definition at line 84 of file MeshOpCommands.h.
bool Cogs::Core::UniqueVerticesCommand::hasTexCoords = true |
Definition at line 83 of file MeshOpCommands.h.
bool Cogs::Core::UniqueVerticesCommand::keepNormals = true |
Definition at line 77 of file MeshOpCommands.h.
bool Cogs::Core::UniqueVerticesCommand::keepTangents = true |
Definition at line 79 of file MeshOpCommands.h.
bool Cogs::Core::UniqueVerticesCommand::keepTexCoords = true |
Definition at line 78 of file MeshOpCommands.h.