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

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< MeshHandleoriginalMeshes
 
std::atomic< bool > modal = false
 
TaskId task = NoTask
 
- 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::EditorCommand
EditorStatestate = nullptr
 
Contextcontext = nullptr
 

Detailed Description

Definition at line 8 of file RRMultiSimplifyCommand.h.

Constructor & Destructor Documentation

◆ RRMultiSimplifyCommand()

Cogs::Core::RRMultiSimplifyCommand::RRMultiSimplifyCommand ( EditorState state)

Definition at line 21 of file RRMultiSimplifyCommand.cpp.

Member Function Documentation

◆ apply()

void Cogs::Core::RRMultiSimplifyCommand::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 120 of file RRMultiSimplifyCommand.cpp.

◆ beginModal()

void Cogs::Core::RRMultiSimplifyCommand::beginModal ( )
overridevirtual

Called when the command is initiated.

Implements Cogs::Core::ModalEditorCommand.

Definition at line 260 of file RRMultiSimplifyCommand.cpp.

◆ continueModal()

bool Cogs::Core::RRMultiSimplifyCommand::continueModal ( )
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.

◆ finishTaskData()

void Cogs::Core::RRMultiSimplifyCommand::finishTaskData ( )

Definition at line 65 of file RRMultiSimplifyCommand.cpp.

◆ initTaskData()

bool Cogs::Core::RRMultiSimplifyCommand::initTaskData ( )

Definition at line 27 of file RRMultiSimplifyCommand.cpp.

◆ issueTask()

bool Cogs::Core::RRMultiSimplifyCommand::issueTask ( )

Definition at line 164 of file RRMultiSimplifyCommand.cpp.

◆ showGui()

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

Display custom ImGUI.

Implements Cogs::Core::ModalEditorCommand.

Definition at line 265 of file RRMultiSimplifyCommand.cpp.

◆ showParameterGui()

void Cogs::Core::RRMultiSimplifyCommand::showParameterGui ( )

Definition at line 199 of file RRMultiSimplifyCommand.cpp.

◆ showProgressGui()

void Cogs::Core::RRMultiSimplifyCommand::showProgressGui ( )

Definition at line 244 of file RRMultiSimplifyCommand.cpp.

◆ undo()

void Cogs::Core::RRMultiSimplifyCommand::undo ( )
inlineoverridevirtual

Implements Cogs::Core::EditorCommand.

Definition at line 13 of file RRMultiSimplifyCommand.h.

◆ waitForTask()

void Cogs::Core::RRMultiSimplifyCommand::waitForTask ( )

Definition at line 192 of file RRMultiSimplifyCommand.cpp.

Member Data Documentation

◆ debugColors

bool Cogs::Core::RRMultiSimplifyCommand::debugColors = false

Definition at line 25 of file RRMultiSimplifyCommand.h.

◆ epsilon

float Cogs::Core::RRMultiSimplifyCommand::epsilon = 0.1f

Definition at line 19 of file RRMultiSimplifyCommand.h.

◆ error

float Cogs::Core::RRMultiSimplifyCommand::error = 0.3f

Definition at line 20 of file RRMultiSimplifyCommand.h.

◆ error_guided

bool Cogs::Core::RRMultiSimplifyCommand::error_guided = false

Definition at line 22 of file RRMultiSimplifyCommand.h.

◆ modal

std::atomic<bool> Cogs::Core::RRMultiSimplifyCommand::modal = false

Definition at line 31 of file RRMultiSimplifyCommand.h.

◆ normalGenArgs

NormalGenArgs Cogs::Core::RRMultiSimplifyCommand::normalGenArgs

Definition at line 26 of file RRMultiSimplifyCommand.h.

◆ originalMeshes

std::vector<MeshHandle> Cogs::Core::RRMultiSimplifyCommand::originalMeshes

Definition at line 29 of file RRMultiSimplifyCommand.h.

◆ singleMesh

bool Cogs::Core::RRMultiSimplifyCommand::singleMesh = true

Definition at line 24 of file RRMultiSimplifyCommand.h.

◆ steps

int Cogs::Core::RRMultiSimplifyCommand::steps = 5

Definition at line 21 of file RRMultiSimplifyCommand.h.

◆ task

TaskId Cogs::Core::RRMultiSimplifyCommand::task = NoTask

Definition at line 32 of file RRMultiSimplifyCommand.h.

◆ taskState

RRTaskState Cogs::Core::RRMultiSimplifyCommand::taskState

Definition at line 28 of file RRMultiSimplifyCommand.h.


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