mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#2109 Remove automatic color on well labels on background change
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user