WIP: Improved support for parallel projection. #168

Near plane negative to show everything
ZoomAlongRay now works for parallel projection (only implemented in
ceetron Plus)
This commit is contained in:
Jacob Støren
2015-12-13 20:55:37 +01:00
committed by Jacob Støren
parent 23bfb46c4c
commit 5cdf307d4e
5 changed files with 86 additions and 8 deletions

View File

@@ -77,7 +77,10 @@ protected:
bool m_isNavigating;
bool m_hasMovedMouseDuringNavigation;
void cvfEventPos(int qtX, int qtY, int* x, int* y);
// Zooming towards cursor
cvf::ref<cvf::Ray> createZoomRay(int cvfXPos, int cvfYPos);
void zoomAlongRay( cvf::Ray* ray, int delta );
bool m_isZooming;
cvf::ref<cvf::Ray> m_zoomRay;