mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
This commit is contained in:
@@ -19,37 +19,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cvfBase.h"
|
||||
#include "cafNavigationPolicy.h"
|
||||
#include "cvfManipulatorTrackball.h"
|
||||
#include "cvfRay.h"
|
||||
#include "cafTrackBallBasedNavigation.h"
|
||||
|
||||
|
||||
class RiuRmsNavigation : public caf::NavigationPolicy
|
||||
class RiuRmsNavigation : public caf::TrackBallBasedNavigation
|
||||
{
|
||||
public:
|
||||
RiuRmsNavigation();
|
||||
virtual ~RiuRmsNavigation();
|
||||
protected:
|
||||
// General navigation policy overrides
|
||||
virtual void init();
|
||||
virtual bool handleInputEvent(QInputEvent* inputEvent);
|
||||
|
||||
virtual void setView( const cvf::Vec3d& alongDirection, const cvf::Vec3d& upDirection );
|
||||
virtual cvf::Vec3d pointOfInterest();
|
||||
virtual void setPointOfInterest(cvf::Vec3d poi);
|
||||
|
||||
// PdvNavigation specific
|
||||
void initializeRotationCenter();
|
||||
cvf::ref<cvf::ManipulatorTrackball> m_trackball;
|
||||
bool m_isRotCenterInitialized;
|
||||
cvf::Vec3d m_pointOfInterest;
|
||||
|
||||
bool m_isNavigating;
|
||||
bool m_hasMovedMouseDuringNavigation;
|
||||
|
||||
// Handle mid mouse button zoom
|
||||
void zoomAlongRay( cvf::Ray* ray, int delta );
|
||||
bool m_isZooming;
|
||||
cvf::ref<cvf::Ray> m_zoomRay;
|
||||
int m_lastPosX; /// Previous mouse position
|
||||
int m_lastPosY;
|
||||
|
||||
virtual bool handleInputEvent(QInputEvent* inputEvent);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user