mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
#14602 Contour map: Keep interactive panning when reloading a project
Viewer::setView() moves the camera to look straight at the point of interest. Panning does not move the point of interest, so this discarded the camera position restored from the project file. Only reset the view direction if the camera is not already oriented top-down, which is the case when a contour map has been rotated by a linked 3D view.
This commit is contained in:
1 parent
cf3dadacf7
commit
61117162da
4 files changed
+36
-4
No files matched your search
@@ -214,6 +214,7 @@ protected:
|
||||
virtual void setDefaultView();
|
||||
cvf::Mat4d cameraPosition() const;
|
||||
cvf::Vec3d cameraPointOfInterest() const;
|
||||
bool isCameraOriented( const cvf::Vec3d& viewDirection, const cvf::Vec3d& upDirection ) const;
|
||||
|
||||
void disableGridBoxField();
|
||||
void disablePerspectiveProjectionField();
|
||||
|
||||
Reference in new issue
Block a user