summaryrefslogtreecommitdiffhomepage
path: root/tracker-rs
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-31 13:07:05 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-31 13:07:58 +0200
commitc8c10fec4039f4c2bfe7fa87de26da11ece24f91 (patch)
treedf7995c8a966a12e01ae1ad40c0bc982a79c65d2 /tracker-rs
parente0564c0872b67dd96537e2fea36a4b29c3b8de36 (diff)
tracker/rs: revert accidental reformat in 9040b187
Diffstat (limited to 'tracker-rs')
-rw-r--r--tracker-rs/ftnoir_tracker_rs.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/tracker-rs/ftnoir_tracker_rs.cpp b/tracker-rs/ftnoir_tracker_rs.cpp
index 1ab32992..37b357c0 100644
--- a/tracker-rs/ftnoir_tracker_rs.cpp
+++ b/tracker-rs/ftnoir_tracker_rs.cpp
@@ -46,7 +46,7 @@ void RSTracker::configurePreviewFrame()
void RSTracker::start_tracker(QFrame* previewFrame)
{
- qDebug() << "tracker_rs: starting tracker";
+ qDebug() << "tracker_rs: starting tracker";
mPreviewFrame = previewFrame;
@@ -58,20 +58,20 @@ void RSTracker::start_tracker(QFrame* previewFrame)
}
void RSTracker::startPreview(){
- qDebug() << "tracker_rs: starting preview";
+ qDebug() << "tracker_rs: starting preview";
mPreviewUpdateTimer.start(kPreviewUpdateInterval);
}
void RSTracker::updatePreview(){
- if (mImageWidget != nullptr && mImageWidget->isEnabled() && mTrackerWorkerThread.isRunning())
- mImageWidget->setImage(mTrackerWorkerThread.getPreview());
- else
- qDebug() << "tracker_rs: not updating preview. worker thread running: " << mTrackerWorkerThread.isRunning();
+ if (mImageWidget != nullptr && mImageWidget->isEnabled() && mTrackerWorkerThread.isRunning())
+ mImageWidget->setImage(mTrackerWorkerThread.getPreview());
+ else
+ qDebug() << "tracker_rs: not updating preview. worker thread running: " << mTrackerWorkerThread.isRunning();
}
void RSTracker::stopPreview(){
- mPreviewUpdateTimer.stop();
- qDebug() << "tracker_rs: stopped preview";
+ mPreviewUpdateTimer.stop();
+ qDebug() << "tracker_rs: stopped preview";
}
void RSTracker::handleTrackingEnded(int exitCode){
@@ -98,17 +98,17 @@ void RSTracker::showRealSenseErrorMessageBox(int exitCode)
msgBox.setIcon(QMessageBox::Critical);
msgBox.setText("RealSense Tracking Error");
- switch(exitCode){
- case -101: //The implementation got an invalid handle from the RealSense SDK session/modules
+ switch(exitCode){
+ case -101: //The implementation got an invalid handle from the RealSense SDK session/modules
msgBox.setInformativeText("Couldn't initialize RealSense tracking. Please make sure SDK Runtime 2016 R2 is installed.");
- break;
- case -301: //RealSense SDK runtime execution aborted.
- msgBox.setInformativeText("Tracking stopped after the RealSense SDK Runtime execution has aborted.");
- break;
- case -601: //RealSense Camera stream configuration has changed.
- msgBox.setInformativeText("Tracking stopped after another program changed camera streams configuration.");
- break;
- default:
+ break;
+ case -301: //RealSense SDK runtime execution aborted.
+ msgBox.setInformativeText("Tracking stopped after the RealSense SDK Runtime execution has aborted.");
+ break;
+ case -601: //RealSense Camera stream configuration has changed.
+ msgBox.setInformativeText("Tracking stopped after another program changed camera streams configuration.");
+ break;
+ default:
msgBox.setInformativeText("Status code: " + QString::number(exitCode) + ".\n\nNote that you need the latest camera drivers and the SDK runtime 2016 R2 to be installed.");
}
@@ -126,7 +126,7 @@ void RSTracker::data(double *data)
}
RSTracker::~RSTracker() {
- qDebug() << "tracker is being destroyed.";
+ qDebug() << "tracker is being destroyed.";
stopPreview();