mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Caf: Added constructors/destructors to navigation policies
This commit is contained in:
parent
8f92dfd0c0
commit
f3eb304d66
@ -44,6 +44,21 @@
|
||||
#include "cvfManipulatorTrackball.h"
|
||||
|
||||
#include <QInputEvent>
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::CadNavigation::CadNavigation()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::CadNavigation::~CadNavigation()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -44,6 +44,9 @@ namespace caf
|
||||
|
||||
class CadNavigation : public TrackBallBasedNavigation
|
||||
{
|
||||
public:
|
||||
CadNavigation();
|
||||
virtual ~CadNavigation();
|
||||
protected:
|
||||
virtual void init();
|
||||
virtual bool handleInputEvent(QInputEvent* inputEvent);
|
||||
|
@ -57,6 +57,22 @@ using cvf::ManipulatorTrackball;
|
||||
///
|
||||
//==================================================================================================
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::CeetronNavigation::CeetronNavigation()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::CeetronNavigation::~CeetronNavigation()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Repositions and orients the camera to view the rotation point along the
|
||||
/// direction "alongDirection". The distance to the rotation point is maintained.
|
||||
|
@ -48,6 +48,9 @@ namespace caf
|
||||
|
||||
class CeetronNavigation : public NavigationPolicy
|
||||
{
|
||||
public:
|
||||
CeetronNavigation();
|
||||
virtual ~CeetronNavigation();
|
||||
protected:
|
||||
// General navigation policy reimplememtation
|
||||
virtual void init();
|
||||
|
@ -44,6 +44,23 @@
|
||||
|
||||
#include <QInputEvent>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::CeetronPlusNavigation::CeetronPlusNavigation()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::CeetronPlusNavigation::~CeetronPlusNavigation()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -42,6 +42,9 @@ namespace caf
|
||||
|
||||
class CeetronPlusNavigation : public TrackBallBasedNavigation
|
||||
{
|
||||
public:
|
||||
CeetronPlusNavigation();
|
||||
virtual ~CeetronPlusNavigation();
|
||||
protected:
|
||||
virtual bool handleInputEvent(QInputEvent* inputEvent);
|
||||
};
|
||||
|
@ -39,6 +39,23 @@
|
||||
#include "cafViewer.h"
|
||||
#include "cvfScene.h"
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::NavigationPolicy::NavigationPolicy()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::NavigationPolicy::~NavigationPolicy()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -55,6 +55,10 @@ namespace caf
|
||||
|
||||
class NavigationPolicy : public cvf::Object
|
||||
{
|
||||
public:
|
||||
NavigationPolicy();
|
||||
virtual ~NavigationPolicy();
|
||||
|
||||
friend class Viewer;
|
||||
public: // protected: // Should be protected but this friending does not work on gcc 4.1.2
|
||||
|
||||
|
@ -47,6 +47,24 @@
|
||||
|
||||
#include <QInputEvent>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::TrackBallBasedNavigation::TrackBallBasedNavigation()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
caf::TrackBallBasedNavigation::~TrackBallBasedNavigation()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -298,5 +316,3 @@ void caf::TrackBallBasedNavigation::zoomAlongRay(cvf::Ray* ray, int delta)
|
||||
m_viewer->navigationPolicyUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -47,6 +47,9 @@ namespace caf
|
||||
|
||||
class TrackBallBasedNavigation: public NavigationPolicy
|
||||
{
|
||||
public:
|
||||
TrackBallBasedNavigation();
|
||||
virtual ~TrackBallBasedNavigation();
|
||||
protected:
|
||||
// General navigation policy overrides
|
||||
virtual void init();
|
||||
|
Loading…
Reference in New Issue
Block a user