Cogs.Core
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Cogs::Core::RRSaveAllLodCommand Class Reference
Inheritance diagram for Cogs::Core::RRSaveAllLodCommand:
Cogs::Core::ModalEditorCommand Cogs::Core::EditorCommand

Public Member Functions

 RRSaveAllLodCommand (EditorState *state)
 
virtual void apply () override
 Run the command.
 
virtual void redo () override
 
virtual void undo () override
 
virtual void beginModal () override
 Called when the command is initiated.
 
virtual void showGui () override
 Display custom ImGUI.
 
virtual bool continueModal () override
 Shall return true while the GUI should still be shown. False when.
 
void runTask ()
 
- 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.
 

Private Member Functions

bool issueTask ()
 

Private Attributes

UnpackOptions opts
 
std::atomic< bool > modal = false
 
std::atomic< bool > running = false
 Set in main thread when task is started. Reset by thread when completed.
 
std::vector< char > path
 

Additional Inherited Members

- 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.
 
- Protected Attributes inherited from Cogs::Core::EditorCommand
EditorStatestate = nullptr
 
Contextcontext = nullptr
 

Detailed Description

Definition at line 12 of file RRSaveAllLodCommand.h.

Constructor & Destructor Documentation

◆ RRSaveAllLodCommand()

Cogs::Core::RRSaveAllLodCommand::RRSaveAllLodCommand ( EditorState state)

Definition at line 90 of file RRSaveAllLodCommand.cpp.

Member Function Documentation

◆ apply()

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

◆ beginModal()

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

Called when the command is initiated.

Implements Cogs::Core::ModalEditorCommand.

Definition at line 141 of file RRSaveAllLodCommand.cpp.

◆ continueModal()

bool Cogs::Core::RRSaveAllLodCommand::continueModal ( )
overridevirtual

Shall return true while the GUI should still be shown. False when.

Implements Cogs::Core::ModalEditorCommand.

Definition at line 174 of file RRSaveAllLodCommand.cpp.

◆ issueTask()

bool Cogs::Core::RRSaveAllLodCommand::issueTask ( )
private

Definition at line 234 of file RRSaveAllLodCommand.cpp.

◆ redo()

virtual void Cogs::Core::RRSaveAllLodCommand::redo ( )
inlineoverridevirtual

Reimplemented from Cogs::Core::EditorCommand.

Definition at line 18 of file RRSaveAllLodCommand.h.

◆ runTask()

void Cogs::Core::RRSaveAllLodCommand::runTask ( )

Definition at line 179 of file RRSaveAllLodCommand.cpp.

◆ showGui()

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

Display custom ImGUI.

Implements Cogs::Core::ModalEditorCommand.

Definition at line 146 of file RRSaveAllLodCommand.cpp.

◆ undo()

virtual void Cogs::Core::RRSaveAllLodCommand::undo ( )
inlineoverridevirtual

Implements Cogs::Core::EditorCommand.

Definition at line 19 of file RRSaveAllLodCommand.h.

Member Data Documentation

◆ modal

std::atomic<bool> Cogs::Core::RRSaveAllLodCommand::modal = false
private

Definition at line 32 of file RRSaveAllLodCommand.h.

◆ opts

UnpackOptions Cogs::Core::RRSaveAllLodCommand::opts
private

Definition at line 30 of file RRSaveAllLodCommand.h.

◆ path

std::vector<char> Cogs::Core::RRSaveAllLodCommand::path
private

Definition at line 37 of file RRSaveAllLodCommand.h.

◆ running

std::atomic<bool> Cogs::Core::RRSaveAllLodCommand::running = false
private

Set in main thread when task is started. Reset by thread when completed.

Definition at line 35 of file RRSaveAllLodCommand.h.


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