IDataInspector
IDataInspector
Interface for type-specific data inspectors. More…
#include <IDataInspector.hpp>
Inherited by BaseInspector
Public Functions
| Name | |
|---|---|
| virtual | ~IDataInspector() =default |
| virtual void | setActiveKey(std::string const & key) =0 Set the active data key to inspect. |
| 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 inspector handles. |
| virtual QString | getTypeName() const =0 Get a human-readable name for this inspector type. |
| virtual std::string | getActiveKey() const =0 Get the current active data key. |
| virtual bool | supportsExport() const Check if this inspector supports export functionality. |
| virtual bool | supportsGroupFiltering() const Check if this inspector supports group filtering. |
Detailed Description
class IDataInspector;Interface for type-specific data inspectors.
All data inspector widgets must implement this interface to work with the DataInspectorPropertiesWidget’s dynamic inspector creation.
Public Functions Documentation
function ~IDataInspector
virtual ~IDataInspector() =defaultfunction setActiveKey
virtual void setActiveKey(
std::string const & key
) =0Set the active data key to inspect.
Parameters:
- key The data key in DataManager
Reimplemented by: AnalogTimeSeriesInspector::setActiveKey, DigitalEventSeriesInspector::setActiveKey, DigitalIntervalSeriesInspector::setActiveKey, ImageInspector::setActiveKey, LineInspector::setActiveKey, MaskInspector::setActiveKey, PointInspector::setActiveKey, TensorInspector::setActiveKey, TimeFrameInspector::setActiveKey
This method should:
- Remove callbacks from any previously active data
- Store the new key
- Set up callbacks on the new data
- Update the view to show the new data
function removeCallbacks
virtual void removeCallbacks() =0Remove all callbacks from the currently active data.
Reimplemented by: AnalogTimeSeriesInspector::removeCallbacks, DigitalEventSeriesInspector::removeCallbacks, DigitalIntervalSeriesInspector::removeCallbacks, ImageInspector::removeCallbacks, LineInspector::removeCallbacks, MaskInspector::removeCallbacks, PointInspector::removeCallbacks, TensorInspector::removeCallbacks, TimeFrameInspector::removeCallbacks
Called when the inspector is being destroyed or when switching to a different data key. Must clean up any registered observers.
function updateView
virtual void updateView() =0Update the view to reflect current data state.
Reimplemented by: AnalogTimeSeriesInspector::updateView, DigitalEventSeriesInspector::updateView, DigitalIntervalSeriesInspector::updateView, ImageInspector::updateView, LineInspector::updateView, MaskInspector::updateView, PointInspector::updateView, TensorInspector::updateView, TimeFrameInspector::updateView
Called when the underlying data has changed. Should refresh all UI elements (tables, labels, etc.) to show current data.
function getDataType
virtual DM_DataType getDataType() const =0Get the data type this inspector handles.
Return: The DM_DataType enum value
Reimplemented by: AnalogTimeSeriesInspector::getDataType, DigitalEventSeriesInspector::getDataType, DigitalIntervalSeriesInspector::getDataType, ImageInspector::getDataType, LineInspector::getDataType, MaskInspector::getDataType, PointInspector::getDataType, TensorInspector::getDataType, TimeFrameInspector::getDataType
function getTypeName
virtual QString getTypeName() const =0Get a human-readable name for this inspector type.
Return: Display name (e.g., “Point”, “Line”, “Mask”)
Reimplemented by: AnalogTimeSeriesInspector::getTypeName, DigitalEventSeriesInspector::getTypeName, DigitalIntervalSeriesInspector::getTypeName, ImageInspector::getTypeName, LineInspector::getTypeName, MaskInspector::getTypeName, PointInspector::getTypeName, TensorInspector::getTypeName, TimeFrameInspector::getTypeName
function getActiveKey
virtual std::string getActiveKey() const =0Get the current active data key.
Return: The currently inspected data key, or empty string if none
Reimplemented by: BaseInspector::getActiveKey
function supportsExport
inline virtual bool supportsExport() constCheck if this inspector supports export functionality.
Return: true if export is supported, false otherwise
Reimplemented by: AnalogTimeSeriesInspector::supportsExport, DigitalEventSeriesInspector::supportsExport, DigitalIntervalSeriesInspector::supportsExport, ImageInspector::supportsExport, LineInspector::supportsExport, MaskInspector::supportsExport, PointInspector::supportsExport, TensorInspector::supportsExport, TimeFrameInspector::supportsExport
Default returns false. Override in inspectors that support data export.
function supportsGroupFiltering
inline virtual bool supportsGroupFiltering() constCheck if this inspector supports group filtering.
Return: true if group filtering is supported, false otherwise
Reimplemented by: AnalogTimeSeriesInspector::supportsGroupFiltering, BaseInspector::supportsGroupFiltering, ImageInspector::supportsGroupFiltering, TensorInspector::supportsGroupFiltering, TimeFrameInspector::supportsGroupFiltering
Default returns false. Override in inspectors that work with groups.
Updated on 2026-11-13 at 20:25:40 +0000