![]() |
NDEVR
API Documentation
|
A base class for interacting with one or more DesignObjects. More...
Public Member Functions | |
| virtual void | addTarget (const DynamicPointer< QTDesignObject > &object) |
| Adds a design object to the set of targets. | |
| 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 | onTargetUpdated (UUID) |
| Called when a target design object is updated. | |
| virtual void | removeTarget (const DynamicPointer< QTDesignObject > &object) |
| Removes a specific target design object. | |
| 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 | |
| const Dictionary< UUID, DynamicPointer< QTDesignObject > > & | targets () const |
| Returns a const reference to the dictionary of all targets. | |
Protected Attributes | |
| DesignObjectInterface * | m_interface |
| The internal QObject-based implementation handling signals and target storage. | |
A base class for interacting with one or more DesignObjects.
Definition at line 10 of file DesignObjectWidgetInterface.h.
|
virtual |
Adds a design object to the set of targets.
| [in] | object | The design object to add. |
Reimplemented in CameraLocationCombo, CameraLocationWidget, LayerSelector, MaterialPropertySlider, and ModelOffsetCommandWidget.
Referenced by MaterialPropertySlider::addTarget().
Returns the combined 3D bounding box of all target design objects.
| QTModelManager * DesignObjectWidgetInterface::manager | ( | ) | const |
Returns the current model manager.
Referenced by CameraLocationCombo::CameraLocationCombo(), CameraLocationCombo::CameraLocationCombo(), CameraLocationWidget::CameraLocationWidget(), CameraLocationWidget::CameraLocationWidget(), SelectionWidget::SelectionWidget(), CameraLocationCombo::setManager(), and setManager().
Returns all target objects as Models.
|
inlinevirtual |
Called when a target design object is updated.
Override to handle updates.
| [in] | id | The UUID of the updated object (unused in base implementation). |
Reimplemented in CameraLocationCombo, CameraLocationWidget, DesignObjectVisibleButton, FilteringWidget, GeometrySurfacingWidget, LayerSelector, MaterialPropertySlider, ModelOffsetCommandWidget, and SelectionWidget.
Definition at line 68 of file DesignObjectWidgetInterface.h.
|
virtual |
Removes a specific target design object.
| [in] | object | The design object to remove. |
Reimplemented in CameraLocationCombo, CameraLocationWidget, LayerSelector, MaterialPropertySlider, and ModelOffsetCommandWidget.
Referenced by MaterialPropertySlider::removeTarget().
|
virtual |
| void DesignObjectWidgetInterface::setManager | ( | QTModelManager * | manager | ) |
Sets the model manager used for UUID-based lookups.
| [in] | manager | The QTModelManager instance. |
References manager().
| void DesignObjectWidgetInterface::setTarget | ( | const DynamicPointer< QTDesignObject > & | object | ) |
Sets a single target design object, replacing any existing targets.
| [in] | object | The design object to target. |
Referenced by DesignObjectVisibleButton::DesignObjectVisibleButton(), and MaterialPropertySlider::onObjectDeletedSlot().
| void DesignObjectWidgetInterface::setTargetID | ( | const UUID & | object | ) |
Sets multiple targets by UUID, replacing any existing targets.
| [in] | objects | The UUIDs of the design objects to target. |
| void DesignObjectWidgetInterface::setTargets | ( | const Buffer< DynamicPointer< QTDesignObject > > & | objects | ) |
Sets multiple target design objects, replacing any existing targets.
| [in] | objects | The design objects to target. |
Returns the UUIDs of all current target design objects.
|
protected |
Returns a const reference to the dictionary of all targets.