mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2715 Add direct access to RigFemPartCollection from a GeoMechView
This commit is contained in:
@@ -220,7 +220,7 @@ void RimGeoMechView::createDisplayModel()
|
||||
|
||||
// Well path model
|
||||
|
||||
cvf::BoundingBox femBBox = geoMechCase()->geoMechData()->femParts()->boundingBox();
|
||||
cvf::BoundingBox femBBox = femParts()->boundingBox();
|
||||
|
||||
m_wellPathPipeVizModel->removeAllParts();
|
||||
addWellPathsToModel(m_wellPathPipeVizModel.p(), femBBox);
|
||||
@@ -285,7 +285,7 @@ void RimGeoMechView::updateCurrentTimeStep()
|
||||
cvf::ref<cvf::ModelBasicList> wellPathModelBasicList = new cvf::ModelBasicList;
|
||||
wellPathModelBasicList->setName(name);
|
||||
|
||||
cvf::BoundingBox femBBox = geoMechCase()->geoMechData()->femParts()->boundingBox();
|
||||
cvf::BoundingBox femBBox = femParts()->boundingBox();
|
||||
addDynamicWellPathsToModel(wellPathModelBasicList.p(), femBBox);
|
||||
|
||||
frameScene->addModel(wellPathModelBasicList.p());
|
||||
@@ -530,6 +530,32 @@ std::vector<RimLegendConfig*> RimGeoMechView::legendConfigs() const
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
const RigFemPartCollection* RimGeoMechView::femParts() const
|
||||
{
|
||||
if (m_geomechCase && m_geomechCase->geoMechData())
|
||||
{
|
||||
return m_geomechCase->geoMechData()->femParts();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RigFemPartCollection* RimGeoMechView::femParts()
|
||||
{
|
||||
if (m_geomechCase && m_geomechCase->geoMechData())
|
||||
{
|
||||
return m_geomechCase->geoMechData()->femParts();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user