![]() |
ImFusion SDK 4.3
|
#include <ImFusion/LiveUS/ProbeTrackerAssigner.h>
Assigns the main tracker to a tracking instrument whose name matches a predefined list associated with a probe name. More...
Inheritance diagram for ProbeTrackerAssigner:Assigns the main tracker to a tracking instrument whose name matches a predefined list associated with a probe name.
Monitors the ImageStream for probe name changes in the UltrasoundMetadata data component and updates the main tracker on the specified TrackingStream. Assignment occurs only when ProbeTrackerAssigner is enabled. In this case, the ProbeTrackerAssigner sets the main instrument to the first TrackingInstrument that matches one of the provided TrackerIDs (see setProbeToTracking).
Primarily used by SweepRecorderController but can be utilized in any application managing the calibration of one or multiple ultrasound probes and multiple TrackingInstruments.
Public Member Functions | |
| ProbeTrackerAssigner (ImageStream &imageStream, TrackingStream &trackingStream) | |
| void | setEnabled (bool flag) |
| Enables or disables the assigner. | |
| bool | isEnabled () |
| Returns whether the assigner is enabled. | |
| void | setProbeToTracking (std::map< std::string, std::vector< TrackerID > > map) |
| Sets the mapping of probe names to TrackingInstrument assignments. | |
| std::map< std::string, std::vector< TrackerID > > | probeToTracking () |
| Returns the list of TrackingInstruments mapped to a given probe name. | |
Public Member Functions inherited from 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. | |
Additional Inherited Members | |
Protected Member Functions inherited from SignalReceiver | |
| void | disconnectAll () |
| Disconnects all existing connections. | |
| void setProbeToTracking | ( | std::map< std::string, std::vector< TrackerID > > | map | ) |
Sets the mapping of probe names to TrackingInstrument assignments.
Each probe can be associated with multiple trackers. In this case, the first one is used that is found in the instrument list of the TrackingStream.