Medical Imaging Interaction Toolkit  2016.11.0
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,
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 #ifndef MITKCLARONINTERFACE_H_HEADER_INCLUDED_
18 #define MITKCLARONINTERFACE_H_HEADER_INCLUDED_
19 
20 #include <vector>
21 #include <string>
22 
23 #include <MitkIGTExports.h>
24 
25 #include <itkObject.h>
26 #include <itkObjectFactory.h>
27 #include "mitkCommon.h"
28 
29 typedef int mtHandle;
30 
31 namespace mitk
32 {
33  typedef int claronToolHandle;
34 
42  class MITKIGT_EXPORT ClaronInterface : public itk::Object
43  {
44  public:
45 
46  mitkClassMacroItkParent(ClaronInterface, itk::Object);
47  itkFactorylessNewMacro(Self)
48  itkCloneMacro(Self)
54  void Initialize(std::string calibrationDir, std::string toolFilesDir);
55 
59  bool StartTracking();
60 
64  bool StopTracking();
65 
69  std::vector<claronToolHandle> GetAllActiveTools();
70 
74  std::vector<double> GetTipPosition(claronToolHandle c);
75 
79  std::vector<double> GetTipQuaternions(claronToolHandle c);
80 
84  std::vector<double> GetPosition(claronToolHandle c);
85 
89  std::vector<double> GetQuaternions(claronToolHandle c);
90 
94  const char* GetName(claronToolHandle c);
95 
99  void GrabFrame();
100 
105  bool IsMicronTrackerInstalled();
106 
107  protected:
111  ClaronInterface();
115  ~ClaronInterface();
116 
117  };
118 }//mitk
119 #endif
int claronToolHandle
DataCollection - Class to facilitate loading/accessing structured data.
int mtHandle
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
static std::string GetName(std::string fileName, std::string suffix)