mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Z-Scale working for geomech views
Alligned GeoMech and Reservoir views through RimView
This commit is contained in:
@@ -106,6 +106,8 @@ void RimGeoMechView::updateViewerWidgetWindowTitle()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimGeoMechView::loadDataAndUpdate()
|
||||
{
|
||||
updateScaleTransform();
|
||||
|
||||
if (m_geomechCase)
|
||||
{
|
||||
m_geomechCase->openGeoMechCase();
|
||||
@@ -130,12 +132,10 @@ void RimGeoMechView::loadDataAndUpdate()
|
||||
|
||||
void RimGeoMechView::updateScaleTransform()
|
||||
{
|
||||
CVF_ASSERT(m_scaleTransform.notNull());
|
||||
|
||||
cvf::Mat4d scale = cvf::Mat4d::IDENTITY;
|
||||
scale(2, 2) = scaleZ();
|
||||
|
||||
m_scaleTransform->setLocalTransform(scale);
|
||||
this->scaleTransform()->setLocalTransform(scale);
|
||||
|
||||
if (m_viewer) m_viewer->updateCachedValuesInScene();
|
||||
}
|
||||
@@ -406,6 +406,14 @@ bool RimGeoMechView::isTimeStepDependentDataVisible()
|
||||
return (cellResult->resultFieldName() != "");
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Transform* RimGeoMechView::scaleTransform()
|
||||
{
|
||||
return m_scaleTransform.p();
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user