Skip to main content

BaseDataView

BaseDataView

Base implementation for type-specific data view widgets. More…

#include <BaseDataView.hpp>

Inherits from QWidget, IDataView

Inherited by AnalogTimeSeriesDataView, DigitalEventSeriesDataView, DigitalIntervalSeriesDataView, ImageDataView, LineTableView, MaskTableView, PointTableView, TensorDataView, TimeFrameDataView

Public Signals

Name
void frameSelected(TimePosition position)
Emitted when user selects a frame to navigate to.

Public Functions

Name
BaseDataView(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr])
Construct the base data view.
~BaseDataView() override
virtual std::string getActiveKey() const override
Get the current active data key.
void setState(std::shared_ptr< DataInspectorState > state)
Set the DataInspectorState for time position access.
std::shared_ptr< DataInspectorState > state() const
Get the DataInspectorState.

Protected Functions

Name
std::shared_ptr< DataManager > dataManager() const
Get the DataManager.

Protected Attributes

Name
std::string _active_key

Additional inherited members

Public Functions inherited from IDataView

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.

Detailed Description

class BaseDataView;

Base implementation for type-specific data view widgets.

Provides common infrastructure for all view widgets including DataManager access and frame selection signaling.

Public Signals Documentation

signal frameSelected

void frameSelected(
    TimePosition position
)

Emitted when user selects a frame to navigate to.

Parameters:

  • position Time position to navigate to

Connect this to the main application’s frame navigation to allow users to jump to specific frames from the view.

Public Functions Documentation

function BaseDataView

explicit BaseDataView(
    std::shared_ptr< DataManager > data_manager,
    QWidget * parent =nullptr
)

Construct the base data view.

Parameters:

  • data_manager Shared DataManager for data access
  • parent Parent widget

function ~BaseDataView

~BaseDataView() override

function getActiveKey

inline virtual std::string getActiveKey() const override

Get the current active data key.

Return: The currently displayed data key

Reimplements: IDataView::getActiveKey

function setState

void setState(
    std::shared_ptr< DataInspectorState > state
)

Set the DataInspectorState for time position access.

Parameters:

  • state Shared state pointer (can be nullptr)

function state

inline std::shared_ptr< DataInspectorState > state() const

Get the DataInspectorState.

Return: Shared state pointer, or nullptr if not set

Protected Functions Documentation

function dataManager

inline std::shared_ptr< DataManager > dataManager() const

Get the DataManager.

Return: Shared pointer to DataManager

Protected Attributes Documentation

variable _active_key

std::string _active_key;

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