17 #include <mitkIGTException.h> 26 QString result =
"<br>Found Devices:";
27 int resultSize = result.size();
33 for (
unsigned int i = 1; i < 20; ++i)
35 QString statusOutput =
"Scanning Port #" + QString::number(i);
36 MITK_INFO << statusOutput.toStdString().c_str();
37 if (i < 10) devName = QString(
"COM%1").arg(i);
38 else devName = QString(
"\\\\.\\COM%1").arg(i);
42 result +=
"<br>" + devName +
": " + QString::fromStdString(scannedPort);
48 for(
unsigned int i = 1; i < 6; ++i)
50 QString devName = QString(
"/dev/ttyS%1").arg(i);
54 result +=
"<br>" + devName +
": " + QString::fromStdString(scannedPort);
60 for(
unsigned int i = 0; i <7; ++i)
62 QString devName = QString(
"/dev/ttyUSB%1").arg(i);
66 result +=
"<br>" + devName +
": " + QString::fromStdString(scannedPort);
73 if (result.size() == resultSize) result +=
"<br>none";
81 tracker->SetDeviceName(port.toStdString());
85 returnValue = tracker->TestConnection();
void Progress(unsigned int steps=1)
Sets the current amount of progress to current progress + steps.
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