OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
CSVRender::FreeCameraController Class Reference

#include <cameracontroller.hpp>

Inheritance diagram for CSVRender::FreeCameraController:
Collaboration diagram for CSVRender::FreeCameraController:

Public Member Functions

 FreeCameraController (QWidget *parent)
 
double getLinearSpeed () const
 
double getRotationalSpeed () const
 
double getSpeedMultiplier () const
 
void setLinearSpeed (double value)
 
void setRotationalSpeed (double value)
 
void setSpeedMultiplier (double value)
 
void fixUpAxis (const osg::Vec3d &up)
 
void unfixUpAxis ()
 
void handleMouseMoveEvent (int x, int y)
 
void handleMouseScrollEvent (int x)
 
void update (double dt)
 
- Public Member Functions inherited from CSVRender::CameraController
 CameraController (QObject *parent)
 
virtual ~CameraController ()
 
bool isActive () const
 
osg::Camera * getCamera () const
 
double getCameraSensitivity () const
 
bool getInverted () const
 
double getSecondaryMovementMultiplier () const
 
double getWheelMovementMultiplier () const
 
void setCamera (osg::Camera *)
 
void setCameraSensitivity (double value)
 
void setInverted (bool value)
 
void setSecondaryMovementMultiplier (double value)
 
void setWheelMovementMultiplier (double value)
 
void setup (osg::Group *root, unsigned int mask, const osg::Vec3d &up)
 

Private Slots

void naviPrimary (bool active)
 
void naviSecondary (bool active)
 
void forward (bool active)
 
void left (bool active)
 
void backward (bool active)
 
void right (bool active)
 
void rollLeft (bool active)
 
void rollRight (bool active)
 
void alternateFast (bool active)
 
void swapSpeedMode ()
 

Private Member Functions

void yaw (double value)
 
void pitch (double value)
 
void roll (double value)
 
void translate (const osg::Vec3d &offset)
 
void stabilize ()
 

Private Attributes

bool mLockUpright
 
bool mModified
 
bool mNaviPrimary
 
bool mNaviSecondary
 
bool mFast
 
bool mFastAlternate
 
bool mLeft
 
bool mRight
 
bool mForward
 
bool mBackward
 
bool mRollLeft
 
bool mRollRight
 
osg::Vec3d mUp
 
double mLinSpeed
 
double mRotSpeed
 
double mSpeedMult
 

Additional Inherited Members

- Static Public Attributes inherited from CSVRender::CameraController
static const osg::Vec3d WorldUp = osg::Vec3d(0, 0, 1)
 
static const osg::Vec3d LocalUp = osg::Vec3d(0, 1, 0)
 
static const osg::Vec3d LocalLeft = osg::Vec3d(1, 0, 0)
 
static const osg::Vec3d LocalForward = osg::Vec3d(0, 0, 1)
 
- Protected Member Functions inherited from CSVRender::CameraController
void addShortcut (CSMPrefs::Shortcut *shortcut)
 

Constructor & Destructor Documentation

CSVRender::FreeCameraController::FreeCameraController ( QWidget parent)

Here is the call graph for this function:

Member Function Documentation

void CSVRender::FreeCameraController::alternateFast ( bool  active)
privateslot

Here is the caller graph for this function:

void CSVRender::FreeCameraController::backward ( bool  active)
privateslot

Here is the caller graph for this function:

void CSVRender::FreeCameraController::fixUpAxis ( const osg::Vec3d &  up)

Here is the caller graph for this function:

void CSVRender::FreeCameraController::forward ( bool  active)
privateslot

Here is the caller graph for this function:

double CSVRender::FreeCameraController::getLinearSpeed ( ) const
double CSVRender::FreeCameraController::getRotationalSpeed ( ) const
double CSVRender::FreeCameraController::getSpeedMultiplier ( ) const
void CSVRender::FreeCameraController::handleMouseMoveEvent ( int  x,
int  y 
)
virtual

Implements CSVRender::CameraController.

Here is the call graph for this function:

void CSVRender::FreeCameraController::handleMouseScrollEvent ( int  x)
virtual

Implements CSVRender::CameraController.

Here is the call graph for this function:

void CSVRender::FreeCameraController::left ( bool  active)
privateslot

Here is the caller graph for this function:

void CSVRender::FreeCameraController::naviPrimary ( bool  active)
privateslot

Here is the caller graph for this function:

void CSVRender::FreeCameraController::naviSecondary ( bool  active)
privateslot

Here is the caller graph for this function:

void CSVRender::FreeCameraController::pitch ( double  value)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::FreeCameraController::right ( bool  active)
privateslot

Here is the caller graph for this function:

void CSVRender::FreeCameraController::roll ( double  value)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::FreeCameraController::rollLeft ( bool  active)
privateslot

Here is the caller graph for this function:

void CSVRender::FreeCameraController::rollRight ( bool  active)
privateslot

Here is the caller graph for this function:

void CSVRender::FreeCameraController::setLinearSpeed ( double  value)

Here is the caller graph for this function:

void CSVRender::FreeCameraController::setRotationalSpeed ( double  value)

Here is the caller graph for this function:

void CSVRender::FreeCameraController::setSpeedMultiplier ( double  value)

Here is the caller graph for this function:

void CSVRender::FreeCameraController::stabilize ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::FreeCameraController::swapSpeedMode ( )
privateslot

Here is the caller graph for this function:

void CSVRender::FreeCameraController::translate ( const osg::Vec3d &  offset)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::FreeCameraController::unfixUpAxis ( )

Here is the caller graph for this function:

void CSVRender::FreeCameraController::update ( double  dt)
virtual

Implements CSVRender::CameraController.

Here is the call graph for this function:

void CSVRender::FreeCameraController::yaw ( double  value)
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool CSVRender::FreeCameraController::mBackward
private
bool CSVRender::FreeCameraController::mFast
private
bool CSVRender::FreeCameraController::mFastAlternate
private
bool CSVRender::FreeCameraController::mForward
private
bool CSVRender::FreeCameraController::mLeft
private
double CSVRender::FreeCameraController::mLinSpeed
private
bool CSVRender::FreeCameraController::mLockUpright
private
bool CSVRender::FreeCameraController::mModified
private
bool CSVRender::FreeCameraController::mNaviPrimary
private
bool CSVRender::FreeCameraController::mNaviSecondary
private
bool CSVRender::FreeCameraController::mRight
private
bool CSVRender::FreeCameraController::mRollLeft
private
bool CSVRender::FreeCameraController::mRollRight
private
double CSVRender::FreeCameraController::mRotSpeed
private
double CSVRender::FreeCameraController::mSpeedMult
private
osg::Vec3d CSVRender::FreeCameraController::mUp
private

The documentation for this class was generated from the following files: