#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

@@ -569,6 +569,8 @@ void RimViewLinker::updateCamera(RimView* sourceView)
}
}
destinationViewer->updateParallelProjectionSettings(sourceView->viewer());
destinationViewer->update();
}
}

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

View File

@@ -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();