NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkMITKNDITracker.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkMITKNDITracker_h
16 #define niftkMITKNDITracker_h
17 
18 #include "niftkNDITracker.h"
19 #include <niftkNDITrackersExports.h>
20 #include <mitkTrackingDeviceSource.h>
21 #include <mitkNDITrackingDevice.h>
22 
23 namespace niftk
24 {
25 
30 class NIFTKNDITRACKERS_EXPORT MITKNDITracker : public niftk::NDITracker
31 {
32 public:
33 
34  mitkClassMacroItkParent(MITKNDITracker, niftk::NDITracker)
35 
36 
39  virtual std::map<std::string, vtkSmartPointer<vtkMatrix4x4> > GetTrackingData() override;
40 
41 protected:
42 
43  MITKNDITracker(mitk::DataStorage::Pointer dataStorage,
44  std::string portName,
45  mitk::TrackingDeviceData deviceData,
46  std::string toolConfigFileName,
47  int preferredFramesPerSecond); // Purposefully hidden.
48 
49  virtual ~MITKNDITracker(); // Purposefully hidden.
50 
51  MITKNDITracker(const MITKNDITracker&); // Purposefully not implemented.
52  MITKNDITracker& operator=(const MITKNDITracker&); // Purposefully not implemented.
53 
54  void StartTracking();
55  void StopTracking();
56  bool IsTracking() const;
57  void OpenConnection();
58  void CloseConnection();
59 
60 private:
61 
62  // Created during constructor.
63  mitk::NDITrackingDevice::Pointer m_TrackerDevice;
64  mitk::TrackingDeviceSource::Pointer m_TrackerSource;
65 
66 }; // end class
67 
68 } // end namespace
69 
70 #endif
Base class for NifTK interfaces to NDI trackers.
Definition: niftkNDITracker.h:43
RAII wrapper for MITK interface to NDI trackers.
Definition: niftkMITKNDITracker.h:30
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194