Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
Medical Imaging Interaction Toolkit
mitkClaronInterfaceStub.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 #ifndef MITKCLARONINTERFACE_H_HEADER_INCLUDED_
14 #define MITKCLARONINTERFACE_H_HEADER_INCLUDED_
15 
16 #include <vector>
17 #include <string>
18 
19 #include <MitkIGTExports.h>
20 
21 #include <itkObject.h>
22 #include <itkObjectFactory.h>
23 #include "mitkCommon.h"
24 
25 typedef int mtHandle;
26 
27 namespace mitk
28 {
29  typedef int claronToolHandle;
30 
38  class MITKIGT_EXPORT ClaronInterface : public itk::Object
39  {
40  public:
41 
42  mitkClassMacroItkParent(ClaronInterface, itk::Object);
43  itkFactorylessNewMacro(Self)
44  itkCloneMacro(Self)
50  void Initialize(std::string calibrationDir, std::string toolFilesDir);
51 
55  bool StartTracking();
56 
60  bool StopTracking();
61 
65  std::vector<claronToolHandle> GetAllActiveTools();
66 
70  std::vector<double> GetTipPosition(claronToolHandle c);
71 
75  std::vector<double> GetTipQuaternions(claronToolHandle c);
76 
80  std::vector<double> GetPosition(claronToolHandle c);
81 
85  std::vector<double> GetQuaternions(claronToolHandle c);
86 
90  const char* GetName(claronToolHandle c);
91 
95  void GrabFrame();
96 
101  bool IsMicronTrackerInstalled();
102 
103  protected:
107  ClaronInterface();
111  ~ClaronInterface() override;
112 
113  };
114 }//mitk
115 #endif
int claronToolHandle
DataCollection - Class to facilitate loading/accessing structured data.
int mtHandle
#define MITKIGT_EXPORT
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
static std::string GetName(std::string fileName, std::string suffix)