#2109 Remove automatic color on well labels on background change

This commit is contained in:
Rebecca Cox
2017-11-13 07:55:22 +01:00
parent cc4041b09b
commit 75c506e257
5 changed files with 0 additions and 47 deletions
@@ -59,11 +59,6 @@
#include <QLabel>
#include <QMouseEvent>
#include <QProgressBar>
#include "RimWellPathCollection.h"
#include "RimWellPath.h"
#include "RivWellPathPartMgr.h"
#include "RimSimWellInViewCollection.h"
#include "RimEclipseView.h"
using cvf::ManipulatorTrackball;
@@ -785,28 +780,6 @@ cvf::Model* RiuViewer::gridBoxModel() const
void RiuViewer::updateAnnotationItems()
{
updateTextAndTickMarkColorForOverlayItems();
updateWellPathTextColor();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuViewer::updateWellPathTextColor()
{
RimView* rimView = ownerReservoirView();
if (!rimView) return;
cvf::Color3f color = computeContrastColor();
RimWellPathCollection* wellPathCollection = rimView->wellPathCollection();
if (wellPathCollection)
{
for (RimWellPath* path : wellPathCollection->wellPaths())
{
path->partMgr()->updateWellLabelTextColor(color);
}
}
}
//--------------------------------------------------------------------------------------------------