Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkOptitrackErrorMessages.cpp
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 
18 
20  {
21  std::string message = "";
22  switch(result)
23  {
24  case 0: message = "[Optitrack API] Successful Result"; break;
25  case 1: message = "[Optitrack API] File Not Found"; break;
26  case 2: message = "[Optitrack API] Load Failed"; break;
27  case 3: message = "[Optitrack API] Failed"; break;
28  case 8: message = "[Optitrack API] Invalid File"; break;
29  case 9: message = "[Optitrack API] Invalid Calibration File"; break;
30  case 10: message = "[Optitrack API] Unable To Initialize"; break;
31  case 11: message = "[Optitrack API] Invalid License"; break;
32  case 14: message = "[Optitrack API] No Frames Available"; break;
33  case 100: message = "Optitrack Tracking Tools is not installed in the computer"; break;
34  default: message = "[Optitrack API] Unknown error occured"; break;
35  }
36  return message;
37  }
static std::string GetOptitrackErrorMessage(int result)
Helper function to get the error messages from Optitrack API.