Skip to main content

dl::widget::DynamicInputSlotWidget

dl::widget::DynamicInputSlotWidget

Widget for configuring a single dynamic (per-frame) input slot. More…

#include <DynamicInputSlotWidget.hpp>

Inherits from QWidget

Public Signals

Name
void bindingChanged()
Emitted whenever any parameter in the slot changes.

Public Functions

Name
DynamicInputSlotWidget(dl::TensorSlotDescriptor const & slot, std::shared_ptr< DataManager > dm, QWidget * parent =[nullptr])
Construct a widget for one dynamic input slot.
~DynamicInputSlotWidget() override
DynamicInputSlotWidget(DynamicInputSlotWidget const & ) =delete
DynamicInputSlotWidget & operator=(DynamicInputSlotWidget const & ) =delete
DynamicInputSlotWidget(DynamicInputSlotWidget && ) =delete
DynamicInputSlotWidget & operator=(DynamicInputSlotWidget && ) =delete
SlotBindingData binding() const
Return the current slot binding (includes slot_name).
void setBinding(SlotBindingData const & binding)
Set binding values and update the UI.
void refreshDataSources()
Refresh the data-source combo with current DataManager keys.
std::string const & slotName() const
Return the slot name this widget is bound to.

Detailed Description

class dl::widget::DynamicInputSlotWidget;

Widget for configuring a single dynamic (per-frame) input slot.

Note: Not thread-safe — must be used from the GUI thread only.

Wraps an AutoParamWidget driven by [dl::DynamicInputBindingForm](/api_generated/Classes/structdl_1_1DynamicInputBindingForm.md). The data-source combo is populated dynamically from DataManager, and encoder alternatives are constrained to types compatible with the selected data source.

Public Signals Documentation

signal bindingChanged

void bindingChanged()

Emitted whenever any parameter in the slot changes.

Public Functions Documentation

function DynamicInputSlotWidget

explicit DynamicInputSlotWidget(
    dl::TensorSlotDescriptor const & slot,
    std::shared_ptr< DataManager > dm,
    QWidget * parent =nullptr
)

Construct a widget for one dynamic input slot.

Parameters:

  • slot Descriptor for the slot (name, shape, recommended encoder).
  • dm Shared DataManager for populating the data-source combo.
  • parent Optional parent widget.

Precondition: dm must not be null.

function ~DynamicInputSlotWidget

~DynamicInputSlotWidget() override

function DynamicInputSlotWidget

DynamicInputSlotWidget(
    DynamicInputSlotWidget const & 
) =delete

function operator=

DynamicInputSlotWidget & operator=(
    DynamicInputSlotWidget const & 
) =delete

function DynamicInputSlotWidget

DynamicInputSlotWidget(
    DynamicInputSlotWidget && 
) =delete

function operator=

DynamicInputSlotWidget & operator=(
    DynamicInputSlotWidget && 
) =delete

function binding

SlotBindingData binding() const

Return the current slot binding (includes slot_name).

function setBinding

void setBinding(
    SlotBindingData const & binding
)

Set binding values and update the UI.

Parameters:

  • binding Saved binding; slot_name may differ from this widget’s slot.

function refreshDataSources

void refreshDataSources()

Refresh the data-source combo with current DataManager keys.

function slotName

std::string const & slotName() const

Return the slot name this widget is bound to.


Updated on 2026-11-13 at 20:25:42 +0000