Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::UniqueVerticesCommand Struct Reference
Inheritance diagram for Cogs::Core::UniqueVerticesCommand:
Cogs::Core::AbstractLiveUpdateCommand Cogs::Core::ModalEditorCommand Cogs::Core::EditorCommand

Public Member Functions

 UniqueVerticesCommand (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 epsilon = std::numeric_limits<float>::epsilon()
 
bool keepNormals = true
 
bool keepTexCoords = true
 
bool keepTangents = true
 
bool hasNormals = true
 
bool hasTexCoords = true
 
bool hasTangents = true
 
- Public Attributes inherited from Cogs::Core::EditorCommand
std::vector< ParsedValueoptions
 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< MeshHandleoriginalMeshes
 
TaskId task = NoTask
 
- Protected Attributes inherited from Cogs::Core::EditorCommand
EditorStatestate = nullptr
 
Contextcontext = nullptr
 

Detailed Description

Definition at line 72 of file MeshOpCommands.h.

Constructor & Destructor Documentation

◆ UniqueVerticesCommand()

Cogs::Core::UniqueVerticesCommand::UniqueVerticesCommand ( EditorState state)

Definition at line 221 of file MeshOpCommands.cpp.

Member Function Documentation

◆ apply()

void Cogs::Core::UniqueVerticesCommand::apply ( )
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.

◆ issueTask()

bool Cogs::Core::UniqueVerticesCommand::issueTask ( )
overridevirtual

Implements Cogs::Core::AbstractLiveUpdateCommand.

Definition at line 274 of file MeshOpCommands.cpp.

◆ showGui()

void Cogs::Core::UniqueVerticesCommand::showGui ( )
overridevirtual

Display custom ImGUI.

Reimplemented from Cogs::Core::AbstractLiveUpdateCommand.

Definition at line 251 of file MeshOpCommands.cpp.

References Cogs::Core::AbstractLiveUpdateCommand::showGui().

Member Data Documentation

◆ epsilon

float Cogs::Core::UniqueVerticesCommand::epsilon = std::numeric_limits<float>::epsilon()

Definition at line 76 of file MeshOpCommands.h.

◆ hasNormals

bool Cogs::Core::UniqueVerticesCommand::hasNormals = true

Definition at line 82 of file MeshOpCommands.h.

◆ hasTangents

bool Cogs::Core::UniqueVerticesCommand::hasTangents = true

Definition at line 84 of file MeshOpCommands.h.

◆ hasTexCoords

bool Cogs::Core::UniqueVerticesCommand::hasTexCoords = true

Definition at line 83 of file MeshOpCommands.h.

◆ keepNormals

bool Cogs::Core::UniqueVerticesCommand::keepNormals = true

Definition at line 77 of file MeshOpCommands.h.

◆ keepTangents

bool Cogs::Core::UniqueVerticesCommand::keepTangents = true

Definition at line 79 of file MeshOpCommands.h.

◆ keepTexCoords

bool Cogs::Core::UniqueVerticesCommand::keepTexCoords = true

Definition at line 78 of file MeshOpCommands.h.


The documentation for this struct was generated from the following files: