NDEVR
API Documentation
DesignObjectWidgetInterface

A base class for interacting with one or more DesignObjects. More...

Inheritance diagram for DesignObjectWidgetInterface:
[legend]
Collaboration diagram for DesignObjectWidgetInterface:
[legend]

Public Member Functions

virtual void addTarget (const DynamicPointer< QTDesignObject > &object)
 Adds a design object to the set of targets.
virtual Bounds< 3, fltp08bounds () const
 Returns the combined 3D bounding box of all target design objects.
void clearTargets ()
 Removes all target design objects from this widget.
QTModelManagermanager () const
 Returns the current model manager.
Buffer< Modelmodels () 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< UUIDtargetIDs () 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

DesignObjectInterfacem_interface
 The internal QObject-based implementation handling signals and target storage.

Detailed Description

A base class for interacting with one or more DesignObjects.


Definition at line 10 of file DesignObjectWidgetInterface.h.

Member Function Documentation

◆ addTarget()

virtual void DesignObjectWidgetInterface::addTarget ( const DynamicPointer< QTDesignObject > & object)
virtual

Adds a design object to the set of targets.

Parameters
[in]objectThe design object to add.

Reimplemented in CameraLocationCombo, CameraLocationWidget, LayerSelector, MaterialPropertySlider, and ModelOffsetCommandWidget.

Referenced by MaterialPropertySlider::addTarget().

◆ bounds()

virtual Bounds< 3, fltp08 > DesignObjectWidgetInterface::bounds ( ) const
virtual

Returns the combined 3D bounding box of all target design objects.

Returns
The axis-aligned bounding box encompassing all targets.

◆ manager()

◆ models()

Buffer< Model > DesignObjectWidgetInterface::models ( ) const

Returns all target objects as Models.

Returns
A buffer of Model instances.

◆ onTargetUpdated()

virtual void DesignObjectWidgetInterface::onTargetUpdated ( UUID )
inlinevirtual

Called when a target design object is updated.

Override to handle updates.

Parameters
[in]idThe 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.

◆ removeTarget() [1/2]

virtual void DesignObjectWidgetInterface::removeTarget ( const DynamicPointer< QTDesignObject > & object)
virtual

Removes a specific target design object.

Parameters
[in]objectThe design object to remove.

Reimplemented in CameraLocationCombo, CameraLocationWidget, LayerSelector, MaterialPropertySlider, and ModelOffsetCommandWidget.

Referenced by MaterialPropertySlider::removeTarget().

◆ removeTarget() [2/2]

virtual void DesignObjectWidgetInterface::removeTarget ( const UUID & object)
virtual

Removes a specific target by UUID.

Parameters
[in]objectThe UUID of the design object to remove.

◆ setManager()

void DesignObjectWidgetInterface::setManager ( QTModelManager * manager)

Sets the model manager used for UUID-based lookups.

Parameters
[in]managerThe QTModelManager instance.

References manager().

◆ setTarget()

void DesignObjectWidgetInterface::setTarget ( const DynamicPointer< QTDesignObject > & object)

Sets a single target design object, replacing any existing targets.

Parameters
[in]objectThe design object to target.

Referenced by DesignObjectVisibleButton::DesignObjectVisibleButton(), and MaterialPropertySlider::onObjectDeletedSlot().

◆ setTargetID()

void DesignObjectWidgetInterface::setTargetID ( const UUID & object)

Sets a single target by UUID, replacing any existing targets.

Parameters
[in]objectThe UUID of the design object to target.

◆ setTargetIDs()

void DesignObjectWidgetInterface::setTargetIDs ( const Buffer< UUID > & objects)

Sets multiple targets by UUID, replacing any existing targets.

Parameters
[in]objectsThe UUIDs of the design objects to target.

◆ setTargets()

void DesignObjectWidgetInterface::setTargets ( const Buffer< DynamicPointer< QTDesignObject > > & objects)

Sets multiple target design objects, replacing any existing targets.

Parameters
[in]objectsThe design objects to target.

◆ targetIDs()

Buffer< UUID > DesignObjectWidgetInterface::targetIDs ( ) const

Returns the UUIDs of all current target design objects.

Returns
A buffer of target UUIDs.

◆ targets()

const Dictionary< UUID, DynamicPointer< QTDesignObject > > & DesignObjectWidgetInterface::targets ( ) const
protected

Returns a const reference to the dictionary of all targets.

Returns
The dictionary mapping UUIDs to design object pointers.

The documentation for this class was generated from the following file: