21 #include <mitkIGTException.h>
30 QString result =
"<br>Found Devices:";
31 int resultSize = result.size();
37 for (
unsigned int i = 1; i < 20; ++i)
39 QString statusOutput =
"Scanning Port #" + QString::number(i);
40 MITK_INFO << statusOutput.toStdString().c_str();
41 if (i < 10) devName = QString(
"COM%1").arg(i);
42 else devName = QString(
"\\\\.\\COM%1").arg(i);
46 result +=
"<br>" + devName +
": " + QString::fromStdString(scannedPort);
52 for(
unsigned int i = 1; i < 6; ++i)
54 QString devName = QString(
"/dev/ttyS%1").arg(i);
58 result +=
"<br>" + devName +
": " + QString::fromStdString(scannedPort);
64 for(
unsigned int i = 0; i <7; ++i)
66 QString devName = QString(
"/dev/ttyUSB%1").arg(i);
70 result +=
"<br>" + devName +
": " + QString::fromStdString(scannedPort);
77 if (result.size() == resultSize) result +=
"<br>none";
85 tracker->SetDeviceName(port.toStdString());
89 returnValue = tracker->TestConnection();
void Progress(unsigned int steps=1)
Sets the current amount of progress to current progress + steps.
itk::SmartPointer< Self > Pointer
An object of this class represents an exception of the MITK-IGT module.
static ProgressBar * GetInstance()
static method to get the GUI dependent ProgressBar-instance so the methods for steps to do and progre...
void AddStepsToDo(unsigned int steps)
Adds steps to totalSteps.
std::string TrackingDeviceType