Skip to main content

PointTableView

PointTableView

Table view widget for PointData. More…

#include <PointTableView.hpp>

Inherits from BaseDataView, QWidget, IDataView

Public Signals

Name
void movePointsRequested(std::string const & target_key)
Emitted when user requests to move selected points to a target key.
void copyPointsRequested(std::string const & target_key)
Emitted when user requests to copy selected points to a target key.
void movePointsToGroupRequested(int group_id)
Emitted when user requests to move selected points to a group.
void removePointsFromGroupRequested()
Emitted when user requests to remove selected points from their groups.
void deletePointsRequested()
Emitted when user requests to delete selected points.

Public Functions

Name
PointTableView(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr])
Construct the point table view.
~PointTableView() 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.
void setGroupManager(GroupManager * group_manager)
Set the group manager for group filtering support.
void setGroupFilter(int group_id)
Apply a group filter to the table.
void clearGroupFilter()
Clear the group filter.
std::vector< int64_t > getSelectedFrames() const
Get the selected frame indices from the table.
std::vector< EntityId > getSelectedEntityIds() const
Get the selected EntityIds from the table.
QTableView * tableView() const
Get the underlying table view.

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.

Detailed Description

class PointTableView;

Table view widget for PointData.

Displays point data in a table format with frame navigation support.

Public Signals Documentation

signal movePointsRequested

void movePointsRequested(
    std::string const & target_key
)

Emitted when user requests to move selected points to a target key.

Parameters:

  • target_key The key to move points to

signal copyPointsRequested

void copyPointsRequested(
    std::string const & target_key
)

Emitted when user requests to copy selected points to a target key.

Parameters:

  • target_key The key to copy points to

signal movePointsToGroupRequested

void movePointsToGroupRequested(
    int group_id
)

Emitted when user requests to move selected points to a group.

Parameters:

  • group_id The group ID to move points to

signal removePointsFromGroupRequested

void removePointsFromGroupRequested()

Emitted when user requests to remove selected points from their groups.

signal deletePointsRequested

void deletePointsRequested()

Emitted when user requests to delete selected points.

Public Functions Documentation

function PointTableView

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

Construct the point table view.

Parameters:

  • data_manager Shared DataManager for data access
  • parent Parent widget

function ~PointTableView

~PointTableView() 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 setGroupManager

void setGroupManager(
    GroupManager * group_manager
)

Set the group manager for group filtering support.

Parameters:

function setGroupFilter

void setGroupFilter(
    int group_id
)

Apply a group filter to the table.

Parameters:

  • group_id Group ID to filter by, or -1 to show all groups

function clearGroupFilter

void clearGroupFilter()

Clear the group filter.

function getSelectedFrames

std::vector< int64_t > getSelectedFrames() const

Get the selected frame indices from the table.

Return: Vector of frame indices for selected rows

function getSelectedEntityIds

std::vector< EntityId > getSelectedEntityIds() const

Get the selected EntityIds from the table.

Return: Vector of EntityIds for selected rows

function tableView

inline QTableView * tableView() const

Get the underlying table view.

Return: Pointer to the QTableView


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