Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef MITKCLARONINTERFACE_H_HEADER_INCLUDED_
00019 #define MITKCLARONINTERFACE_H_HEADER_INCLUDED_
00020
00021 #include <vector>
00022 #include <string>
00023
00024 #include <MitkIGTExports.h>
00025
00026 #include <itkObject.h>
00027 #include <itkObjectFactory.h>
00028 #include "mitkCommon.h"
00029
00030 typedef int mtHandle;
00031
00032 namespace mitk
00033 {
00034 typedef int claronToolHandle;
00035
00043 class MitkIGT_EXPORT ClaronInterface : public itk::Object
00044 {
00045 public:
00046
00047 mitkClassMacro(ClaronInterface, itk::Object);
00048 itkNewMacro(Self);
00054 void Initialize(std::string calibrationDir, std::string toolFilesDir);
00055
00059 bool StartTracking();
00060
00064 bool StopTracking();
00065
00069 std::vector<claronToolHandle> GetAllActiveTools();
00070
00074 std::vector<double> GetTipPosition(claronToolHandle c);
00075
00079 std::vector<double> GetTipQuaternions(claronToolHandle c);
00080
00084 std::vector<double> GetPosition(claronToolHandle c);
00085
00089 std::vector<double> GetQuaternions(claronToolHandle c);
00090
00094 const char* GetName(claronToolHandle c);
00095
00099 void GrabFrame();
00100
00105 bool IsMicronTrackerInstalled();
00106
00107 protected:
00111 ClaronInterface();
00115 ~ClaronInterface();
00116
00117 };
00118 }
00119 #endif