ClusterOutputPanel
ClusterOutputPanel
#include <ClusterOutputPanel.hpp>
Inherits from QWidget
Public Signals
| Name | |
|---|---|
| void | outputKeyClicked(QString const & key) Emitted when the user clicks an output data key in the list. |
| void | groupClicked(int group_id) Emitted when the user clicks a putative group entry in the list. |
| void | resultsCleared() Emitted when results are cleared (via button or programmatically). |
Public Functions
| Name | |
|---|---|
| ClusterOutputPanel(GroupManager * group_manager =[nullptr], QWidget * parent =[nullptr]) Construct the cluster output panel. |
|
| ~ClusterOutputPanel() override | |
| void | showClusteringResult(MLCore::ClusteringPipelineResult const & result, std::string const & algorithm_name) Display results from a completed clustering pipeline run. |
| void | setOutputKeys(std::vector< std::string > const & interval_keys, std::vector< std::string > const & probability_keys, std::vector< std::string > const & cluster_names, std::vector< uint64_t > const & group_ids) Set the list of output data keys to display. |
| void | clearResults() Clear all displayed results and return to the placeholder state. |
| bool | hasResults() const Whether valid results are currently displayed. |
Public Signals Documentation
signal outputKeyClicked
void outputKeyClicked(
QString const & key
)Emitted when the user clicks an output data key in the list.
Parameters:
- key The DataManager key of the clicked output
The parent widget should wire this to a DataViewer focus mechanism (e.g., SelectionContext::setDataFocus).
signal groupClicked
void groupClicked(
int group_id
)Emitted when the user clicks a putative group entry in the list.
Parameters:
- group_id The GroupId of the clicked group
The parent widget should wire this to SelectionContext::setSelectedEntities() using the group’s members.
signal resultsCleared
void resultsCleared()Emitted when results are cleared (via button or programmatically).
Public Functions Documentation
function ClusterOutputPanel
explicit ClusterOutputPanel(
GroupManager * group_manager =nullptr,
QWidget * parent =nullptr
)Construct the cluster output panel.
Parameters:
- group_manager Optional GroupManager for color display and entity tracking
- parent Optional parent widget
function ~ClusterOutputPanel
~ClusterOutputPanel() overridefunction showClusteringResult
void showClusteringResult(
MLCore::ClusteringPipelineResult const & result,
std::string const & algorithm_name
)Display results from a completed clustering pipeline run.
Parameters:
- result The completed pipeline result (must have success == true)
- algorithm_name Human-readable name of the algorithm used
Populates the summary, cluster table, noise info, and output keys list from the pipeline result.
function setOutputKeys
void setOutputKeys(
std::vector< std::string > const & interval_keys,
std::vector< std::string > const & probability_keys,
std::vector< std::string > const & cluster_names,
std::vector< uint64_t > const & group_ids
)Set the list of output data keys to display.
Parameters:
- interval_keys DataManager keys for DigitalIntervalSeries outputs
- probability_keys DataManager keys for AnalogTimeSeries outputs
- cluster_names Cluster names corresponding to the keys
- group_ids GroupIds of created putative groups
function clearResults
void clearResults()Clear all displayed results and return to the placeholder state.
function hasResults
bool hasResults() constWhether valid results are currently displayed.
Updated on 2026-11-13 at 20:25:41 +0000