Ternary legend : Added title

This commit is contained in:
Magne Sjaastad
2014-08-01 08:46:46 +02:00
parent 09f7868eb5
commit 8b04e2a2e8
5 changed files with 44 additions and 11 deletions

View File

@@ -40,6 +40,7 @@
#include "RiuViewer.h"
#include "RivReservoirPipesPartMgr.h"
#include "RivWellPathCollectionPartMgr.h"
#include "RivTernarySaturationOverlayItem.h"
#include "cafCadNavigation.h"
#include "cafCeetronPlusNavigation.h"
@@ -1508,6 +1509,7 @@ void RimReservoirView::updateMinMaxValuesAndAddLegendToView(QString legendLabel,
if (resultSlot->ternaryLegendConfig->legend())
{
resultSlot->ternaryLegendConfig->legend()->setTitle(cvfqt::Utils::toString(legendLabel));
m_viewer->addColorLegendToBottomLeftCorner(resultSlot->ternaryLegendConfig->legend());
}
}