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::OrbitCameraController Class Reference

#include <cameracontroller.hpp>

Inheritance diagram for CSVRender::OrbitCameraController:
Collaboration diagram for CSVRender::OrbitCameraController:

Public Member Functions

 OrbitCameraController (QWidget *parent)
 
osg::Vec3d getCenter () const
 
double getOrbitSpeed () const
 
double getOrbitSpeedMultiplier () const
 
unsigned int getPickingMask () const
 
void setCenter (const osg::Vec3d &center)
 
void setOrbitSpeed (double value)
 
void setOrbitSpeedMultiplier (double value)
 
void setPickingMask (unsigned int value)
 
void handleMouseMoveEvent (int x, int y)
 
void handleMouseScrollEvent (int x)
 
void update (double dt)
 
void reset ()
 Flag controller to be re-initialized. More...
 
void setConstRoll (bool enable)
 
- 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 up (bool active)
 
void left (bool active)
 
void down (bool active)
 
void right (bool active)
 
void rollLeft (bool active)
 
void rollRight (bool active)
 
void alternateFast (bool active)
 
void swapSpeedMode ()
 

Private Member Functions

void initialize ()
 
void rotateHorizontal (double value)
 
void rotateVertical (double value)
 
void roll (double value)
 
void translate (const osg::Vec3d &offset)
 
void zoom (double value)
 

Private Attributes

bool mInitialized
 
bool mNaviPrimary
 
bool mNaviSecondary
 
bool mFast
 
bool mFastAlternate
 
bool mLeft
 
bool mRight
 
bool mUp
 
bool mDown
 
bool mRollLeft
 
bool mRollRight
 
unsigned int mPickingMask
 
osg::Vec3d mCenter
 
double mDistance
 
double mOrbitSpeed
 
double mOrbitSpeedMult
 
bool mConstRoll
 

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::OrbitCameraController::OrbitCameraController ( QWidget parent)

Here is the call graph for this function:

Member Function Documentation

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

Here is the caller graph for this function:

void CSVRender::OrbitCameraController::down ( bool  active)
privateslot

Here is the caller graph for this function:

osg::Vec3d CSVRender::OrbitCameraController::getCenter ( ) const
double CSVRender::OrbitCameraController::getOrbitSpeed ( ) const
double CSVRender::OrbitCameraController::getOrbitSpeedMultiplier ( ) const
unsigned int CSVRender::OrbitCameraController::getPickingMask ( ) const
void CSVRender::OrbitCameraController::handleMouseMoveEvent ( int  x,
int  y 
)
virtual

Implements CSVRender::CameraController.

Here is the call graph for this function:

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

Implements CSVRender::CameraController.

Here is the call graph for this function:

void CSVRender::OrbitCameraController::initialize ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void CSVRender::OrbitCameraController::reset ( )

Flag controller to be re-initialized.

Here is the caller graph for this function:

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

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void CSVRender::OrbitCameraController::rotateHorizontal ( double  value)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::OrbitCameraController::rotateVertical ( double  value)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::OrbitCameraController::setCenter ( const osg::Vec3d &  center)

Here is the call graph for this function:

void CSVRender::OrbitCameraController::setConstRoll ( bool  enable)

Here is the caller graph for this function:

void CSVRender::OrbitCameraController::setOrbitSpeed ( double  value)

Here is the caller graph for this function:

void CSVRender::OrbitCameraController::setOrbitSpeedMultiplier ( double  value)

Here is the caller graph for this function:

void CSVRender::OrbitCameraController::setPickingMask ( unsigned int  value)

Here is the caller graph for this function:

void CSVRender::OrbitCameraController::swapSpeedMode ( )
privateslot

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::OrbitCameraController::up ( bool  active)
privateslot

Here is the caller graph for this function:

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

Implements CSVRender::CameraController.

Here is the call graph for this function:

void CSVRender::OrbitCameraController::zoom ( double  value)
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

osg::Vec3d CSVRender::OrbitCameraController::mCenter
private
bool CSVRender::OrbitCameraController::mConstRoll
private
double CSVRender::OrbitCameraController::mDistance
private
bool CSVRender::OrbitCameraController::mDown
private
bool CSVRender::OrbitCameraController::mFast
private
bool CSVRender::OrbitCameraController::mFastAlternate
private
bool CSVRender::OrbitCameraController::mInitialized
private
bool CSVRender::OrbitCameraController::mLeft
private
bool CSVRender::OrbitCameraController::mNaviPrimary
private
bool CSVRender::OrbitCameraController::mNaviSecondary
private
double CSVRender::OrbitCameraController::mOrbitSpeed
private
double CSVRender::OrbitCameraController::mOrbitSpeedMult
private
unsigned int CSVRender::OrbitCameraController::mPickingMask
private
bool CSVRender::OrbitCameraController::mRight
private
bool CSVRender::OrbitCameraController::mRollLeft
private
bool CSVRender::OrbitCameraController::mRollRight
private
bool CSVRender::OrbitCameraController::mUp
private

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