NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkIGITrackerDataType.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 niftkIGITrackerDataType_h
16 #define niftkIGITrackerDataType_h
17 
18 #include <niftkIGIDataType.h>
19 
20 #include <vtkSmartPointer.h>
21 #include <vtkMatrix4x4.h>
22 
23 namespace niftk
24 {
25 
33 {
34 public:
35 
37  itkNewMacro(IGITrackerDataType)
38 
39  void SetTrackingData(vtkSmartPointer<vtkMatrix4x4> data);
40  vtkSmartPointer<vtkMatrix4x4> GetTrackingData() const;
41 
42  itkSetStringMacro(ToolName);
43  itkGetStringMacro(ToolName);
44 
45 protected:
46 
47  IGITrackerDataType(); // Purposefully hidden.
48  virtual ~IGITrackerDataType(); // Purposefully hidden.
49 
50  IGITrackerDataType(const IGITrackerDataType&); // Purposefully not implemented.
51  IGITrackerDataType& operator=(const IGITrackerDataType&); // Purposefully not implemented.
52 
53 private:
54 
55  std::string m_ToolName;
56  vtkSmartPointer<vtkMatrix4x4> m_TrackingData;
57 };
58 
59 } // end namespace
60 
61 #endif
IGITrackerDataType & operator=(const IGITrackerDataType &)
vtkSmartPointer< vtkMatrix4x4 > GetTrackingData() const
Definition: niftkIGITrackerDataType.cxx:43
IGITrackerDataType()
Definition: niftkIGITrackerDataType.cxx:21
mitkClassMacro(IGITrackerDataType, IGIDataType) static Pointer New()
void SetTrackingData(vtkSmartPointer< vtkMatrix4x4 > data)
Definition: niftkIGITrackerDataType.cxx:35
GLint GLenum GLsizei GLint GLsizei const GLvoid * data
Definition: glew.h:1363
virtual ~IGITrackerDataType()
Definition: niftkIGITrackerDataType.cxx:29
Abstract base class for IGI Data, such as objects containing tracking data, video frames or ultrasoun...
Definition: niftkIGIDataType.h:35
Class to represent tracker data.
Definition: niftkIGITrackerDataType.h:32
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194