mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#166) Added crossSections to geomech view
This commit is contained in:
@@ -239,6 +239,12 @@ void RimGeoMechView::createDisplayModel()
|
|||||||
mainScene->addModel(wellPathModel.p());
|
mainScene->addModel(wellPathModel.p());
|
||||||
|
|
||||||
|
|
||||||
|
// Cross sections
|
||||||
|
|
||||||
|
m_crossSectionModel->removeAllParts();
|
||||||
|
crossSectionCollection->appendPartsToModel(m_crossSectionModel.p(), scaleTransform());
|
||||||
|
m_viewer->addStaticModel(m_crossSectionModel.p());
|
||||||
|
|
||||||
// If the animation was active before recreating everything, make viewer view current frame
|
// If the animation was active before recreating everything, make viewer view current frame
|
||||||
|
|
||||||
if (isTimeStepDependentDataVisible())
|
if (isTimeStepDependentDataVisible())
|
||||||
@@ -294,6 +300,11 @@ void RimGeoMechView::updateCurrentTimeStep()
|
|||||||
else
|
else
|
||||||
m_vizLogic->updateStaticCellColors(m_currentTimeStep());
|
m_vizLogic->updateStaticCellColors(m_currentTimeStep());
|
||||||
|
|
||||||
|
if (this->cellResult()->hasResult())
|
||||||
|
crossSectionCollection->updateCellResultColor(m_currentTimeStep);
|
||||||
|
else
|
||||||
|
crossSectionCollection->applySingleColorEffect();
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user