Skip to main content

IDataView

IDataView

Interface for type-specific data view widgets. More…

#include <IDataView.hpp>

Inherited by BaseDataView

Public Functions

Name
virtual ~IDataView() =default
virtual void setActiveKey(std::string const & key) =0
Set the active data key to display.
virtual void removeCallbacks() =0
Remove all callbacks from the currently active data.
virtual void updateView() =0
Update the view to reflect current data state.
virtual DM_DataType getDataType() const =0
Get the data type this view handles.
virtual QString getTypeName() const =0
Get a human-readable name for this view type.
virtual std::string getActiveKey() const =0
Get the current active data key.

Detailed Description

class IDataView;

Interface for type-specific data view widgets.

All data view widgets must implement this interface to work with DataInspectorViewWidget’s dynamic view creation.

Public Functions Documentation

function ~IDataView

virtual ~IDataView() =default

function setActiveKey

virtual void setActiveKey(
    std::string const & key
) =0

Set the active data key to display.

Parameters:

Reimplemented by: AnalogTimeSeriesDataView::setActiveKey, DigitalEventSeriesDataView::setActiveKey, DigitalIntervalSeriesDataView::setActiveKey, ImageDataView::setActiveKey, LineTableView::setActiveKey, MaskTableView::setActiveKey, PointTableView::setActiveKey, TensorDataView::setActiveKey, TimeFrameDataView::setActiveKey

This method should:

  1. Remove callbacks from any previously active data
  2. Store the new key
  3. Set up callbacks on the new data (if needed)
  4. Update the view to show the new data

function removeCallbacks

virtual void removeCallbacks() =0

Remove all callbacks from the currently active data.

Reimplemented by: AnalogTimeSeriesDataView::removeCallbacks, DigitalEventSeriesDataView::removeCallbacks, DigitalIntervalSeriesDataView::removeCallbacks, ImageDataView::removeCallbacks, LineTableView::removeCallbacks, MaskTableView::removeCallbacks, PointTableView::removeCallbacks, TensorDataView::removeCallbacks, TimeFrameDataView::removeCallbacks

Called when the view is being destroyed or when switching to a different data key. Must clean up any registered observers.

function updateView

virtual void updateView() =0

Update the view to reflect current data state.

Reimplemented by: AnalogTimeSeriesDataView::updateView, DigitalEventSeriesDataView::updateView, DigitalIntervalSeriesDataView::updateView, ImageDataView::updateView, LineTableView::updateView, MaskTableView::updateView, PointTableView::updateView, TensorDataView::updateView, TimeFrameDataView::updateView

Called when the underlying data has changed. Should refresh all UI elements (tables, visualizations, etc.) to show current data.

function getDataType

virtual DM_DataType getDataType() const =0

Get the data type this view handles.

Return: The DM_DataType enum value

Reimplemented by: AnalogTimeSeriesDataView::getDataType, DigitalEventSeriesDataView::getDataType, DigitalIntervalSeriesDataView::getDataType, ImageDataView::getDataType, LineTableView::getDataType, MaskTableView::getDataType, PointTableView::getDataType, TensorDataView::getDataType, TimeFrameDataView::getDataType

function getTypeName

virtual QString getTypeName() const =0

Get a human-readable name for this view type.

Return: Display name (e.g., “Point Table”, “Line Table”, “Mask Table”)

Reimplemented by: AnalogTimeSeriesDataView::getTypeName, DigitalEventSeriesDataView::getTypeName, DigitalIntervalSeriesDataView::getTypeName, ImageDataView::getTypeName, LineTableView::getTypeName, MaskTableView::getTypeName, PointTableView::getTypeName, TensorDataView::getTypeName, TimeFrameDataView::getTypeName

function getActiveKey

virtual std::string getActiveKey() const =0

Get the current active data key.

Return: The currently displayed data key, or empty string if none

Reimplemented by: BaseDataView::getActiveKey


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