Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef MITKNDIPASSIVETOOL_H_HEADER_INCLUDED_
19 #define MITKNDIPASSIVETOOL_H_HEADER_INCLUDED_
20 
22 #include "mitkTrackingTypes.h"
23 
24 namespace mitk
25 {
26  class NDITrackingDevice;
35  class MITKIGT_EXPORT NDIPassiveTool : public InternalTrackingTool
36  {
37  public:
38  friend class NDITrackingDevice;
43  {
44  Static = 'S',
45  Dynamic = 'D',
46  ButtonBox = 'B'
47  };
48 
50 
51 
52  virtual bool LoadSROMFile(const char* filename);
53  virtual const unsigned char* GetSROMData() const;
54  virtual unsigned int GetSROMDataLength() const;
55 
56  itkSetStringMacro(PortHandle);
57  itkGetStringMacro(PortHandle);
58  itkSetMacro(TrackingPriority, TrackingPriority);
59  itkGetConstMacro(TrackingPriority, TrackingPriority);
60  itkSetStringMacro(SerialNumber);
61  itkGetStringMacro(SerialNumber);
62  itkGetStringMacro(File);
63 
64  protected:
65  itkFactorylessNewMacro(Self)
66  itkCloneMacro(Self)
68  virtual ~NDIPassiveTool();
69 
70  unsigned char* m_SROMData;
71  unsigned int m_SROMDataLength;
72  TrackingPriority m_TrackingPriority;
73  std::string m_PortHandle;
74  std::string m_SerialNumber;
75  std::string m_File;
76  };
77 } // namespace mitk
78 #endif /* MITKNDIPASSIVETOOL_H_HEADER_INCLUDED_ */
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
implements TrackingTool interface
static const std::string filename
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
Implementation of a passive NDI optical tool.
superclass for specific NDI tracking Devices that use serial communication.
TrackingPriority
tracking priority for NDI tracking devices