Skip to main content

MLCoreWidget

MLCoreWidget

#include <MLCoreWidget.hpp>

Inherits from QWidget, DataFocusAware

Public Signals

Name
void _pipelineProgressReported(int stage_index, QString message)
Emitted from the worker thread to report classification pipeline progress.
void _pipelineFinished()
Emitted when the classification pipeline finishes (success or failure).
void _clusteringProgressReported(int stage_index, QString message)
Emitted from the worker thread to report clustering pipeline progress.
void _clusteringPipelineFinished()
Emitted when the clustering pipeline finishes (success or failure).
void _dimReductionProgressReported(int stage_index, QString message)
Emitted from the worker thread to report dim reduction pipeline progress.
void _dimReductionPipelineFinished()
Emitted when the dim reduction pipeline finishes.
void _supervisedDimReductionProgressReported(int stage_index, QString message)
Emitted from the worker thread to report supervised dim reduction progress.
void _supervisedDimReductionPipelineFinished()
Emitted when the supervised dim reduction pipeline finishes.

Public Functions

Name
MLCoreWidget(std::shared_ptr< MLCoreWidgetState > state, std::shared_ptr< DataManager > data_manager, SelectionContext * selection_context, GroupManager * group_manager =[nullptr], QWidget * parent =[nullptr])
Construct the ML workflow widget.
~MLCoreWidget() override
virtual void onDataFocusChanged(EditorLib::SelectedDataKey const & data_key, QString const & data_type) override
Respond to data focus changes from other widgets.

Additional inherited members

Public Functions inherited from DataFocusAware

Name
virtual ~DataFocusAware() =default

Protected Functions inherited from DataFocusAware

Name
template <typename Receiver >
void
connectToSelectionContext(SelectionContext * ctx, Receiver * receiver)
Helper to connect this widget to SelectionContext.

Public Signals Documentation

signal _pipelineProgressReported

void _pipelineProgressReported(
    int stage_index,
    QString message
)

Emitted from the worker thread to report classification pipeline progress.

Connected to _onPipelineProgress via Qt::QueuedConnection to safely update UI from the main thread.

signal _pipelineFinished

void _pipelineFinished()

Emitted when the classification pipeline finishes (success or failure).

signal _clusteringProgressReported

void _clusteringProgressReported(
    int stage_index,
    QString message
)

Emitted from the worker thread to report clustering pipeline progress.

signal _clusteringPipelineFinished

void _clusteringPipelineFinished()

Emitted when the clustering pipeline finishes (success or failure).

signal _dimReductionProgressReported

void _dimReductionProgressReported(
    int stage_index,
    QString message
)

Emitted from the worker thread to report dim reduction pipeline progress.

signal _dimReductionPipelineFinished

void _dimReductionPipelineFinished()

Emitted when the dim reduction pipeline finishes.

signal _supervisedDimReductionProgressReported

void _supervisedDimReductionProgressReported(
    int stage_index,
    QString message
)

Emitted from the worker thread to report supervised dim reduction progress.

signal _supervisedDimReductionPipelineFinished

void _supervisedDimReductionPipelineFinished()

Emitted when the supervised dim reduction pipeline finishes.

Public Functions Documentation

function MLCoreWidget

explicit MLCoreWidget(
    std::shared_ptr< MLCoreWidgetState > state,
    std::shared_ptr< DataManager > data_manager,
    SelectionContext * selection_context,
    GroupManager * group_manager =nullptr,
    QWidget * parent =nullptr
)

Construct the ML workflow widget.

Parameters:

  • state Shared state object for serialization and signal coordination
  • data_manager Shared DataManager for accessing data keys
  • selection_context SelectionContext for passive data focus awareness
  • group_manager GroupManager for group colors and entity tracking (nullable)
  • parent Optional parent widget

function ~MLCoreWidget

~MLCoreWidget() override

function onDataFocusChanged

virtual void onDataFocusChanged(
    EditorLib::SelectedDataKey const & data_key,
    QString const & data_type
) override

Respond to data focus changes from other widgets.

Parameters:

  • data_key The newly focused data key
  • data_type The type of the focused data (e.g., “TensorData”)

Reimplements: DataFocusAware::onDataFocusChanged

When a TensorData key is focused elsewhere, auto-selects it in the FeatureSelectionPanel. This provides passive awareness so users can click a tensor in DataInspector and have it appear in the ML workflow.


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