mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1520 Show completion type cells as transparent
This commit is contained in:
parent
8e6322b500
commit
e5b7196537
@ -262,6 +262,18 @@ void RivGridPartMgr::updateCellResultColor(size_t timeStepIndex, RimEclipseCellC
|
|||||||
|
|
||||||
texturer.createTextureCoords(m_surfaceFacesTextureCoords.p());
|
texturer.createTextureCoords(m_surfaceFacesTextureCoords.p());
|
||||||
|
|
||||||
|
if (cellResultColors->isCompletionTypeSelected())
|
||||||
|
{
|
||||||
|
cvf::Vec2fArray& surfaceCoords = *m_surfaceFacesTextureCoords.p();
|
||||||
|
for (cvf::Vec2f& vec : surfaceCoords)
|
||||||
|
{
|
||||||
|
{
|
||||||
|
vec[1] = 0.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
m_opacityLevel = 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
const cvf::ScalarMapper* mapper = cellResultColors->legendConfig()->scalarMapper();
|
const cvf::ScalarMapper* mapper = cellResultColors->legendConfig()->scalarMapper();
|
||||||
RivScalarMapperUtils::applyTextureResultsToPart(m_surfaceFaces.p(),
|
RivScalarMapperUtils::applyTextureResultsToPart(m_surfaceFaces.p(),
|
||||||
m_surfaceFacesTextureCoords.p(),
|
m_surfaceFacesTextureCoords.p(),
|
||||||
|
@ -956,6 +956,14 @@ bool RimEclipseResultDefinition::isTernarySaturationSelected() const
|
|||||||
return isTernary;
|
return isTernary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
bool RimEclipseResultDefinition::isCompletionTypeSelected() const
|
||||||
|
{
|
||||||
|
return (m_resultType() == RimDefines::DYNAMIC_NATIVE && m_resultVariable() == RimDefines::completionTypeResultName());
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -84,6 +84,7 @@ public:
|
|||||||
bool hasDynamicResult() const;
|
bool hasDynamicResult() const;
|
||||||
bool hasResult() const;
|
bool hasResult() const;
|
||||||
bool isTernarySaturationSelected() const;
|
bool isTernarySaturationSelected() const;
|
||||||
|
bool isCompletionTypeSelected() const;
|
||||||
bool hasCategoryResult() const;
|
bool hasCategoryResult() const;
|
||||||
|
|
||||||
RimReservoirCellResultsStorage* currentGridCellResults() const;
|
RimReservoirCellResultsStorage* currentGridCellResults() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user