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

Public Member Functions

 GenerateNormalsCommand (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 featureAngle = 0.6f
 
float protrusionAngle = 0.6f
 
bool flip = false
 
- 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 59 of file MeshOpCommands.h.

Constructor & Destructor Documentation

◆ GenerateNormalsCommand()

Cogs::Core::GenerateNormalsCommand::GenerateNormalsCommand ( EditorState state)

Definition at line 121 of file MeshOpCommands.cpp.

Member Function Documentation

◆ apply()

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

◆ issueTask()

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

Implements Cogs::Core::AbstractLiveUpdateCommand.

Definition at line 183 of file MeshOpCommands.cpp.

◆ showGui()

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

Display custom ImGUI.

Reimplemented from Cogs::Core::AbstractLiveUpdateCommand.

Definition at line 153 of file MeshOpCommands.cpp.

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

Member Data Documentation

◆ featureAngle

float Cogs::Core::GenerateNormalsCommand::featureAngle = 0.6f

Definition at line 63 of file MeshOpCommands.h.

◆ flip

bool Cogs::Core::GenerateNormalsCommand::flip = false

Definition at line 65 of file MeshOpCommands.h.

◆ protrusionAngle

float Cogs::Core::GenerateNormalsCommand::protrusionAngle = 0.6f

Definition at line 64 of file MeshOpCommands.h.


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