![]() |
ImFusion C++ SDK 4.4.0
|
#include <ImFusion/Stream/TrackingInstrumentTable.h>
Table widget for displaying and managing TrackingInstruments from a TrackingStream. More...
Table widget for displaying and managing TrackingInstruments from a TrackingStream.
This widget provides a comprehensive interface for viewing and interacting with tracking instruments, with configurable capabilities including:
The table automatically updates when the tracking stream's instrument list changes or when new tracking data arrives. All updates from the tracking stream are invoked on the GUI thread.
Example usage:
Public Member Functions | |
| TrackingInstrumentTable (TrackingStream &stream, Flags< InstrumentTableConfiguration > config, QWidget *parent=nullptr) | |
| Constructs the table for the given stream with specified configuration flags. | |
| bool | selectInstrument (const std::string &trackerId) |
| Selects an instrument by its unique ID. | |
| std::string | selectedInstrument () const |
| Returns the unique ID of the currently selected instrument. | |
| Public Member Functions inherited from ImFusion::SignalReceiver | |
| SignalReceiver ()=default | |
| Default constructor. | |
| SignalReceiver (const SignalReceiver &other) | |
| Copy constructor, does not copy any existing signal connections from other. | |
| SignalReceiver & | operator= (SignalReceiver rhs) |
| Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs. | |
| virtual | ~SignalReceiver () |
| Virtual destructor disconnects from all connected signals. | |
Public Attributes | |
| Signal< const std::string & > | signalSelectedInstrumentChanged |
| Emits the instrument ID when the selected instrument changes. | |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *event) override |
| Calls updateColumnWidths to resize the columns correctly after table resizing. | |
| Protected Member Functions inherited from ImFusion::SignalReceiver | |
| void | disconnectAll () |
| Disconnects all existing connections. | |
| ImFusion::TrackingInstrumentTable::TrackingInstrumentTable | ( | TrackingStream & | stream, |
| Flags< InstrumentTableConfiguration > | config, | ||
| QWidget * | parent = nullptr ) |
Constructs the table for the given stream with specified configuration flags.
Configuration flags are automatically disabled with warning if not supported by the stream.
| bool ImFusion::TrackingInstrumentTable::selectInstrument | ( | const std::string & | trackerId | ) |
Selects an instrument by its unique ID.
Requires InstrumentTableConfiguration::SelectInstrument flag. Returns true if successfully selected, false if not found or selection disabled.
| std::string ImFusion::TrackingInstrumentTable::selectedInstrument | ( | ) | const |
Returns the unique ID of the currently selected instrument.
Returns empty string if none selected or InstrumentTableConfiguration::SelectInstrument not enabled.
| Signal<const std::string&> ImFusion::TrackingInstrumentTable::signalSelectedInstrumentChanged |
Emits the instrument ID when the selected instrument changes.
Only emitted if InstrumentTableConfiguration::SelectInstrument enabled.