1 #ifndef OPENCS_VIEW_CAMERACONTROLLER_H
2 #define OPENCS_VIEW_CAMERACONTROLLER_H
57 void setup(osg::Group* root,
unsigned int mask,
const osg::Vec3d& up);
62 virtual void update(
double dt) = 0;
108 void yaw(
double value);
109 void pitch(
double value);
110 void roll(
double value);
111 void translate(
const osg::Vec3d& offset);
130 void left(
bool active);
132 void right(
bool active);
152 void setCenter(
const osg::Vec3d& center);
170 void roll(
double value);
171 void translate(
const osg::Vec3d& offset);
172 void zoom(
double value);
189 void up(
bool active);
190 void left(
bool active);
191 void down(
bool active);
192 void right(
bool active);
unsigned int mPickingMask
Definition: cameracontroller.hpp:178
double mOrbitSpeed
Definition: cameracontroller.hpp:182
void rotateVertical(double value)
Definition: cameracontroller.cpp:684
void setSpeedMultiplier(double value)
Definition: cameracontroller.cpp:262
void forward(bool active)
Definition: cameracontroller.cpp:404
void handleMouseScrollEvent(int x)
Definition: cameracontroller.cpp:596
bool mLeft
Definition: cameracontroller.hpp:177
double getLinearSpeed() const
Definition: cameracontroller.cpp:237
void translate(const osg::Vec3d &offset)
Definition: cameracontroller.cpp:381
bool mForward
Definition: cameracontroller.hpp:118
unsigned int getPickingMask() const
Definition: cameracontroller.cpp:539
bool isActive() const
Definition: cameracontroller.cpp:49
bool getInverted() const
Definition: cameracontroller.cpp:64
void setCenter(const osg::Vec3d ¢er)
Definition: cameracontroller.cpp:544
bool mUp
Definition: cameracontroller.hpp:177
double mCameraSensitivity
Definition: cameracontroller.hpp:73
OrbitCameraController(QWidget *parent)
Definition: cameracontroller.cpp:448
void left(bool active)
Definition: cameracontroller.cpp:741
osg::Vec3d getCenter() const
Definition: cameracontroller.cpp:524
void alternateFast(bool active)
Definition: cameracontroller.cpp:434
double getSecondaryMovementMultiplier() const
Definition: cameracontroller.cpp:69
void setWheelMovementMultiplier(double value)
Definition: cameracontroller.cpp:111
bool mInitialized
Definition: cameracontroller.hpp:174
bool mActive
Definition: cameracontroller.hpp:72
FreeCameraController(QWidget *parent)
Definition: cameracontroller.cpp:161
double getCameraSensitivity() const
Definition: cameracontroller.cpp:59
bool mFast
Definition: cameracontroller.hpp:117
void naviPrimary(bool active)
Definition: cameracontroller.cpp:394
void setup(osg::Group *root, unsigned int mask, const osg::Vec3d &up)
Definition: cameracontroller.cpp:116
bool mLockUpright
Definition: cameracontroller.hpp:115
bool mNaviPrimary
Definition: cameracontroller.hpp:116
void rotateHorizontal(double value)
Definition: cameracontroller.cpp:672
bool mFastAlternate
Definition: cameracontroller.hpp:117
bool mRight
Definition: cameracontroller.hpp:118
static const osg::Vec3d LocalForward
Definition: cameracontroller.hpp:37
void naviSecondary(bool active)
Definition: cameracontroller.cpp:731
void setCamera(osg::Camera *)
Definition: cameracontroller.cpp:79
static const osg::Vec3d WorldUp
Definition: cameracontroller.hpp:33
osg::Camera * mCamera
Definition: cameracontroller.hpp:77
void roll(double value)
Definition: cameracontroller.cpp:697
void onActivate()
Definition: cameracontroller.cpp:635
void rollRight(bool active)
Definition: cameracontroller.cpp:762
bool mNaviSecondary
Definition: cameracontroller.hpp:175
Definition: cameracontroller.hpp:27
void rollLeft(bool active)
Definition: cameracontroller.cpp:424
void backward(bool active)
Definition: cameracontroller.cpp:414
void setCameraSensitivity(double value)
Definition: cameracontroller.cpp:96
double getOrbitSpeedMultiplier() const
Definition: cameracontroller.cpp:534
void addShortcut(CSMPrefs::Shortcut *shortcut)
Definition: cameracontroller.cpp:152
virtual void update(double dt)=0
osg::Vec3d mUp
Definition: cameracontroller.hpp:119
void handleMouseScrollEvent(int x)
Definition: cameracontroller.cpp:300
void setPickingMask(unsigned int value)
Definition: cameracontroller.cpp:567
void up(bool active)
Definition: cameracontroller.cpp:736
bool mLeft
Definition: cameracontroller.hpp:118
double mDistance
Definition: cameracontroller.hpp:180
bool mRollRight
Definition: cameracontroller.hpp:118
bool mNaviSecondary
Definition: cameracontroller.hpp:116
bool mNaviPrimary
Definition: cameracontroller.hpp:175
double getRotationalSpeed() const
Definition: cameracontroller.cpp:242
void rollRight(bool active)
Definition: cameracontroller.cpp:429
void fixUpAxis(const osg::Vec3d &up)
Definition: cameracontroller.cpp:267
virtual void handleMouseScrollEvent(int x)=0
Definition: cameracontroller.hpp:82
bool mInverted
Definition: cameracontroller.hpp:72
double mLinSpeed
Definition: cameracontroller.hpp:121
void initialize()
Definition: cameracontroller.cpp:640
virtual void handleMouseMoveEvent(int x, int y)=0
static const osg::Vec3d LocalLeft
Definition: cameracontroller.hpp:36
void right(bool active)
Definition: cameracontroller.cpp:751
void setInverted(bool value)
Definition: cameracontroller.cpp:101
void naviPrimary(bool active)
Definition: cameracontroller.cpp:726
double getWheelMovementMultiplier() const
Definition: cameracontroller.cpp:74
double mSpeedMult
Definition: cameracontroller.hpp:123
void swapSpeedMode()
Definition: cameracontroller.cpp:439
Definition: cameracontroller.hpp:139
void stabilize()
Definition: cameracontroller.cpp:387
void pitch(double value)
Definition: cameracontroller.cpp:351
void right(bool active)
Definition: cameracontroller.cpp:419
bool mDown
Definition: cameracontroller.hpp:177
double getSpeedMultiplier() const
Definition: cameracontroller.cpp:247
osg::Vec3d mCenter
Definition: cameracontroller.hpp:179
osg::Camera * getCamera() const
Definition: cameracontroller.cpp:54
double mRotSpeed
Definition: cameracontroller.hpp:122
bool mFastAlternate
Definition: cameracontroller.hpp:176
void setOrbitSpeed(double value)
Definition: cameracontroller.cpp:557
bool mFast
Definition: cameracontroller.hpp:176
void update(double dt)
Definition: cameracontroller.cpp:604
bool mRollLeft
Definition: cameracontroller.hpp:177
double mWheelMoveMult
Definition: cameracontroller.hpp:75
void handleMouseMoveEvent(int x, int y)
Definition: cameracontroller.cpp:279
void handleMouseMoveEvent(int x, int y)
Definition: cameracontroller.cpp:572
void alternateFast(bool active)
Definition: cameracontroller.cpp:767
double getOrbitSpeed() const
Definition: cameracontroller.cpp:529
bool mRollLeft
Definition: cameracontroller.hpp:118
void setLinearSpeed(double value)
Definition: cameracontroller.cpp:252
bool mBackward
Definition: cameracontroller.hpp:118
void setOrbitSpeedMultiplier(double value)
Definition: cameracontroller.cpp:562
void rollLeft(bool active)
Definition: cameracontroller.cpp:756
void swapSpeedMode()
Definition: cameracontroller.cpp:772
virtual void onActivate()
Definition: cameracontroller.hpp:66
void zoom(double value)
Definition: cameracontroller.cpp:714
void setSecondaryMovementMultiplier(double value)
Definition: cameracontroller.cpp:106
void unfixUpAxis()
Definition: cameracontroller.cpp:274
bool mRight
Definition: cameracontroller.hpp:177
double mOrbitSpeedMult
Definition: cameracontroller.hpp:183
void yaw(double value)
Definition: cameracontroller.cpp:345
void naviSecondary(bool active)
Definition: cameracontroller.cpp:399
void update(double dt)
Definition: cameracontroller.cpp:308
A class similar in purpose to QShortcut, but with the ability to use mouse buttons.
Definition: shortcut.hpp:16
double mSecondaryMoveMult
Definition: cameracontroller.hpp:74
void setRotationalSpeed(double value)
Definition: cameracontroller.cpp:257
CameraController(QObject *parent)
Definition: cameracontroller.cpp:34
bool mRollRight
Definition: cameracontroller.hpp:177
static const osg::Vec3d LocalUp
Definition: cameracontroller.hpp:35
void translate(const osg::Vec3d &offset)
Definition: cameracontroller.cpp:702
void down(bool active)
Definition: cameracontroller.cpp:746
virtual ~CameraController()
Definition: cameracontroller.cpp:45
void left(bool active)
Definition: cameracontroller.cpp:409
std::vector< CSMPrefs::Shortcut * > mShortcuts
Definition: cameracontroller.hpp:79
void roll(double value)
Definition: cameracontroller.cpp:375
bool mModified
Definition: cameracontroller.hpp:115