22 #include <QFileDialog>
24 #include <Poco/Path.h>
37 CreateQtPartControl(
this);
46 void QmitkNPOptitrackWidget::CreateQtPartControl(QWidget *parent)
56 void QmitkNPOptitrackWidget::CreateConnections()
67 m_Controls->m_outputTextOptitrack->setHtml(
"<body style=\" font-family:\'MS Shell Dlg 2\'; font-size:7pt; font-weight:400; font-style:normal;\" bgcolor=black><span style=\"color:#ffffff;\"><u>output:</u>");
72 m_Controls->m_outputTextOptitrack->setHtml(QString(s.c_str()));
73 m_Controls->m_outputTextOptitrack->verticalScrollBar()->setValue(
m_Controls->m_outputTextOptitrack->verticalScrollBar()->maximum());
84 tempTrackingDevice->SetExp(
m_Controls->m_OptitrackExp->value());
85 tempTrackingDevice->SetLed(
m_Controls->m_OptitrackLed->value());
86 tempTrackingDevice->SetThr(
m_Controls->m_OptitrackThr->value());
99 std::string
filename = QFileDialog::getOpenFileName(NULL, tr(
"Open Calibration File"),
"/",
"*.*").toLatin1().data();
100 if (filename ==
"") {
return; }
105 m_Controls->m_OptitrackCalibrationFile->setText(
"Calibration File: " + QString(myPath.getFileName().c_str()));
114 clonedWidget->
m_Controls->m_OptitrackCalibrationFile->setText(
m_Controls->m_OptitrackCalibrationFile->text());
itk::SmartPointer< Self > Pointer
static const std::string filename