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

Public Member Functions

 NoOpModalCommand (EditorState *state)
 
void apply () override
 Run the command.
 
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
 
- 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.
 

Protected Attributes

UnpackOptions opts
 
bool modal = false
 
bool cancel = false
 
MeshItems items
 
MeshReps meshes
 
std::vector< MeshHandleoriginalMeshes
 
- Protected Attributes inherited from Cogs::Core::EditorCommand
EditorStatestate = nullptr
 
Contextcontext = nullptr
 

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.
 

Detailed Description

Definition at line 13 of file MeshOpCommands.h.

Constructor & Destructor Documentation

◆ NoOpModalCommand()

Cogs::Core::NoOpModalCommand::NoOpModalCommand ( EditorState state)
inline

Definition at line 15 of file MeshOpCommands.h.

Member Function Documentation

◆ apply()

void Cogs::Core::NoOpModalCommand::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 9 of file MeshOpCommands.cpp.

◆ beginModal()

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

Called when the command is initiated.

Implements Cogs::Core::ModalEditorCommand.

Definition at line 21 of file MeshOpCommands.cpp.

◆ continueModal()

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

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

Implements Cogs::Core::ModalEditorCommand.

Definition at line 32 of file MeshOpCommands.cpp.

◆ showGui()

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

Display custom ImGUI.

Implements Cogs::Core::ModalEditorCommand.

Definition at line 37 of file MeshOpCommands.cpp.

◆ undo()

void Cogs::Core::NoOpModalCommand::undo ( )
overridevirtual

Implements Cogs::Core::EditorCommand.

Definition at line 55 of file MeshOpCommands.cpp.

Member Data Documentation

◆ cancel

bool Cogs::Core::NoOpModalCommand::cancel = false
protected

Definition at line 25 of file MeshOpCommands.h.

◆ items

MeshItems Cogs::Core::NoOpModalCommand::items
protected

Definition at line 26 of file MeshOpCommands.h.

◆ meshes

MeshReps Cogs::Core::NoOpModalCommand::meshes
protected

Definition at line 27 of file MeshOpCommands.h.

◆ modal

bool Cogs::Core::NoOpModalCommand::modal = false
protected

Definition at line 24 of file MeshOpCommands.h.

◆ opts

UnpackOptions Cogs::Core::NoOpModalCommand::opts
protected

Definition at line 23 of file MeshOpCommands.h.

◆ originalMeshes

std::vector<MeshHandle> Cogs::Core::NoOpModalCommand::originalMeshes
protected

Definition at line 28 of file MeshOpCommands.h.


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