Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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
17
#include "
mitkOptitrackErrorMessages.h
"
18
19
std::string
mitk::OptitrackErrorMessages::GetOptitrackErrorMessage
(
int
result)
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
}
mitkOptitrackErrorMessages.h
mitk::OptitrackErrorMessages::GetOptitrackErrorMessage
static std::string GetOptitrackErrorMessage(int result)
Helper function to get the error messages from Optitrack API.
Definition:
mitkOptitrackErrorMessages.cpp:19
git
MITK
Modules
IGT
TrackingDevices
mitkOptitrackErrorMessages.cpp
Generated on Fri Feb 3 2017 20:52:04 for Medical Imaging Interaction Toolkit by
1.8.9.1