An object of this class represents the MicronTracker device. You can add tools to this device, then open the connection and start tracking. The tracking device will then continuously update the tool coordinates.
More...
#include <mitkOpenIGTLinkTrackingDevice.h>
An object of this class represents the MicronTracker device. You can add tools to this device, then open the connection and start tracking. The tracking device will then continuously update the tool coordinates.
Documentation:
Definition at line 35 of file mitkOpenIGTLinkTrackingDevice.h.
◆ OpenIGTLinkTrackingDevice()
mitk::OpenIGTLinkTrackingDevice::OpenIGTLinkTrackingDevice |
( |
| ) |
|
|
protected |
◆ ~OpenIGTLinkTrackingDevice()
mitk::OpenIGTLinkTrackingDevice::~OpenIGTLinkTrackingDevice |
( |
| ) |
|
|
overrideprotected |
◆ AddTool()
mitk::TrackingTool * mitk::OpenIGTLinkTrackingDevice::AddTool |
( |
const char * | toolName, |
|
|
const char * | fileName ) |
Create a new OpenIGTLink tool with toolName and fileName and add it to the list of tools.
Note that tools are usually provided by the OpenIGTLink connection. In most cases, the method DiscoverTools() should be used instead which automatically finds the provided tools. If you use this method to manually add tools be sure that you add the same number and type of tools that are provided by the connected device. Otherwise problems might occur when you try to start tracking.
Definition at line 210 of file mitkOpenIGTLinkTrackingDevice.cpp.
◆ AutoDetectTools()
mitk::NavigationToolStorage::Pointer mitk::OpenIGTLinkTrackingDevice::AutoDetectTools |
( |
| ) |
|
|
overridevirtual |
Autodetects tools from the current OpenIGTLink connection and returns them as a navigation tool storage.
- Returns
- Returns the detected tools. Returns an empty storage if no tools are present or if OpenIGTLink Connection is not possible
Reimplemented from mitk::TrackingDevice.
Definition at line 56 of file mitkOpenIGTLinkTrackingDevice.cpp.
◆ AutoDetectToolsAvailable()
bool mitk::OpenIGTLinkTrackingDevice::AutoDetectToolsAvailable |
( |
| ) |
|
|
overridevirtual |
◆ CloseConnection()
bool mitk::OpenIGTLinkTrackingDevice::CloseConnection |
( |
| ) |
|
|
overridevirtual |
◆ DiscoverTools()
bool mitk::OpenIGTLinkTrackingDevice::DiscoverTools |
( |
int | WaitingTime = 10000 | ) |
|
Discover the tools available from the connected OpenIGTLink device and adds these tools to this tracking device. Therefore, a connection is opened, the tools are discovered and added.
- Parameters
-
WaitingTime | Defines how long the method waits for an answer from the server (in milliseconds). Default value is 10000 (10 seconds). |
- Returns
- Returns true if the connection was established and the tools were discovered successfully and - if at least one tool was found - were added to this device. Retruns false if no valid connection is available.
Definition at line 225 of file mitkOpenIGTLinkTrackingDevice.cpp.
◆ GetAllTools()
std::vector< mitk::OpenIGTLinkTrackingTool::Pointer > mitk::OpenIGTLinkTrackingDevice::GetAllTools |
( |
| ) |
|
|
protected |
◆ GetHostname()
std::string mitk::OpenIGTLinkTrackingDevice::GetHostname |
( |
| ) |
|
◆ GetPortNumber()
int mitk::OpenIGTLinkTrackingDevice::GetPortNumber |
( |
| ) |
|
◆ GetTool()
mitk::TrackingTool * mitk::OpenIGTLinkTrackingDevice::GetTool |
( |
unsigned int | toolNumber | ) |
const |
|
overridevirtual |
- Parameters
-
toolNumber | The number of the tool which should be given back. |
- Returns
- Returns the tool which the number "toolNumber". Returns nullptr, if there is no tool with this number.
Implements mitk::TrackingDevice.
Definition at line 424 of file mitkOpenIGTLinkTrackingDevice.cpp.
◆ GetToolCount()
unsigned int mitk::OpenIGTLinkTrackingDevice::GetToolCount |
( |
| ) |
const |
|
overridevirtual |
◆ InternalAddTool()
bool mitk::OpenIGTLinkTrackingDevice::InternalAddTool |
( |
OpenIGTLinkTrackingTool::Pointer | tool | ) |
|
|
protected |
Adds a tool to the tracking device.
- Parameters
-
tool | The tool which will be added. |
- Returns
- Returns true if the tool has been added, false otherwise.
Definition at line 219 of file mitkOpenIGTLinkTrackingDevice.cpp.
◆ IsDeviceInstalled()
bool mitk::OpenIGTLinkTrackingDevice::IsDeviceInstalled |
( |
| ) |
|
|
overridevirtual |
- Returns
- Returns true if the device is installed on this system an can be used. Installed means activated in MITK, in some cases this means the MITK installation / build has to know the installation path of the device libraries on this system. This path is usually given as cmake variable during the build configuration in devellopers mode. If the device should be available for end users with an installer the libraries can be included into the installer or the installer has to be adapted such that it asks for the path. Returns fals if the device is not installed. It cannot be used on this build in this case.
Note that some tracking systems communicate via a standard interface (e.g., serial port) and don't need any library or installation. These devices are always "installed".
Reimplemented from mitk::TrackingDevice.
Definition at line 205 of file mitkOpenIGTLinkTrackingDevice.cpp.
◆ itkCloneMacro()
mitk::OpenIGTLinkTrackingDevice::itkCloneMacro |
( |
Self | | ) |
|
◆ itkFactorylessNewMacro()
mitk::OpenIGTLinkTrackingDevice::itkFactorylessNewMacro |
( |
Self | | ) |
|
◆ itkGetConstMacro()
mitk::OpenIGTLinkTrackingDevice::itkGetConstMacro |
( |
UpdateRate | , |
|
|
int | ) |
Returns the update rate of the device in fps.
◆ itkSetMacro()
mitk::OpenIGTLinkTrackingDevice::itkSetMacro |
( |
UpdateRate | , |
|
|
int | ) |
Sets the update rate of the device in fps. Default value is 60 fps.
◆ mitkClassMacro()
◆ OpenConnection()
bool mitk::OpenIGTLinkTrackingDevice::OpenConnection |
( |
| ) |
|
|
overridevirtual |
◆ ReceiveMessage()
mitk::IGTLMessage::Pointer mitk::OpenIGTLinkTrackingDevice::ReceiveMessage |
( |
int | waitingTime | ) |
|
|
protected |
◆ SetHostname()
void mitk::OpenIGTLinkTrackingDevice::SetHostname |
( |
std::string | hostname | ) |
|
◆ SetPortNumber()
void mitk::OpenIGTLinkTrackingDevice::SetPortNumber |
( |
int | portNumber | ) |
|
◆ StartTracking()
bool mitk::OpenIGTLinkTrackingDevice::StartTracking |
( |
| ) |
|
|
overridevirtual |
◆ StopTracking()
bool mitk::OpenIGTLinkTrackingDevice::StopTracking |
( |
| ) |
|
|
overridevirtual |
◆ UpdateTools()
void mitk::OpenIGTLinkTrackingDevice::UpdateTools |
( |
| ) |
|
|
protected |
◆ m_AllTools
std::vector<OpenIGTLinkTrackingTool::Pointer> mitk::OpenIGTLinkTrackingDevice::m_AllTools |
|
protected |
◆ m_IGTLDeviceSource
mitk::IGTLTrackingDataDeviceSource::Pointer mitk::OpenIGTLinkTrackingDevice::m_IGTLDeviceSource |
|
protected |
◆ m_IGTLMsgToNavDataFilter
mitk::IGTLMessageToNavigationDataFilter::Pointer mitk::OpenIGTLinkTrackingDevice::m_IGTLMsgToNavDataFilter |
|
protected |
◆ m_MessageReceivedObserverTag
unsigned long mitk::OpenIGTLinkTrackingDevice::m_MessageReceivedObserverTag |
|
protected |
◆ m_OpenIGTLinkClient
mitk::IGTLClient::Pointer mitk::OpenIGTLinkTrackingDevice::m_OpenIGTLinkClient |
|
protected |
◆ m_UpdateRate
int mitk::OpenIGTLinkTrackingDevice::m_UpdateRate |
|
protected |
The documentation for this class was generated from the following files: