(#166) Added crossSections to geomech view

This commit is contained in:
Jacob Støren
2015-11-22 15:05:19 +01:00
parent 4d0c1d17b4
commit ed563fdce2

View File

@@ -239,6 +239,12 @@ void RimGeoMechView::createDisplayModel()
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 (isTimeStepDependentDataVisible())
@@ -294,6 +300,11 @@ void RimGeoMechView::updateCurrentTimeStep()
else
m_vizLogic->updateStaticCellColors(m_currentTimeStep());
if (this->cellResult()->hasResult())
crossSectionCollection->updateCellResultColor(m_currentTimeStep);
else
crossSectionCollection->applySingleColorEffect();
}
else
{