Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
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>
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 |
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.
|
protected |
Definition at line 31 of file mitkTrackingDeviceSourceConfigurator.cpp.
References m_ErrorMessage, m_NavigationTools, m_ToolCorrespondencesInToolStorage, m_TrackingDevice, and mitk::NavigationToolStorage::New().
|
overrideprotected |
Definition at line 54 of file mitkTrackingDeviceSourceConfigurator.cpp.
|
protected |
Definition at line 129 of file mitkTrackingDeviceSourceConfigurator.cpp.
References m_ErrorMessage, and mitk::NavigationDataObjectVisualizationFilter::New().
Referenced by CreateTrackingDeviceSource().
mitk::TrackingDeviceSource::Pointer mitk::TrackingDeviceSourceConfigurator::CreateTrackingDeviceSource | ( | ) |
Definition at line 85 of file mitkTrackingDeviceSourceConfigurator.cpp.
Referenced by CreateTrackingDeviceSource().
mitk::TrackingDeviceSource::Pointer mitk::TrackingDeviceSourceConfigurator::CreateTrackingDeviceSource | ( | mitk::NavigationDataObjectVisualizationFilter::Pointer & | visualizationFilter | ) |
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.
References CreateNavigationDataObjectVisualizationFilter(), CreateTrackingDeviceSource(), us::GetModuleContext(), mitk::TrackingDeviceTypeCollection::GetTrackingDeviceTypeInformation(), IsCreateTrackingDeviceSourcePossible(), m_ErrorMessage, m_NavigationTools, m_ToolCorrespondencesInToolStorage, m_TrackingDevice, MITK_ERROR, and MITK_WARN.
std::string mitk::TrackingDeviceSourceConfigurator::GetErrorMessage | ( | ) |
Definition at line 122 of file mitkTrackingDeviceSourceConfigurator.cpp.
References m_ErrorMessage.
std::string mitk::TrackingDeviceSourceConfigurator::GetToolIdentifierInToolStorage | ( | unsigned int | outputID | ) |
Definition at line 154 of file mitkTrackingDeviceSourceConfigurator.cpp.
References m_NavigationTools, and m_ToolCorrespondencesInToolStorage.
std::vector< std::string > mitk::TrackingDeviceSourceConfigurator::GetToolIdentifiersInToolStorage | ( | ) |
Definition at line 165 of file mitkTrackingDeviceSourceConfigurator.cpp.
References m_NavigationTools, and m_ToolCorrespondencesInToolStorage.
int mitk::TrackingDeviceSourceConfigurator::GetToolNumberInToolStorage | ( | unsigned int | outputID | ) |
Definition at line 148 of file mitkTrackingDeviceSourceConfigurator.cpp.
References m_ToolCorrespondencesInToolStorage.
std::vector< int > mitk::TrackingDeviceSourceConfigurator::GetToolNumbersInToolStorage | ( | ) |
Definition at line 160 of file mitkTrackingDeviceSourceConfigurator.cpp.
References m_ToolCorrespondencesInToolStorage.
mitk::NavigationToolStorage::Pointer mitk::TrackingDeviceSourceConfigurator::GetUpdatedNavigationToolStorage | ( | ) |
Definition at line 48 of file mitkTrackingDeviceSourceConfigurator.cpp.
References m_NavigationTools.
bool mitk::TrackingDeviceSourceConfigurator::IsCreateTrackingDeviceSourcePossible | ( | ) |
Definition at line 58 of file mitkTrackingDeviceSourceConfigurator.cpp.
References m_ErrorMessage, m_NavigationTools, and m_TrackingDevice.
Referenced by CreateTrackingDeviceSource().
mitk::TrackingDeviceSourceConfigurator::mitkClassMacroItkParent | ( | TrackingDeviceSourceConfigurator | , |
itk::Object | |||
) |
mitk::TrackingDeviceSourceConfigurator::mitkNewMacro2Param | ( | Self | , |
mitk::NavigationToolStorage::Pointer | , | ||
mitk::TrackingDevice::Pointer | |||
) |
|
protected |
Definition at line 91 of file mitkTrackingDeviceSourceConfigurator.h.
Referenced by CreateNavigationDataObjectVisualizationFilter(), CreateTrackingDeviceSource(), GetErrorMessage(), IsCreateTrackingDeviceSourcePossible(), and TrackingDeviceSourceConfigurator().
|
protected |
|
protected |
Definition at line 92 of file mitkTrackingDeviceSourceConfigurator.h.
Referenced by CreateTrackingDeviceSource(), GetToolIdentifierInToolStorage(), GetToolIdentifiersInToolStorage(), GetToolNumberInToolStorage(), GetToolNumbersInToolStorage(), and TrackingDeviceSourceConfigurator().
|
protected |
Definition at line 90 of file mitkTrackingDeviceSourceConfigurator.h.
Referenced by CreateTrackingDeviceSource(), IsCreateTrackingDeviceSourcePossible(), and TrackingDeviceSourceConfigurator().