Medical Imaging Interaction Toolkit  2018.04.99-74b4982f
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_HEADER_INCLUDED_
15 #define MITKNDIPASSIVETOOL_H_HEADER_INCLUDED_
16 
17 #include <mitkTrackingTool.h>
18 #include "mitkTrackingTypes.h"
19 
20 namespace mitk
21 {
22  class NDITrackingDevice;
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 /* MITKNDIPASSIVETOOL_H_HEADER_INCLUDED_ */
Interface for all Tracking Tools.
unsigned char * m_SROMData
content of the srom tool description file
DataCollection - Class to facilitate loading/accessing structured data.
std::string m_File
the original file from which this tool was loaded
std::string m_PortHandle
port handle for this tool
unsigned int m_SROMDataLength
length of the srom tool description file
std::string m_SerialNumber
serial number for this tool
#define MITKIGT_EXPORT
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
TrackingPriority m_TrackingPriority
priority for this tool
Implementation of a passive NDI optical tool.
superclass for specific NDI tracking Devices that use serial communication.
TrackingPriority
tracking priority for NDI tracking devices