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