NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkPLUSNDITracker.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 niftkPLUSNDITracker_h
16 #define niftkPLUSNDITracker_h
17 
18 #include "niftkNDITracker.h"
19 #include <niftkNDITrackersExports.h>
20 #include <niftkNDICAPITracker.h>
21 
22 namespace niftk {
23 
28 class NIFTKNDITRACKERS_EXPORT PLUSNDITracker : public niftk::NDITracker
29 {
30 public:
31 
32  mitkClassMacroItkParent(PLUSNDITracker, niftk::NDITracker)
33 
34 
37  virtual std::map<std::string, vtkSmartPointer<vtkMatrix4x4> > GetTrackingData() override;
38 
39 protected:
40 
41  PLUSNDITracker(mitk::DataStorage::Pointer dataStorage,
42  std::string portName, // this should ALWAYS be an int.
43  // but we store it as a string to pass to base class.
44  mitk::TrackingDeviceData deviceData,
45  std::string toolConfigFileName,
46  int preferredFramesPerSecond,
47  int baudRate,
48  int measurementVolumeNumber
49  ); // Purposefully hidden.
50 
51  virtual ~PLUSNDITracker(); // Purposefully hidden.
52 
53  PLUSNDITracker(const PLUSNDITracker&); // Purposefully not implemented.
54  PLUSNDITracker& operator=(const PLUSNDITracker&); // Purposefully not implemented.
55 
59  std::string ConvertPortNameToPortIndexPlusOne(const std::string& name) const;
60 
61 private:
62  niftk::NDICAPITracker m_Tracker;
63 
64 }; // end class
65 
66 } // end namespace
67 
68 #endif
69 
Base class for NifTK interfaces to NDI trackers.
Definition: niftkNDITracker.h:43
GLuint const GLchar * name
Definition: glew.h:1798
Interface class for Northern Digital's tracking devices.
Definition: niftkNDICAPITracker.h:320
RAII wrapper for PLUS/Atami interface to NDI trackers.
Definition: niftkPLUSNDITracker.h:28
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194