mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Bubble plot (#5452)
Bubble plot issues #5209 #2285 #5308 Co-authored-by: Kristian Bendiksen <kristian.bendiksen@gmail.com>
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
|
||||
#include "RivSimWellPipesPartMgr.h"
|
||||
#include "RivWellConnectionsPartMgr.h"
|
||||
#include "RivWellDiskPartMgr.h"
|
||||
#include "RivWellHeadPartMgr.h"
|
||||
#include "RivWellSpheresPartMgr.h"
|
||||
|
||||
@@ -63,6 +64,7 @@ void RivReservoirSimWellsPartMgr::clearGeometryCache()
|
||||
m_wellPipesPartMgrs.clear();
|
||||
m_wellHeadPartMgrs.clear();
|
||||
m_wellSpheresPartMgrs.clear();
|
||||
m_wellDiskPartMgrs.clear();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -112,6 +114,25 @@ void RivReservoirSimWellsPartMgr::appendDynamicGeometryPartsToModel( cvf::ModelB
|
||||
m_reservoirView->displayCoordTransform().p() );
|
||||
}
|
||||
|
||||
// Well disks
|
||||
if ( m_reservoirView->wellCollection()->wells.size() != m_wellDiskPartMgrs.size() )
|
||||
{
|
||||
clearGeometryCache();
|
||||
|
||||
for ( size_t i = 0; i < m_reservoirView->wellCollection()->wells.size(); ++i )
|
||||
{
|
||||
RivWellDiskPartMgr* wellDiskMgr = new RivWellDiskPartMgr( m_reservoirView->wellCollection()->wells[i] );
|
||||
m_wellDiskPartMgrs.push_back( wellDiskMgr );
|
||||
}
|
||||
}
|
||||
|
||||
for ( size_t wIdx = 0; wIdx != m_wellDiskPartMgrs.size(); ++wIdx )
|
||||
{
|
||||
m_wellDiskPartMgrs[wIdx]->appendDynamicGeometryPartsToModel( model,
|
||||
frameIndex,
|
||||
m_reservoirView->displayCoordTransform().p() );
|
||||
}
|
||||
|
||||
// Well spheres
|
||||
|
||||
if ( m_reservoirView->wellCollection()->wells.size() != m_wellSpheresPartMgrs.size() )
|
||||
|
||||
Reference in New Issue
Block a user