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 )
|
void RivIntersectionBoxPartMgr::updateCellResultColor( size_t timeStepIndex )
|
||||||
{
|
{
|
||||||
RivIntersectionResultsColoringTools::updateCellResultColorStatic( timeStepIndex,
|
RivIntersectionResultsColoringTools::updateCellResultColorStatic( timeStepIndex,
|
||||||
|
true,
|
||||||
m_rimIntersectionBox,
|
m_rimIntersectionBox,
|
||||||
m_intersectionBoxGenerator.p(),
|
m_intersectionBoxGenerator.p(),
|
||||||
nullptr,
|
nullptr,
|
||||||
|
@ -154,6 +154,7 @@ void RivIntersectionPartMgr::updateCellResultColor( size_t
|
|||||||
const RivTernaryScalarMapper* ternaryColorMapper )
|
const RivTernaryScalarMapper* ternaryColorMapper )
|
||||||
{
|
{
|
||||||
RivIntersectionResultsColoringTools::updateCellResultColorStatic( timeStepIndex,
|
RivIntersectionResultsColoringTools::updateCellResultColorStatic( timeStepIndex,
|
||||||
|
!m_isFlattened,
|
||||||
m_rimCrossSection,
|
m_rimCrossSection,
|
||||||
m_crossSectionGenerator.p(),
|
m_crossSectionGenerator.p(),
|
||||||
scalarColorMapper,
|
scalarColorMapper,
|
||||||
|
@ -50,6 +50,7 @@
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RivIntersectionResultsColoringTools::updateCellResultColorStatic(
|
void RivIntersectionResultsColoringTools::updateCellResultColorStatic(
|
||||||
size_t timeStepIndex,
|
size_t timeStepIndex,
|
||||||
|
bool useSeparateIntersectionResDefTimeStep,
|
||||||
RimIntersectionHandle* rimIntersectionHandle,
|
RimIntersectionHandle* rimIntersectionHandle,
|
||||||
const RivIntersectionGeometryGeneratorIF* intersectionGeomGenIF,
|
const RivIntersectionGeometryGeneratorIF* intersectionGeomGenIF,
|
||||||
const cvf::ScalarMapper* explicitScalarColorMapper,
|
const cvf::ScalarMapper* explicitScalarColorMapper,
|
||||||
@ -87,8 +88,11 @@ void RivIntersectionResultsColoringTools::updateCellResultColorStatic(
|
|||||||
|
|
||||||
if ( !scalarColorMapper ) scalarColorMapper = sepResDef->regularLegendConfig()->scalarMapper();
|
if ( !scalarColorMapper ) scalarColorMapper = sepResDef->regularLegendConfig()->scalarMapper();
|
||||||
if ( !ternaryColorMapper ) ternaryColorMapper = sepResDef->ternaryLegendConfig()->scalarMapper();
|
if ( !ternaryColorMapper ) ternaryColorMapper = sepResDef->ternaryLegendConfig()->scalarMapper();
|
||||||
|
if ( useSeparateIntersectionResDefTimeStep )
|
||||||
|
{
|
||||||
timeStepIndex = sepResDef->timeStep();
|
timeStepIndex = sepResDef->timeStep();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Ordinary result
|
// Ordinary result
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@ class RivIntersectionResultsColoringTools
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static void updateCellResultColorStatic( size_t timeStepIndex,
|
static void updateCellResultColorStatic( size_t timeStepIndex,
|
||||||
|
bool useSeparateIntersectionResDefTimeStep,
|
||||||
RimIntersectionHandle* rimIntersectionHandle,
|
RimIntersectionHandle* rimIntersectionHandle,
|
||||||
const RivIntersectionGeometryGeneratorIF* intersectionGeomGenIF,
|
const RivIntersectionGeometryGeneratorIF* intersectionGeomGenIF,
|
||||||
const cvf::ScalarMapper* explicitScalarColorMapper,
|
const cvf::ScalarMapper* explicitScalarColorMapper,
|
||||||
|
Loading…
Reference in New Issue
Block a user