Medical Imaging Interaction Toolkit
2016.11.0
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) | |
virtual | ~TrackingDeviceSourceConfigurator () |
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 40 of file mitkTrackingDeviceSourceConfigurator.h.
|
protected |
Definition at line 35 of file mitkTrackingDeviceSourceConfigurator.cpp.
References m_ErrorMessage, m_NavigationTools, m_ToolCorrespondencesInToolStorage, m_TrackingDevice, and mitk::NavigationToolStorage::New().
|
protectedvirtual |
Definition at line 58 of file mitkTrackingDeviceSourceConfigurator.cpp.
|
protected |
Definition at line 133 of file mitkTrackingDeviceSourceConfigurator.cpp.
References mitk::NavigationDataObjectVisualizationFilter::New().
mitk::TrackingDeviceSource::Pointer mitk::TrackingDeviceSourceConfigurator::CreateTrackingDeviceSource | ( | ) |
Definition at line 89 of file mitkTrackingDeviceSourceConfigurator.cpp.
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 95 of file mitkTrackingDeviceSourceConfigurator.cpp.
References us::GetModuleContext(), mitk::TrackingDeviceTypeCollection::GetTrackingDeviceTypeInformation(), MITK_ERROR, and MITK_WARN.
std::string mitk::TrackingDeviceSourceConfigurator::GetErrorMessage | ( | ) |
Definition at line 126 of file mitkTrackingDeviceSourceConfigurator.cpp.
std::string mitk::TrackingDeviceSourceConfigurator::GetToolIdentifierInToolStorage | ( | unsigned int | outputID | ) |
Definition at line 158 of file mitkTrackingDeviceSourceConfigurator.cpp.
std::vector< std::string > mitk::TrackingDeviceSourceConfigurator::GetToolIdentifiersInToolStorage | ( | ) |
Definition at line 169 of file mitkTrackingDeviceSourceConfigurator.cpp.
int mitk::TrackingDeviceSourceConfigurator::GetToolNumberInToolStorage | ( | unsigned int | outputID | ) |
Definition at line 152 of file mitkTrackingDeviceSourceConfigurator.cpp.
std::vector< int > mitk::TrackingDeviceSourceConfigurator::GetToolNumbersInToolStorage | ( | ) |
Definition at line 164 of file mitkTrackingDeviceSourceConfigurator.cpp.
mitk::NavigationToolStorage::Pointer mitk::TrackingDeviceSourceConfigurator::GetUpdatedNavigationToolStorage | ( | ) |
Definition at line 52 of file mitkTrackingDeviceSourceConfigurator.cpp.
bool mitk::TrackingDeviceSourceConfigurator::IsCreateTrackingDeviceSourcePossible | ( | ) |
Definition at line 62 of file mitkTrackingDeviceSourceConfigurator.cpp.
mitk::TrackingDeviceSourceConfigurator::mitkClassMacroItkParent | ( | TrackingDeviceSourceConfigurator | , |
itk::Object | |||
) |
mitk::TrackingDeviceSourceConfigurator::mitkNewMacro2Param | ( | Self | , |
mitk::NavigationToolStorage::Pointer | , | ||
mitk::TrackingDevice::Pointer | |||
) |
|
protected |
Definition at line 95 of file mitkTrackingDeviceSourceConfigurator.h.
Referenced by TrackingDeviceSourceConfigurator().
|
protected |
Definition at line 93 of file mitkTrackingDeviceSourceConfigurator.h.
Referenced by TrackingDeviceSourceConfigurator().
|
protected |
Definition at line 96 of file mitkTrackingDeviceSourceConfigurator.h.
Referenced by TrackingDeviceSourceConfigurator().
|
protected |
Definition at line 94 of file mitkTrackingDeviceSourceConfigurator.h.
Referenced by TrackingDeviceSourceConfigurator().