0000772: Navigation style suggestion - do not change cursor location when you are controling view

This commit is contained in:
wmayer
2012-07-07 00:28:03 +02:00
parent 4777b00b59
commit 72fa9db2dd
7 changed files with 65 additions and 0 deletions

View File

@@ -113,6 +113,9 @@ public:
void setSensitivity(float);
float getSensitivity() const;
void setResetCursorPosition(SbBool);
SbBool isResetCursorPosition() const;
void setZoomInverted(SbBool);
SbBool isZoomInverted() const;
void setZoomStep(float);
@@ -175,6 +178,8 @@ protected:
void doZoom(SoCamera * camera, SbBool forward, const SbVec2f& pos);
void spin(const SbVec2f & pointerpos);
SbBool doSpin();
void moveCursorPosition();
void saveCursorPosition(const SoEvent * const ev);
SbBool handleEventInForeground(const SoEvent* const e);
virtual SbBool processSoEvent(const SoEvent * const ev);
@@ -195,6 +200,8 @@ protected:
View3DInventorViewer* viewer;
ViewerMode currentmode;
SbVec2f lastmouseposition;
SbVec2s globalPos;
SbVec2s localPos;
SbPlane panningplane;
SbTime prevRedrawTime;
SbTime centerTime;