#2109 Remove automatic color on well labels on background change

This commit is contained in:
Rebecca Cox 2017-11-09 13:50:55 +01:00
parent cc4041b09b
commit 75c506e257
5 changed files with 0 additions and 47 deletions

View File

@ -460,21 +460,6 @@ size_t RivWellPathPartMgr::segmentIndexFromTriangleIndex(size_t triangleIndex)
return m_pipeBranchData.m_pipeGeomGenerator->segmentIndexFromTriangleIndex(triangleIndex);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RivWellPathPartMgr::updateWellLabelTextColor(cvf::Color3f color)
{
if (m_wellLabelPart.p())
{
cvf::DrawableText* drawableText = dynamic_cast<cvf::DrawableText*>(m_wellLabelPart->drawable());
if (drawableText)
{
drawableText->setTextColor(color);
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -72,8 +72,6 @@ public:
size_t segmentIndexFromTriangleIndex(size_t triangleIndex);
void updateWellLabelTextColor(cvf::Color3f color);
private:
void appendFishboneSubsPartsToModel(cvf::ModelBasicList* model,
const caf::DisplayCoordTransform* displayCoordTransform,

View File

@ -462,7 +462,6 @@ void RimEclipseView::createDisplayModel()
wellPathCollection()->appendStaticFracturePartsToModel(m_wellPathPipeVizModel.p(), this);
#endif // USE_PROTOTYPE_FEATURE_FRACTURES
m_wellPathPipeVizModel->updateBoundingBoxesRecursive();
m_viewer->updateWellPathTextColor();
m_viewer->addStaticModelOnce(m_wellPathPipeVizModel.p());
// Create Scenes from the frameModels

View File

@ -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);
}
}
}
//--------------------------------------------------------------------------------------------------

View File

@ -80,8 +80,6 @@ public:
void updateAnnotationItems();
void updateWellPathTextColor();
void showAnimationProgress(bool enable);
void removeAllColorLegends();