![]() |
NDEVR
API Documentation
|
A DesignCommand that applies tiling options to one or more target models, creating or updating ModelTileGroup instances. More...
Public Member Functions | |
| ModelTileCommand (const ModelTileOptions &options) | |
| Constructs a ModelTileCommand with the given tiling options. | |
| virtual bool | addTarget (UUID target_id) override |
| Adds a target model (by UUID) to the list of models to tile. | |
| virtual bool | canCombineWith (const DynamicPointer< DesignCommand > &command) override |
| Checks whether this command can be combined (merged) with another command. | |
| virtual bool | canGroupWith (const DynamicPointer< DesignCommand > &command) override |
| Checks whether this command can be grouped with another command in the undo stack. | |
| virtual void | combineWith (const DynamicPointer< DesignCommand > &command) override |
| Merges another compatible command into this one, absorbing its targets and options. | |
| virtual void | execute (DesignObjectLookup *lookup) override |
| Executes the tiling command, applying tile options to all target models. | |
| virtual StringView | icon () const override |
| Returns the icon identifier for this command. | |
| virtual bool | isAsyncExecution () const override |
| Indicates that this command executes asynchronously. | |
| virtual TranslatedString | name () const override |
| Returns the user-facing translated name of this command. | |
| Public Member Functions inherited from DesignCommand | |
| DesignCommand () | |
| Default constructor. | |
| DesignCommand (const DesignCommand &command)=default | |
| Default copy constructor. | |
| virtual | ~DesignCommand () |
| Virtual destructor. | |
| void | setUndoRedoID (UUID undo_redo_group) |
| Sets the undo-redo group identifier for this command. | |
| UUID | undoRedoID () const |
| Gets the undo-redo group identifier for this command. | |
Additional Inherited Members | |
| Public Attributes inherited from DesignCommand | |
| bool | can_undo = true |
| Whether this command supports being undone. | |
| bool | has_executed = false |
| Whether this command has already been executed. | |
| UUID | id |
| Unique identifier for this command instance. | |
| bool | is_undo = false |
| Whether this command represents an undo operation. | |
| LogPtr | log |
| Log pipe for reporting command progress and errors. | |
| Time | time = Constant<Time>::Invalid |
| Timestamp of when the command was created or executed. | |
| bool | update_project_modified = true |
| Whether executing this command should mark the project as modified. | |
| Protected Attributes inherited from DesignCommand | |
| UUID | m_undo_redo_group |
| The undo-redo group this command belongs to, for batch undo/redo. | |
A DesignCommand that applies tiling options to one or more target models, creating or updating ModelTileGroup instances.
Definition at line 128 of file ModelTileGroup.h.
|
inline |
Constructs a ModelTileCommand with the given tiling options.
| [in] | options | The ModelTileOptions to apply when this command is executed. |
Definition at line 135 of file ModelTileGroup.h.
References DesignCommand::DesignCommand().
|
inlineoverridevirtual |
Adds a target model (by UUID) to the list of models to tile.
| [in] | target_id | The UUID of the model to add as a tiling target. |
Reimplemented from DesignCommand.
Definition at line 163 of file ModelTileGroup.h.
|
overridevirtual |
Checks whether this command can be combined (merged) with another command.
| [in] | command | The other command to check combination compatibility with. |
Reimplemented from DesignCommand.
|
overridevirtual |
Checks whether this command can be grouped with another command in the undo stack.
| [in] | command | The other command to check grouping compatibility with. |
Reimplemented from DesignCommand.
|
overridevirtual |
Merges another compatible command into this one, absorbing its targets and options.
| [in] | command | The command to merge into this one. |
Reimplemented from DesignCommand.
|
overridevirtual |
Executes the tiling command, applying tile options to all target models.
| [in] | lookup | The DesignObjectLookup used to resolve models and dependencies. |
Reimplemented from DesignCommand.
|
inlineoverridevirtual |
Returns the icon identifier for this command.
Implements DesignCommand.
Definition at line 144 of file ModelTileGroup.h.
|
inlineoverridevirtual |
Indicates that this command executes asynchronously.
Reimplemented from DesignCommand.
Definition at line 189 of file ModelTileGroup.h.
|
overridevirtual |
Returns the user-facing translated name of this command.
Implements DesignCommand.