MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkNDIPassiveTool.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found 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
20namespace 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);
56 itkSetStringMacro(SerialNumber);
57 itkGetStringMacro(SerialNumber);
59
60 protected:
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
Implementation of a passive NDI optical tool.
itkSetStringMacro(PortHandle)
get port handle under which the tool is registered in the tracking device
unsigned int m_SROMDataLength
length of the srom tool description file
itkGetStringMacro(File)
get file from which this tool was loaded
mitkClassMacro(NDIPassiveTool, TrackingTool)
std::string m_File
the original file from which this tool was loaded
itkSetMacro(TrackingPriority, TrackingPriority)
set tracking priority that the ndi tracking device should use
itkGetStringMacro(PortHandle)
set port handle under which the tool is registered in the tracking device
unsigned char * m_SROMData
content of the srom tool description file
itkGetConstMacro(TrackingPriority, TrackingPriority)
get tracking priority that the ndi tracking device should use
itkGetStringMacro(SerialNumber)
get serial number of the tool
itkCloneMacro(Self) NDIPassiveTool()
std::string m_SerialNumber
serial number for this tool
std::string m_PortHandle
port handle for this tool
TrackingPriority m_TrackingPriority
priority for this tool
itkSetStringMacro(SerialNumber)
set serial number of the tool
TrackingPriority
tracking priority for NDI tracking devices
superclass for specific NDI tracking Devices that use serial communication.
Interface for all Tracking Tools.
IGT Exceptions.