#1520 Show completion type cells as transparent

This commit is contained in:
Bjørnar Grip Fjær
2017-06-01 13:46:22 +02:00
parent 8e6322b500
commit e5b7196537
3 changed files with 21 additions and 0 deletions

View File

@@ -262,6 +262,18 @@ void RivGridPartMgr::updateCellResultColor(size_t timeStepIndex, RimEclipseCellC
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();
RivScalarMapperUtils::applyTextureResultsToPart(m_surfaceFaces.p(),
m_surfaceFacesTextureCoords.p(),