Medical Imaging Interaction Toolkit  2021.02.99-8b0f5727
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_HEADER_INCLUDED_
15 #define MITKTRACKINGDEVICESOURCECONFIGURATOR_H_HEADER_INCLUDED_
16 
17 #include <MitkIGTExports.h>
18 
19 //itk includes
20 #include <itkObject.h>
21 
22 //mitk IGT includes
26 
27 namespace mitk {
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 /* MITKTrackingDeviceSource_H_HEADER_INCLUDED_ */
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMacro2Param(classname, typea, typeb)
Definition: mitkCommon.h:81
#define MITKIGT_EXPORT
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
Interface for all Tracking Devices.
This class offers a factory method for objects of the class TrackingDeviceSource. It initializes this...
mitk::NavigationToolStorage::Pointer m_NavigationTools