diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 11:25:41 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 11:25:41 +0200 |
commit | bf45260ce8f235e593a22cdbdf9bcd98d508ae7f (patch) | |
tree | 1dbd0ef32a64b5d2f54b5a4360e85ac94f42caa5 /facetracknoir/facetracknoir.cpp | |
parent | aaea5ec0284ed1931c184539b7796adc4d1fd19a (diff) |
WIP: rewrite the GL widget in pure software mode
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-rw-r--r-- | facetracknoir/facetracknoir.cpp | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp index 2282efdd..c031f2a8 100644 --- a/facetracknoir/facetracknoir.cpp +++ b/facetracknoir/facetracknoir.cpp @@ -225,8 +225,6 @@ FaceTrackNoIR::FaceTrackNoIR(QWidget *parent, Qt::WFlags flags) : }
//Q_INIT_RESOURCE(PoseWidget);
- _pose_display = new GLWidget(ui.widget4logo, 0);
- _pose_display->rotateBy(0, 0, 0);
ui.lblX->setVisible(false);
ui.lblY->setVisible(false);
@@ -873,7 +871,7 @@ void FaceTrackNoIR::stopTracker( ) { // Stop displaying the head-pose.
//
timUpdateHeadPose->stop();
- _pose_display->rotateBy(0, 0, 0);
+ ui.pose_display->rotateBy(0, 0, 0);
ui.lblX->setVisible(false);
ui.lblY->setVisible(false);
@@ -987,18 +985,16 @@ void FaceTrackNoIR::showHeadPose() { //
// Get the output-pose and also display it.
//
- if (_pose_display) {
- tracker->getOutputHeadPose(newdata);
- _pose_display->rotateBy(newdata[RY], newdata[RX], newdata[RZ]);
+ tracker->getOutputHeadPose(newdata);
+ ui.pose_display->rotateBy(newdata[RX], newdata[RZ], newdata[RY]);
- ui.lcdNumOutputPosX->display(QString("%1").arg(newdata[TX], 0, 'f', 1));
- ui.lcdNumOutputPosY->display(QString("%1").arg(newdata[TY], 0, 'f', 1));
- ui.lcdNumOutputPosZ->display(QString("%1").arg(newdata[TZ], 0, 'f', 1));
+ ui.lcdNumOutputPosX->display(QString("%1").arg(newdata[TX], 0, 'f', 1));
+ ui.lcdNumOutputPosY->display(QString("%1").arg(newdata[TY], 0, 'f', 1));
+ ui.lcdNumOutputPosZ->display(QString("%1").arg(newdata[TZ], 0, 'f', 1));
- ui.lcdNumOutputRotX->display(QString("%1").arg(newdata[RX], 0, 'f', 1));
- ui.lcdNumOutputRotY->display(QString("%1").arg(newdata[RY], 0, 'f', 1));
- ui.lcdNumOutputRotZ->display(QString("%1").arg(newdata[RZ], 0, 'f', 1));
- }
+ ui.lcdNumOutputRotX->display(QString("%1").arg(newdata[RX], 0, 'f', 1));
+ ui.lcdNumOutputRotY->display(QString("%1").arg(newdata[RY], 0, 'f', 1));
+ ui.lcdNumOutputRotZ->display(QString("%1").arg(newdata[RZ], 0, 'f', 1));
//
// Update the curves in the curve-configurator. This shows the ball with the red lines.
|