LineTableView
LineTableView
Table view widget for LineData.
#include <LineTableView.hpp>
Inherits from BaseDataView, QWidget, IDataView
Public Signals
| Name | |
|---|---|
| void | moveLinesRequested(std::string const & target_key) Emitted when user requests to move selected lines to a target key. |
| void | copyLinesRequested(std::string const & target_key) Emitted when user requests to copy selected lines to a target key. |
| void | deleteLinesRequested() Emitted when user requests to delete selected lines. |
| void | moveLinesToGroupRequested(int group_id) Emitted when user requests to move selected lines to a group. |
| void | removeLinesFromGroupRequested() Emitted when user requests to remove selected lines from their groups. |
Public Functions
| Name | |
|---|---|
| LineTableView(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr]) | |
| ~LineTableView() 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) |
| void | setGroupFilter(int group_id) |
| void | clearGroupFilter() |
| std::vector< int64_t > | getSelectedFrames() const |
| std::vector< EntityId > | getSelectedEntityIds() const |
| QTableView * | tableView() const |
| void | scrollToFrame(int64_t frame) Scroll to show the specified frame in the table. |
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 Signals Documentation
signal moveLinesRequested
void moveLinesRequested(
std::string const & target_key
)Emitted when user requests to move selected lines to a target key.
Parameters:
- target_key The key to move lines to
signal copyLinesRequested
void copyLinesRequested(
std::string const & target_key
)Emitted when user requests to copy selected lines to a target key.
Parameters:
- target_key The key to copy lines to
signal deleteLinesRequested
void deleteLinesRequested()Emitted when user requests to delete selected lines.
signal moveLinesToGroupRequested
void moveLinesToGroupRequested(
int group_id
)Emitted when user requests to move selected lines to a group.
Parameters:
- group_id The group ID to move lines to
signal removeLinesFromGroupRequested
void removeLinesFromGroupRequested()Emitted when user requests to remove selected lines from their groups.
Public Functions Documentation
function LineTableView
explicit LineTableView(
std::shared_ptr< DataManager > data_manager,
QWidget * parent =nullptr
)function ~LineTableView
~LineTableView() overridefunction setActiveKey
virtual void setActiveKey(
std::string const & key
) overrideSet the active data key to display.
Parameters:
- key The data key in DataManager
Reimplements: IDataView::setActiveKey
This method should:
- Remove callbacks from any previously active data
- Store the new key
- Set up callbacks on the new data (if needed)
- Update the view to show the new data
function removeCallbacks
virtual void removeCallbacks() overrideRemove 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() overrideUpdate 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 overrideGet the data type this view handles.
Return: The DM_DataType enum value
Reimplements: IDataView::getDataType
function getTypeName
inline virtual QString getTypeName() const overrideGet 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
)function setGroupFilter
void setGroupFilter(
int group_id
)function clearGroupFilter
void clearGroupFilter()function getSelectedFrames
std::vector< int64_t > getSelectedFrames() constfunction getSelectedEntityIds
std::vector< EntityId > getSelectedEntityIds() constfunction tableView
inline QTableView * tableView() constfunction scrollToFrame
void scrollToFrame(
int64_t frame
)Scroll to show the specified frame in the table.
Parameters:
- frame The frame to scroll to
Updated on 2026-11-13 at 20:25:40 +0000