mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-14 01:13:52 -06:00
#5478 Make well measurement visibility independent of well path visibility
This commit is contained in:
parent
84fbd94563
commit
e1c4f98059
@ -853,18 +853,21 @@ void RivWellPathPartMgr::appendDynamicGeometryPartsToModel( cvf::ModelBasicList*
|
||||
|
||||
if ( m_rimWellPath.isNull() ) return;
|
||||
|
||||
if ( wellPathCollection->wellPathVisibility() == RimWellPathCollection::FORCE_ALL_OFF ) return;
|
||||
|
||||
if ( wellPathCollection->wellPathVisibility() != RimWellPathCollection::FORCE_ALL_ON &&
|
||||
m_rimWellPath->showWellPath() == false )
|
||||
{
|
||||
return;
|
||||
}
|
||||
bool showWellPath = ( wellPathCollection->isActive() &&
|
||||
( ( wellPathCollection->wellPathVisibility() != RimWellPathCollection::FORCE_ALL_OFF ) ||
|
||||
( wellPathCollection->wellPathVisibility() == RimWellPathCollection::FORCE_ALL_ON &&
|
||||
m_rimWellPath->showWellPath() ) ) );
|
||||
|
||||
if ( !isWellPathWithinBoundingBox( wellPathClipBoundingBox ) ) return;
|
||||
|
||||
appendPerforationsToModel( model, timeStepIndex, displayCoordTransform, characteristicCellSize, false );
|
||||
appendVirtualTransmissibilitiesToModel( model, timeStepIndex, displayCoordTransform, characteristicCellSize );
|
||||
if ( showWellPath )
|
||||
{
|
||||
// Only show perforations and virtual transmissibilities when well path is shown
|
||||
appendPerforationsToModel( model, timeStepIndex, displayCoordTransform, characteristicCellSize, false );
|
||||
appendVirtualTransmissibilitiesToModel( model, timeStepIndex, displayCoordTransform, characteristicCellSize );
|
||||
}
|
||||
|
||||
// Well measurements visibility is independent of well path visibility
|
||||
appendWellMeasurementsToModel( model, displayCoordTransform, characteristicCellSize );
|
||||
|
||||
RimGridView* gridView = dynamic_cast<RimGridView*>( m_rimView.p() );
|
||||
|
@ -86,8 +86,6 @@ void RivWellPathsPartMgr::appendDynamicGeometryPartsToModel( cvf::ModelBasicList
|
||||
double characteristicCellSize,
|
||||
const cvf::BoundingBox& wellPathClipBoundingBox )
|
||||
{
|
||||
if ( !isWellPathVisible() ) return;
|
||||
|
||||
createPartManagersIfRequired();
|
||||
|
||||
for ( auto& partMgr : m_wellPathsPartMgrs )
|
||||
|
Loading…
Reference in New Issue
Block a user