NDEVR
API Documentation
LayerSelector

A widget that allows the user to assign a layer to one or more design objects. More...

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

Public Member Functions

 LayerSelector (QWidget *parent=nullptr)
 Constructs a LayerSelector widget.
virtual void addTarget (const DynamicPointer< QTDesignObject > &object) override
 Adds a design object as a target for layer assignment.
virtual void onTargetUpdated (UUID) override
 Called when a target design object is updated.
virtual void removeTarget (const DynamicPointer< QTDesignObject > &object) override
 Removes a design object from the set of targets managed by this selector.
Public Member Functions inherited from DesignObjectWidgetInterface
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 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

void init ()
 Initializes the widget layout and layer combo box.
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

LayerCombom_chooser_combo = nullptr
 The combo box for selecting a layer.
Protected Attributes inherited from DesignObjectWidgetInterface
DesignObjectInterfacem_interface
 The internal QObject-based implementation handling signals and target storage.

Detailed Description

A widget that allows the user to assign a layer to one or more design objects.


Definition at line 12 of file LayerSelector.h.

Constructor & Destructor Documentation

◆ LayerSelector()

LayerSelector::LayerSelector ( QWidget * parent = nullptr)

Constructs a LayerSelector widget.

Parameters
[in]parentThe parent widget, or nullptr if no parent.

Member Function Documentation

◆ addTarget()

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

Adds a design object as a target for layer assignment.

Parameters
[in]objectThe design object to add.

Reimplemented from DesignObjectWidgetInterface.

◆ onTargetUpdated()

virtual void LayerSelector::onTargetUpdated ( UUID )
overridevirtual

Called when a target design object is updated.

Parameters
[in]idThe UUID of the updated object (unused).

Reimplemented from DesignObjectWidgetInterface.

◆ removeTarget()

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

Removes a design object from the set of targets managed by this selector.

Parameters
[in]objectThe design object to remove.

Reimplemented from DesignObjectWidgetInterface.


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