#973 Linked views : Update parallel projection settings in linked views

This commit is contained in:
Magne Sjaastad
2016-11-24 14:01:47 +01:00
parent 6adc7eab7c
commit ec3e05e87f
3 changed files with 16 additions and 0 deletions

View File

@@ -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);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------