mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
#2109 Remove automatic color on well labels on background change
This commit is contained in:
parent
cc4041b09b
commit
75c506e257
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -80,8 +80,6 @@ public:
|
||||
|
||||
void updateAnnotationItems();
|
||||
|
||||
void updateWellPathTextColor();
|
||||
|
||||
void showAnimationProgress(bool enable);
|
||||
|
||||
void removeAllColorLegends();
|
||||
|
Loading…
Reference in New Issue
Block a user