![]() |
NDEVR
API Documentation
|
Allows the user to offset a model to a different location. More...
Public Member Functions | |
| ModelOffsetCommandWidget (QWidget *parent=nullptr) | |
| Constructs the model offset command widget. | |
| void | finishedSignal () |
| Emitted when the offset operation is finished. | |
| void | updateUIFromManager () |
| Updates the UI fields from the current model manager state. | |
| Public Member Functions inherited from DesignObjectWidgetInterface | |
| virtual Bounds< 3, fltp08 > | bounds () const |
| Returns the combined 3D bounding box of all target design objects. | |
| void | clearTargets () |
| Removes all target design objects from this widget. | |
| QTModelManager * | manager () const |
| Returns the current model manager. | |
| Buffer< Model > | models () const |
| Returns all target objects as Models. | |
| virtual void | removeTarget (const UUID &object) |
| Removes a specific target by UUID. | |
| void | setManager (QTModelManager *manager) |
| Sets the model manager used for UUID-based lookups. | |
| void | setTarget (const DynamicPointer< QTDesignObject > &object) |
| Sets a single target design object, replacing any existing targets. | |
| void | setTargetID (const UUID &object) |
| Sets a single target by UUID, replacing any existing targets. | |
| void | setTargetIDs (const Buffer< UUID > &objects) |
| Sets multiple targets by UUID, replacing any existing targets. | |
| void | setTargets (const Buffer< DynamicPointer< QTDesignObject > > &objects) |
| Sets multiple target design objects, replacing any existing targets. | |
| Buffer< UUID > | targetIDs () const |
| Returns the UUIDs of all current target design objects. | |
Protected Member Functions | |
| void | addTarget (const DynamicPointer< QTDesignObject > &object) override |
| Adds a design object as an offset target. | |
| void | init () |
| Initializes the UI layout and signal connections. | |
| void | onTargetUpdated (UUID) override |
| Called when a target object is updated, refreshing the offset values. | |
| void | removeTarget (const DynamicPointer< QTDesignObject > &object) override |
| Removes a design object from the offset targets. | |
| void | setToDefaults () |
| Resets the offset values to their defaults. | |
| Protected Member Functions inherited from DesignObjectWidgetInterface | |
| const Dictionary< UUID, DynamicPointer< QTDesignObject > > & | targets () const |
| Returns a const reference to the dictionary of all targets. | |
Protected Attributes | |
| Ui::ModelOffsetCommandUI * | ui |
| The auto-generated UI form for offset controls. | |
| Protected Attributes inherited from DesignObjectWidgetInterface | |
| DesignObjectInterface * | m_interface |
| The internal QObject-based implementation handling signals and target storage. | |
Allows the user to offset a model to a different location.
Definition at line 13 of file ModelOffsetCommandWidget.h.
| ModelOffsetCommandWidget::ModelOffsetCommandWidget | ( | QWidget * | parent = nullptr | ) |
Constructs the model offset command widget.
| [in] | parent | The optional parent widget. |
|
overrideprotectedvirtual |
Adds a design object as an offset target.
| [in] | object | The design object to add. |
Reimplemented from DesignObjectWidgetInterface.
|
overrideprotectedvirtual |
Called when a target object is updated, refreshing the offset values.
| [in] | id | The UUID of the updated object. |
Reimplemented from DesignObjectWidgetInterface.
|
overrideprotectedvirtual |
Removes a design object from the offset targets.
| [in] | object | The design object to remove. |
Reimplemented from DesignObjectWidgetInterface.