MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitk::TrackingDeviceSourceConfigurator Class Reference

This class offers a factory method for objects of the class TrackingDeviceSource. It initializes this TrackingDeviceSource with the given navigation tools and the given tracking device. The factory method also checks if all tools are valid and of the same type like the TrackingDevice. You can do this check before trying to create the TrackingDeviceSource by calling the method IsCreateTrackingDeviceSourcePossible(), if it returns false you might want to get the error message by calling the method GetErrorMessage(). More...

#include <mitkTrackingDeviceSourceConfigurator.h>

Inheritance diagram for mitk::TrackingDeviceSourceConfigurator:

Public Member Functions

 mitkClassMacroItkParent (TrackingDeviceSourceConfigurator, itk::Object)
 
 mitkNewMacro2Param (Self, mitk::NavigationToolStorage::Pointer, mitk::TrackingDevice::Pointer)
 
bool IsCreateTrackingDeviceSourcePossible ()
 
mitk::TrackingDeviceSource::Pointer CreateTrackingDeviceSource ()
 
mitk::TrackingDeviceSource::Pointer CreateTrackingDeviceSource (mitk::NavigationDataObjectVisualizationFilter::Pointer &visualizationFilter)
 
int GetToolNumberInToolStorage (unsigned int outputID)
 
std::string GetToolIdentifierInToolStorage (unsigned int outputID)
 
std::vector< int > GetToolNumbersInToolStorage ()
 
std::vector< std::string > GetToolIdentifiersInToolStorage ()
 
mitk::NavigationToolStorage::Pointer GetUpdatedNavigationToolStorage ()
 
std::string GetErrorMessage ()
 

Protected Member Functions

 TrackingDeviceSourceConfigurator (mitk::NavigationToolStorage::Pointer NavigationTools, mitk::TrackingDevice::Pointer TrackingDevice)
 
 ~TrackingDeviceSourceConfigurator () override
 
mitk::NavigationDataObjectVisualizationFilter::Pointer CreateNavigationDataObjectVisualizationFilter (mitk::TrackingDeviceSource::Pointer trackingDeviceSource, mitk::NavigationToolStorage::Pointer navigationTools)
 

Protected Attributes

mitk::NavigationToolStorage::Pointer m_NavigationTools
 
mitk::TrackingDevice::Pointer m_TrackingDevice
 
std::string m_ErrorMessage
 
std::vector< int > m_ToolCorrespondencesInToolStorage
 

Detailed Description

This class offers a factory method for objects of the class TrackingDeviceSource. It initializes this TrackingDeviceSource with the given navigation tools and the given tracking device. The factory method also checks if all tools are valid and of the same type like the TrackingDevice. You can do this check before trying to create the TrackingDeviceSource by calling the method IsCreateTrackingDeviceSourcePossible(), if it returns false you might want to get the error message by calling the method GetErrorMessage().

Documentation

Definition at line 36 of file mitkTrackingDeviceSourceConfigurator.h.

Constructor & Destructor Documentation

◆ TrackingDeviceSourceConfigurator()

mitk::TrackingDeviceSourceConfigurator::TrackingDeviceSourceConfigurator ( mitk::NavigationToolStorage::Pointer NavigationTools,
mitk::TrackingDevice::Pointer TrackingDevice )
protected

Definition at line 31 of file mitkTrackingDeviceSourceConfigurator.cpp.

◆ ~TrackingDeviceSourceConfigurator()

mitk::TrackingDeviceSourceConfigurator::~TrackingDeviceSourceConfigurator ( )
overrideprotected

Definition at line 54 of file mitkTrackingDeviceSourceConfigurator.cpp.

Member Function Documentation

◆ CreateNavigationDataObjectVisualizationFilter()

mitk::NavigationDataObjectVisualizationFilter::Pointer mitk::TrackingDeviceSourceConfigurator::CreateNavigationDataObjectVisualizationFilter ( mitk::TrackingDeviceSource::Pointer trackingDeviceSource,
mitk::NavigationToolStorage::Pointer navigationTools )
protected

Definition at line 129 of file mitkTrackingDeviceSourceConfigurator.cpp.

◆ CreateTrackingDeviceSource() [1/2]

mitk::TrackingDeviceSource::Pointer mitk::TrackingDeviceSourceConfigurator::CreateTrackingDeviceSource ( )
Returns
Returns a new TrackingDeviceSource. Returns nullptr if there was an error on creating the TrackingDeviceSource. If there was an error it's availiable as error message.

Definition at line 85 of file mitkTrackingDeviceSourceConfigurator.cpp.

◆ CreateTrackingDeviceSource() [2/2]

mitk::TrackingDeviceSource::Pointer mitk::TrackingDeviceSourceConfigurator::CreateTrackingDeviceSource ( mitk::NavigationDataObjectVisualizationFilter::Pointer & visualizationFilter)
Returns
Returns a new TrackingDeviceSource. Returns nullptr if there was an error on creating the TrackingDeviceSource. If there was an error it's availiable as error message.
Parameters
visualizationFilter(return value) returns a visualization filter which is already connected to the tracking device source. This filter visualises the surfaces which are availiable by the navigation tool storage.

Definition at line 91 of file mitkTrackingDeviceSourceConfigurator.cpp.

◆ GetErrorMessage()

std::string mitk::TrackingDeviceSourceConfigurator::GetErrorMessage ( )
Returns
Returns the current error message. Returns an empty string if there was no error.

Definition at line 122 of file mitkTrackingDeviceSourceConfigurator.cpp.

◆ GetToolIdentifierInToolStorage()

std::string mitk::TrackingDeviceSourceConfigurator::GetToolIdentifierInToolStorage ( unsigned int outputID)
Returns
Returns the identifier of the corresponding tool in the tool storage of a output navigation data. Returns an empty string if there was an error.

Definition at line 154 of file mitkTrackingDeviceSourceConfigurator.cpp.

◆ GetToolIdentifiersInToolStorage()

std::vector< std::string > mitk::TrackingDeviceSourceConfigurator::GetToolIdentifiersInToolStorage ( )
Returns
Returns a vector with all identifier of the corresponding tools in the tool storage of all outputs. The order is the same like the order of the outputs. Returns an empty vector if there was an error.

Definition at line 165 of file mitkTrackingDeviceSourceConfigurator.cpp.

◆ GetToolNumberInToolStorage()

int mitk::TrackingDeviceSourceConfigurator::GetToolNumberInToolStorage ( unsigned int outputID)
Returns
Returns the internal number of the corresponding tool in the tool storage of a output navigation data. Returns -1 if there was an error.

Definition at line 148 of file mitkTrackingDeviceSourceConfigurator.cpp.

◆ GetToolNumbersInToolStorage()

std::vector< int > mitk::TrackingDeviceSourceConfigurator::GetToolNumbersInToolStorage ( )
Returns
Returns a vector with all internal numbers of the corresponding tools in the tool storage of all outputs. The order is the same like the order of the outputs. Returns an empty vector if there was an error.

Definition at line 160 of file mitkTrackingDeviceSourceConfigurator.cpp.

◆ GetUpdatedNavigationToolStorage()

mitk::NavigationToolStorage::Pointer mitk::TrackingDeviceSourceConfigurator::GetUpdatedNavigationToolStorage ( )
Returns
Returns a modified navigation tool storage which holds the tools currently in use in the same order like the output ids of the pipline.

Definition at line 48 of file mitkTrackingDeviceSourceConfigurator.cpp.

◆ IsCreateTrackingDeviceSourcePossible()

bool mitk::TrackingDeviceSourceConfigurator::IsCreateTrackingDeviceSourcePossible ( )
Returns
Returns if it's possible to create a tracking device source, which means the tools are checked if they are of the same type like the tracking device, etc. If it returns false you can get the reason for this by getting the error message.

Definition at line 58 of file mitkTrackingDeviceSourceConfigurator.cpp.

◆ mitkClassMacroItkParent()

mitk::TrackingDeviceSourceConfigurator::mitkClassMacroItkParent ( TrackingDeviceSourceConfigurator ,
itk::Object  )

◆ mitkNewMacro2Param()

mitk::TrackingDeviceSourceConfigurator::mitkNewMacro2Param ( Self ,
mitk::NavigationToolStorage::Pointer ,
mitk::TrackingDevice::Pointer  )

Member Data Documentation

◆ m_ErrorMessage

std::string mitk::TrackingDeviceSourceConfigurator::m_ErrorMessage
protected

Definition at line 91 of file mitkTrackingDeviceSourceConfigurator.h.

◆ m_NavigationTools

mitk::NavigationToolStorage::Pointer mitk::TrackingDeviceSourceConfigurator::m_NavigationTools
protected

Definition at line 89 of file mitkTrackingDeviceSourceConfigurator.h.

◆ m_ToolCorrespondencesInToolStorage

std::vector<int> mitk::TrackingDeviceSourceConfigurator::m_ToolCorrespondencesInToolStorage
protected

Definition at line 92 of file mitkTrackingDeviceSourceConfigurator.h.

◆ m_TrackingDevice

mitk::TrackingDevice::Pointer mitk::TrackingDeviceSourceConfigurator::m_TrackingDevice
protected

Definition at line 90 of file mitkTrackingDeviceSourceConfigurator.h.


The documentation for this class was generated from the following files: