mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5019 2D Intersection views based on separate intersection results now respects the animation toolbar
This commit is contained in:
parent
eed9f6abad
commit
4bafefa225
@ -85,6 +85,7 @@ void RivIntersectionBoxPartMgr::applySingleColorEffect()
|
||||
void RivIntersectionBoxPartMgr::updateCellResultColor( size_t timeStepIndex )
|
||||
{
|
||||
RivIntersectionResultsColoringTools::updateCellResultColorStatic( timeStepIndex,
|
||||
true,
|
||||
m_rimIntersectionBox,
|
||||
m_intersectionBoxGenerator.p(),
|
||||
nullptr,
|
||||
|
@ -154,6 +154,7 @@ void RivIntersectionPartMgr::updateCellResultColor( size_t
|
||||
const RivTernaryScalarMapper* ternaryColorMapper )
|
||||
{
|
||||
RivIntersectionResultsColoringTools::updateCellResultColorStatic( timeStepIndex,
|
||||
!m_isFlattened,
|
||||
m_rimCrossSection,
|
||||
m_crossSectionGenerator.p(),
|
||||
scalarColorMapper,
|
||||
|
@ -50,6 +50,7 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivIntersectionResultsColoringTools::updateCellResultColorStatic(
|
||||
size_t timeStepIndex,
|
||||
bool useSeparateIntersectionResDefTimeStep,
|
||||
RimIntersectionHandle* rimIntersectionHandle,
|
||||
const RivIntersectionGeometryGeneratorIF* intersectionGeomGenIF,
|
||||
const cvf::ScalarMapper* explicitScalarColorMapper,
|
||||
@ -87,7 +88,10 @@ void RivIntersectionResultsColoringTools::updateCellResultColorStatic(
|
||||
|
||||
if ( !scalarColorMapper ) scalarColorMapper = sepResDef->regularLegendConfig()->scalarMapper();
|
||||
if ( !ternaryColorMapper ) ternaryColorMapper = sepResDef->ternaryLegendConfig()->scalarMapper();
|
||||
timeStepIndex = sepResDef->timeStep();
|
||||
if ( useSeparateIntersectionResDefTimeStep )
|
||||
{
|
||||
timeStepIndex = sepResDef->timeStep();
|
||||
}
|
||||
}
|
||||
|
||||
// Ordinary result
|
||||
|
@ -43,8 +43,9 @@ class ScalarMapper;
|
||||
class RivIntersectionResultsColoringTools
|
||||
{
|
||||
public:
|
||||
static void updateCellResultColorStatic( size_t timeStepIndex,
|
||||
RimIntersectionHandle* rimIntersectionHandle,
|
||||
static void updateCellResultColorStatic( size_t timeStepIndex,
|
||||
bool useSeparateIntersectionResDefTimeStep,
|
||||
RimIntersectionHandle* rimIntersectionHandle,
|
||||
const RivIntersectionGeometryGeneratorIF* intersectionGeomGenIF,
|
||||
const cvf::ScalarMapper* explicitScalarColorMapper,
|
||||
const RivTernaryScalarMapper* explicitTernaryColorMapper,
|
||||
|
Loading…
Reference in New Issue
Block a user