Commit c841cf8d authored by Mathieu Tillet's avatar Mathieu Tillet
Browse files

Update the colormap scale when masking

When the instrument view is modified so that the color map is updated,
it makes sure the scale of the color map shown in the render tab is
updated to the new values too.
parent 32921529
......@@ -765,6 +765,7 @@ void InstrumentWidgetMaskTab::applyMask() {
storeMask();
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
m_instrWidget->getInstrumentActor().applyMaskWorkspace();
m_instrWidget->setupColorMap();
enableApplyButtons();
QApplication::restoreOverrideCursor();
}
......@@ -774,6 +775,7 @@ void InstrumentWidgetMaskTab::applyMask() {
*/
void InstrumentWidgetMaskTab::applyMaskToView() {
storeMask();
m_instrWidget->setupColorMap();
enableApplyButtons();
}
......@@ -785,6 +787,7 @@ void InstrumentWidgetMaskTab::clearMask() {
m_detectorsToGroup.clear();
m_instrWidget->getInstrumentActor().clearMasks();
m_instrWidget->getInstrumentActor().updateColors();
m_instrWidget->setupColorMap();
m_instrWidget->updateInstrumentView();
enableApplyButtons();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment