summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/tracker-easy-dialog.cpp
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2020-09-02 16:19:37 +0200
committerStéphane Lenclud <github@lenclud.com>2020-09-06 18:41:49 +0200
commitabb14f0ba4ef4c072ae330bcefa0419b701bc88b (patch)
treed64feec80f5a726280446d846fe8c79a07f3f40c /tracker-easy/tracker-easy-dialog.cpp
parente25f81898371648a2e02d1da1f027ff5f189b1a1 (diff)
tracker/easy: Adding support for Clip models where three vertices are arranged from top to bottom.
Close #1145
Diffstat (limited to 'tracker-easy/tracker-easy-dialog.cpp')
-rw-r--r--tracker-easy/tracker-easy-dialog.cpp46
1 files changed, 45 insertions, 1 deletions
diff --git a/tracker-easy/tracker-easy-dialog.cpp b/tracker-easy/tracker-easy-dialog.cpp
index 4a49e194..b0870b50 100644
--- a/tracker-easy/tracker-easy-dialog.cpp
+++ b/tracker-easy/tracker-easy-dialog.cpp
@@ -68,6 +68,19 @@ namespace EasyTracker
tie_setting(s.iVertexTopLeftY, ui.iSpinVertexTopLeftY);
tie_setting(s.iVertexTopLeftZ, ui.iSpinVertexTopLeftZ);
+ // Clip model
+ tie_setting(s.iVertexClipTopX, ui.iSpinVertexClipTopX);
+ tie_setting(s.iVertexClipTopY, ui.iSpinVertexClipTopY);
+ tie_setting(s.iVertexClipTopZ, ui.iSpinVertexClipTopZ);
+
+ tie_setting(s.iVertexClipMiddleX, ui.iSpinVertexClipMiddleX);
+ tie_setting(s.iVertexClipMiddleY, ui.iSpinVertexClipMiddleY);
+ tie_setting(s.iVertexClipMiddleZ, ui.iSpinVertexClipMiddleZ);
+
+ tie_setting(s.iVertexClipBottomX, ui.iSpinVertexClipBottomX);
+ tie_setting(s.iVertexClipBottomY, ui.iSpinVertexClipBottomY);
+ tie_setting(s.iVertexClipBottomZ, ui.iSpinVertexClipBottomZ);
+
tie_setting(s.fov, ui.fov);
tie_setting(s.debug, ui.debug);
@@ -87,10 +100,12 @@ namespace EasyTracker
connect(ui.iRadioButtonCustomModelThree, &QRadioButton::clicked, this, &Dialog::UpdateCustomModelControls);
connect(ui.iRadioButtonCustomModelFour, &QRadioButton::clicked, this, &Dialog::UpdateCustomModelControls);
connect(ui.iRadioButtonCustomModelFive, &QRadioButton::clicked, this, &Dialog::UpdateCustomModelControls);
+ connect(ui.iRadioButtonClipModelThree, &QRadioButton::clicked, this, &Dialog::UpdateCustomModelControls);
tie_setting(s.iCustomModelThree, ui.iRadioButtonCustomModelThree);
tie_setting(s.iCustomModelFour, ui.iRadioButtonCustomModelFour);
tie_setting(s.iCustomModelFive, ui.iRadioButtonCustomModelFive);
+ tie_setting(s.iClipModelThree, ui.iRadioButtonClipModelThree);
for (unsigned k = 0; k < cv::SOLVEPNP_MAX_COUNT; k++)
@@ -111,20 +126,49 @@ namespace EasyTracker
ui.iGroupBoxCenter->hide();
ui.iGroupBoxTopRight->hide();
ui.iGroupBoxTopLeft->hide();
+ ui.iGroupBoxTop->show();
+ ui.iGroupBoxRight->show();
+ ui.iGroupBoxLeft->show();
+ ui.iGroupBoxClipTop->hide();
+ ui.iGroupBoxClipMiddle->hide();
+ ui.iGroupBoxClipBottom->hide();
}
else if (ui.iRadioButtonCustomModelFour->isChecked())
{
ui.iGroupBoxCenter->show();
ui.iGroupBoxTopRight->hide();
ui.iGroupBoxTopLeft->hide();
+ ui.iGroupBoxTop->show();
+ ui.iGroupBoxRight->show();
+ ui.iGroupBoxLeft->show();
+ ui.iGroupBoxClipTop->hide();
+ ui.iGroupBoxClipMiddle->hide();
+ ui.iGroupBoxClipBottom->hide();
}
else if (ui.iRadioButtonCustomModelFive->isChecked())
{
ui.iGroupBoxCenter->hide();
ui.iGroupBoxTopRight->show();
ui.iGroupBoxTopLeft->show();
+ ui.iGroupBoxTop->show();
+ ui.iGroupBoxRight->show();
+ ui.iGroupBoxLeft->show();
+ ui.iGroupBoxClipTop->hide();
+ ui.iGroupBoxClipMiddle->hide();
+ ui.iGroupBoxClipBottom->hide();
+ }
+ else if (ui.iRadioButtonClipModelThree->isChecked())
+ {
+ ui.iGroupBoxTop->hide();
+ ui.iGroupBoxRight->hide();
+ ui.iGroupBoxLeft->hide();
+ ui.iGroupBoxCenter->hide();
+ ui.iGroupBoxTopRight->hide();
+ ui.iGroupBoxTopLeft->hide();
+ ui.iGroupBoxClipTop->show();
+ ui.iGroupBoxClipMiddle->show();
+ ui.iGroupBoxClipBottom->show();
}
-
}