Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkTrackingDeviceSourceConfigurator.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 
14 #ifndef mitkTrackingDeviceSourceConfigurator_h
15 #define mitkTrackingDeviceSourceConfigurator_h
16 
17 #include <MitkIGTExports.h>
18 
19 //itk includes
20 #include <itkObject.h>
21 
22 //mitk IGT includes
26 
27 namespace mitk {
36  class MITKIGT_EXPORT TrackingDeviceSourceConfigurator : public itk::Object
37  {
38  public:
40  mitkNewMacro2Param(Self,mitk::NavigationToolStorage::Pointer,mitk::TrackingDevice::Pointer);
41 
46  bool IsCreateTrackingDeviceSourcePossible();
47 
51  mitk::TrackingDeviceSource::Pointer CreateTrackingDeviceSource();
52 
58  mitk::TrackingDeviceSource::Pointer CreateTrackingDeviceSource(mitk::NavigationDataObjectVisualizationFilter::Pointer &visualizationFilter);
59 
61  int GetToolNumberInToolStorage(unsigned int outputID);
62 
64  std::string GetToolIdentifierInToolStorage(unsigned int outputID);
65 
69  std::vector<int> GetToolNumbersInToolStorage();
70 
74  std::vector<std::string> GetToolIdentifiersInToolStorage();
75 
79  mitk::NavigationToolStorage::Pointer GetUpdatedNavigationToolStorage();
80 
83  std::string GetErrorMessage();
84 
85  protected:
86  TrackingDeviceSourceConfigurator(mitk::NavigationToolStorage::Pointer NavigationTools, mitk::TrackingDevice::Pointer TrackingDevice);
88 
89  mitk::NavigationToolStorage::Pointer m_NavigationTools;
90  mitk::TrackingDevice::Pointer m_TrackingDevice;
91  std::string m_ErrorMessage;
93 
94  mitk::NavigationDataObjectVisualizationFilter::Pointer CreateNavigationDataObjectVisualizationFilter(mitk::TrackingDeviceSource::Pointer trackingDeviceSource, mitk::NavigationToolStorage::Pointer navigationTools);
95 
96  };
97 } // namespace mitk
98 #endif
mitk::TrackingDeviceSourceConfigurator
This class offers a factory method for objects of the class TrackingDeviceSource. It initializes this...
Definition: mitkTrackingDeviceSourceConfigurator.h:36
mitkNewMacro2Param
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
mitk::TrackingDeviceSourceConfigurator::m_ErrorMessage
std::string m_ErrorMessage
Definition: mitkTrackingDeviceSourceConfigurator.h:91
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::TrackingDeviceSourceConfigurator::m_TrackingDevice
mitk::TrackingDevice::Pointer m_TrackingDevice
Definition: mitkTrackingDeviceSourceConfigurator.h:90
mitk::TrackingDevice
Interface for all Tracking Devices.
Definition: mitkTrackingDevice.h:34
mitkNavigationDataObjectVisualizationFilter.h
mitkNavigationToolStorage.h
mitkTrackingDeviceSource.h
mitk::TrackingDeviceSourceConfigurator::m_NavigationTools
mitk::NavigationToolStorage::Pointer m_NavigationTools
Definition: mitkTrackingDeviceSourceConfigurator.h:89
mitk::TrackingDeviceSourceConfigurator::m_ToolCorrespondencesInToolStorage
std::vector< int > m_ToolCorrespondencesInToolStorage
Definition: mitkTrackingDeviceSourceConfigurator.h:92