OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
CSVRender::CameraController Class Referenceabstract

#include <cameracontroller.hpp>

Inheritance diagram for CSVRender::CameraController:
Collaboration diagram for CSVRender::CameraController:

Public Member Functions

 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)
 
virtual void handleMouseMoveEvent (int x, int y)=0
 
virtual void handleMouseScrollEvent (int x)=0
 
virtual void update (double dt)=0
 

Static Public Attributes

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

void addShortcut (CSMPrefs::Shortcut *shortcut)
 

Private Attributes

bool mActive
 
bool mInverted
 
double mCameraSensitivity
 
double mSecondaryMoveMult
 
double mWheelMoveMult
 
osg::Camera * mCamera
 
std::vector< CSMPrefs::Shortcut * > mShortcuts
 

Constructor & Destructor Documentation

CSVRender::CameraController::CameraController ( QObject parent)
CSVRender::CameraController::~CameraController ( )
virtual

Member Function Documentation

void CSVRender::CameraController::addShortcut ( CSMPrefs::Shortcut shortcut)
protected

Here is the caller graph for this function:

osg::Camera * CSVRender::CameraController::getCamera ( ) const

Here is the caller graph for this function:

double CSVRender::CameraController::getCameraSensitivity ( ) const

Here is the caller graph for this function:

bool CSVRender::CameraController::getInverted ( ) const

Here is the caller graph for this function:

double CSVRender::CameraController::getSecondaryMovementMultiplier ( ) const

Here is the caller graph for this function:

double CSVRender::CameraController::getWheelMovementMultiplier ( ) const

Here is the caller graph for this function:

virtual void CSVRender::CameraController::handleMouseMoveEvent ( int  x,
int  y 
)
pure virtual

Implemented in CSVRender::OrbitCameraController, and CSVRender::FreeCameraController.

Here is the caller graph for this function:

virtual void CSVRender::CameraController::handleMouseScrollEvent ( int  x)
pure virtual

Implemented in CSVRender::OrbitCameraController, and CSVRender::FreeCameraController.

Here is the caller graph for this function:

bool CSVRender::CameraController::isActive ( ) const

Here is the caller graph for this function:

void CSVRender::CameraController::setCamera ( osg::Camera *  camera)

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::CameraController::setCameraSensitivity ( double  value)

Here is the caller graph for this function:

void CSVRender::CameraController::setInverted ( bool  value)

Here is the caller graph for this function:

void CSVRender::CameraController::setSecondaryMovementMultiplier ( double  value)

Here is the caller graph for this function:

void CSVRender::CameraController::setup ( osg::Group *  root,
unsigned int  mask,
const osg::Vec3d &  up 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::CameraController::setWheelMovementMultiplier ( double  value)

Here is the caller graph for this function:

virtual void CSVRender::CameraController::update ( double  dt)
pure virtual

Implemented in CSVRender::OrbitCameraController, and CSVRender::FreeCameraController.

Here is the caller graph for this function:

Member Data Documentation

const osg::Vec3d CSVRender::CameraController::LocalForward = osg::Vec3d(0, 0, 1)
static
const osg::Vec3d CSVRender::CameraController::LocalLeft = osg::Vec3d(1, 0, 0)
static
const osg::Vec3d CSVRender::CameraController::LocalUp = osg::Vec3d(0, 1, 0)
static
bool CSVRender::CameraController::mActive
private
osg::Camera* CSVRender::CameraController::mCamera
private
double CSVRender::CameraController::mCameraSensitivity
private
bool CSVRender::CameraController::mInverted
private
double CSVRender::CameraController::mSecondaryMoveMult
private
std::vector<CSMPrefs::Shortcut*> CSVRender::CameraController::mShortcuts
private
double CSVRender::CameraController::mWheelMoveMult
private
const osg::Vec3d CSVRender::CameraController::WorldUp = osg::Vec3d(0, 0, 1)
static

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