mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#973 Linked views : Update parallel projection settings in linked views
This commit is contained in:
@@ -569,6 +569,8 @@ void RimViewLinker::updateCamera(RimView* sourceView)
|
||||
}
|
||||
}
|
||||
|
||||
destinationViewer->updateParallelProjectionSettings(sourceView->viewer());
|
||||
|
||||
destinationViewer->update();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -740,6 +740,18 @@ cvf::OverlayItem* RiuViewer::pickFixedPositionedLegend(int winPosX, int winPosY)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuViewer::updateParallelProjectionSettings(RiuViewer* sourceViewer)
|
||||
{
|
||||
if (!sourceViewer || sourceViewer->m_navigationPolicy.isNull()) return;
|
||||
|
||||
cvf::Vec3d poi = sourceViewer->m_navigationPolicy->pointOfInterest();
|
||||
this->updateParallelProjectionHeightFromMoveZoom(poi);
|
||||
this->updateParallelProjectionCameraPosFromPointOfInterestMove(poi);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -94,6 +94,8 @@ public:
|
||||
|
||||
cvf::OverlayItem* pickFixedPositionedLegend(int winPosX, int winPosY);
|
||||
|
||||
void updateParallelProjectionSettings(RiuViewer* sourceViewer);
|
||||
|
||||
public slots:
|
||||
virtual void slotSetCurrentFrame(int frameIndex);
|
||||
virtual void slotEndAnimation();
|
||||
|
||||
Reference in New Issue
Block a user