Skip to main content

ImageDataView

ImageDataView

Table view widget for ImageData (Images/Video).

#include <ImageDataView.hpp>

Inherits from BaseDataView, QWidget, IDataView

Public Functions

Name
ImageDataView(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr])
~ImageDataView() override
virtual void setActiveKey(std::string const & key) override
Set the active data key to display.
virtual void removeCallbacks() override
Remove all callbacks from the currently active data.
virtual void updateView() override
Update the view to reflect current data state.
virtual DM_DataType getDataType() const override
Get the data type this view handles.
virtual QString getTypeName() const override
Get a human-readable name for this view type.
std::vector< int > getSelectedFrames() const
QTableView * tableView() const

Additional inherited members

Public Signals inherited from BaseDataView

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

Public Functions inherited from BaseDataView

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 inherited from BaseDataView

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

Protected Attributes inherited from BaseDataView

Name
std::string _active_key

Public Functions inherited from IDataView

Name
virtual ~IDataView() =default
virtual std::string getActiveKey() const =0
Get the current active data key.

Public Functions Documentation

function ImageDataView

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

function ~ImageDataView

~ImageDataView() override

function setActiveKey

virtual void setActiveKey(
    std::string const & key
) override

Set the active data key to display.

Parameters:

Reimplements: IDataView::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() override

Remove all callbacks from the currently active data.

Reimplements: IDataView::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() override

Update the view to reflect current data state.

Reimplements: IDataView::updateView

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

function getDataType

inline virtual DM_DataType getDataType() const override

Get the data type this view handles.

Return: The DM_DataType enum value

Reimplements: IDataView::getDataType

function getTypeName

inline virtual QString getTypeName() const override

Get a human-readable name for this view type.

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

Reimplements: IDataView::getTypeName

function getSelectedFrames

std::vector< int > getSelectedFrames() const

function tableView

inline QTableView * tableView() const

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