Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitkNDIPassiveTool.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 mitkNDIPassiveTool_h
15 #define mitkNDIPassiveTool_h
16 
17 #include <mitkTrackingTool.h>
18 #include "mitkTrackingTypes.h"
19 
20 namespace mitk
21 {
22  class NDITrackingDevice;
31  class MITKIGT_EXPORT NDIPassiveTool : public TrackingTool
32  {
33  public:
34  friend class NDITrackingDevice;
39  {
40  Static = 'S',
41  Dynamic = 'D',
42  ButtonBox = 'B'
43  };
44 
46 
47 
48  virtual bool LoadSROMFile(const char* filename);
49  virtual const unsigned char* GetSROMData() const;
50  virtual unsigned int GetSROMDataLength() const;
51 
52  itkSetStringMacro(PortHandle);
53  itkGetStringMacro(PortHandle);
54  itkSetMacro(TrackingPriority, TrackingPriority);
55  itkGetConstMacro(TrackingPriority, TrackingPriority);
56  itkSetStringMacro(SerialNumber);
57  itkGetStringMacro(SerialNumber);
58  itkGetStringMacro(File);
59 
60  protected:
61  itkFactorylessNewMacro(Self);
62  itkCloneMacro(Self)
64  ~NDIPassiveTool() override;
65 
66  unsigned char* m_SROMData;
67  unsigned int m_SROMDataLength;
69  std::string m_PortHandle;
70  std::string m_SerialNumber;
71  std::string m_File;
72  };
73 } // namespace mitk
74 #endif
mitk::NDIPassiveTool
Implementation of a passive NDI optical tool.
Definition: mitkNDIPassiveTool.h:31
mitk::NDIPassiveTool::TrackingPriority
TrackingPriority
tracking priority for NDI tracking devices
Definition: mitkNDIPassiveTool.h:38
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition: RenderingTests.dox:1
mbilog::File
@ File
Definition: mbilogBackendBase.h:29
mitkTrackingTool.h
mitk::NDIPassiveTool::m_SROMData
unsigned char * m_SROMData
content of the srom tool description file
Definition: mitkNDIPassiveTool.h:66
mitk::NDITrackingDevice
superclass for specific NDI tracking Devices that use serial communication.
Definition: mitkNDITrackingDevice.h:40
mitk::NDIPassiveTool::m_File
std::string m_File
the original file from which this tool was loaded
Definition: mitkNDIPassiveTool.h:71
mitk::TrackingTool
Interface for all Tracking Tools.
Definition: mitkTrackingTool.h:42
mitk::NDIPassiveTool::m_SerialNumber
std::string m_SerialNumber
serial number for this tool
Definition: mitkNDIPassiveTool.h:70
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:36
mitk::NDIPassiveTool::m_PortHandle
std::string m_PortHandle
port handle for this tool
Definition: mitkNDIPassiveTool.h:69
mitk::NDIPassiveTool::m_SROMDataLength
unsigned int m_SROMDataLength
length of the srom tool description file
Definition: mitkNDIPassiveTool.h:67
mitk::NDIPassiveTool::m_TrackingPriority
TrackingPriority m_TrackingPriority
priority for this tool
Definition: mitkNDIPassiveTool.h:68
mitkTrackingTypes.h