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>
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.
◆ TrackingDeviceSourceConfigurator()
mitk::TrackingDeviceSourceConfigurator::TrackingDeviceSourceConfigurator |
( |
mitk::NavigationToolStorage::Pointer | NavigationTools, |
|
|
mitk::TrackingDevice::Pointer | TrackingDevice ) |
|
protected |
◆ ~TrackingDeviceSourceConfigurator()
mitk::TrackingDeviceSourceConfigurator::~TrackingDeviceSourceConfigurator |
( |
| ) |
|
|
overrideprotected |
◆ CreateNavigationDataObjectVisualizationFilter()
mitk::NavigationDataObjectVisualizationFilter::Pointer mitk::TrackingDeviceSourceConfigurator::CreateNavigationDataObjectVisualizationFilter |
( |
mitk::TrackingDeviceSource::Pointer | trackingDeviceSource, |
|
|
mitk::NavigationToolStorage::Pointer | navigationTools ) |
|
protected |
◆ CreateTrackingDeviceSource() [1/2]
mitk::TrackingDeviceSource::Pointer mitk::TrackingDeviceSourceConfigurator::CreateTrackingDeviceSource |
( |
| ) |
|
◆ 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 |
( |
| ) |
|
◆ 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()
◆ mitkNewMacro2Param()
mitk::TrackingDeviceSourceConfigurator::mitkNewMacro2Param |
( |
Self | , |
|
|
mitk::NavigationToolStorage::Pointer | , |
|
|
mitk::TrackingDevice::Pointer | ) |
◆ m_ErrorMessage
std::string mitk::TrackingDeviceSourceConfigurator::m_ErrorMessage |
|
protected |
◆ m_NavigationTools
mitk::NavigationToolStorage::Pointer mitk::TrackingDeviceSourceConfigurator::m_NavigationTools |
|
protected |
◆ m_ToolCorrespondencesInToolStorage
std::vector<int> mitk::TrackingDeviceSourceConfigurator::m_ToolCorrespondencesInToolStorage |
|
protected |
◆ m_TrackingDevice
mitk::TrackingDevice::Pointer mitk::TrackingDeviceSourceConfigurator::m_TrackingDevice |
|
protected |
The documentation for this class was generated from the following files: