mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Set default background color of contour maps to off-white
This commit is contained in:
parent
a1705c5e39
commit
6374708520
@ -755,6 +755,14 @@ void Rim3dView::createHighlightAndGridBoxDisplayModel()
|
||||
m_viewer->showGridBox(m_showGridBox());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void Rim3dView::setBackgroundColor(const cvf::Color3f& newBackgroundColor)
|
||||
{
|
||||
m_backgroundColor = newBackgroundColor;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -106,6 +106,7 @@ public:
|
||||
void setSurfOnlyDrawstyle();
|
||||
void setFaultMeshSurfDrawstyle();
|
||||
void setSurfaceDrawstyle();
|
||||
void setBackgroundColor(const cvf::Color3f& newBackgroundColor);
|
||||
|
||||
void disableLighting(bool disable);
|
||||
bool isLightingDisabled() const;
|
||||
@ -164,7 +165,7 @@ protected:
|
||||
void createHighlightAndGridBoxDisplayModel();
|
||||
|
||||
// Implementation of RiuViewerToViewInterface
|
||||
cvf::Color3f backgroundColor() const override { return m_backgroundColor(); }
|
||||
cvf::Color3f backgroundColor() const override { return m_backgroundColor(); }
|
||||
void applyBackgroundColor();
|
||||
|
||||
// Abstract methods to implement in subclasses
|
||||
|
@ -322,6 +322,7 @@ Rim2dEclipseView* RimEclipseCase::create2dContourMapFrom3dView(const RimEclipseV
|
||||
CVF_ASSERT(contourMap);
|
||||
|
||||
contourMap->setEclipseCase(this);
|
||||
contourMap->setBackgroundColor(cvf::Color3f(1.0f, 1.0f, 0.98f)); // Ignore original view background
|
||||
|
||||
caf::PdmDocument::updateUiIconStateRecursively(contourMap);
|
||||
|
||||
@ -358,6 +359,7 @@ Rim2dEclipseView* RimEclipseCase::create2dContourMap()
|
||||
contourMap->cellEdgeResult()->setResultVariable("MULT");
|
||||
contourMap->cellEdgeResult()->setActive(false);
|
||||
contourMap->fractureColors()->setDefaultResultName();
|
||||
contourMap->setBackgroundColor(cvf::Color3f(1.0f, 1.0f, 0.98f));
|
||||
}
|
||||
|
||||
caf::PdmDocument::updateUiIconStateRecursively(contourMap);
|
||||
|
Loading…
Reference in New Issue
Block a user