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() overridefunction DynamicInputSlotWidget
DynamicInputSlotWidget(
DynamicInputSlotWidget const &
) =deletefunction operator=
DynamicInputSlotWidget & operator=(
DynamicInputSlotWidget const &
) =deletefunction DynamicInputSlotWidget
DynamicInputSlotWidget(
DynamicInputSlotWidget &&
) =deletefunction operator=
DynamicInputSlotWidget & operator=(
DynamicInputSlotWidget &&
) =deletefunction binding
SlotBindingData binding() constReturn 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_namemay 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() constReturn the slot name this widget is bound to.
Updated on 2026-11-13 at 20:25:42 +0000