Skip to content
Snippets Groups Projects
Commit 3d62ce28 authored by even's avatar even
Browse files

Blurred segment display style update

parent 4c104780
No related branches found
No related tags found
No related merge requests found
......@@ -570,6 +570,7 @@ void BSDetectionWidget::keyPressEvent (QKeyEvent *event)
bsBoundsVisible = ! bsBoundsVisible;
cout << "Segments bounds "
<< (bsBoundsVisible ? "visible" : "hidden") << endl;
extract ();
}
else
{
......@@ -633,6 +634,7 @@ void BSDetectionWidget::keyPressEvent (QKeyEvent *event)
bsPointsVisible = ! bsPointsVisible;
cout << "Segments points "
<< (bsPointsVisible ? "visible" : "hidden") << endl;
displayDetectionResult ();
}
break;
......@@ -789,7 +791,7 @@ void BSDetectionWidget::writeDetectionResult ()
}
void BSDetectionWidget::displayDetectionResult (int hnum)
void BSDetectionWidget::displayDetectionResult ()
{
if (background == BACK_BLACK) augmentedImage.fill (qRgb (0, 0, 0));
else if (background == BACK_WHITE) augmentedImage.fill (qRgb (255, 255, 255));
......@@ -802,7 +804,7 @@ void BSDetectionWidget::displayDetectionResult (int hnum)
int index = 0;
vector<BlurredSegment *>::const_iterator it = bss.begin ();
while (it != bss.end ())
drawBlurredSegment (painter, *it++, index++ == hnum);
drawBlurredSegment (painter, *it++, index++ == exam);
}
else
drawBlurredSegment (painter, detector.getBlurredSegment ());
......@@ -841,7 +843,7 @@ void BSDetectionWidget::displayNext (int dir)
{
exam = (exam + dir) % size;
if (strucview != NULL) strucview->setExamined (exam);
displayDetectionResult (exam);
displayDetectionResult ();
}
}
......
......@@ -317,10 +317,9 @@ private:
void writeDetectionResult ();
/**
* \brief Displays the result of a detection.
* @param hnum Highlighted segment index (-1 if none).
* \brief Displays the result of the last detection.
*/
void displayDetectionResult (int hnum = -1);
void displayDetectionResult ();
/**
* \brief Highlights the next blurred segment in multi-selection mode.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment