#5019 2D Intersection views based on separate intersection results now respects the animation toolbar

This commit is contained in:
Jacob Støren 2019-11-25 13:02:35 +01:00
parent eed9f6abad
commit 4bafefa225
4 changed files with 10 additions and 3 deletions

View File

@ -85,6 +85,7 @@ void RivIntersectionBoxPartMgr::applySingleColorEffect()
void RivIntersectionBoxPartMgr::updateCellResultColor( size_t timeStepIndex )
{
RivIntersectionResultsColoringTools::updateCellResultColorStatic( timeStepIndex,
true,
m_rimIntersectionBox,
m_intersectionBoxGenerator.p(),
nullptr,

View File

@ -154,6 +154,7 @@ void RivIntersectionPartMgr::updateCellResultColor( size_t
const RivTernaryScalarMapper* ternaryColorMapper )
{
RivIntersectionResultsColoringTools::updateCellResultColorStatic( timeStepIndex,
!m_isFlattened,
m_rimCrossSection,
m_crossSectionGenerator.p(),
scalarColorMapper,

View File

@ -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

View File

@ -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,