OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MWRender::RotateController Class Reference

#include <rotatecontroller.hpp>

Inheritance diagram for MWRender::RotateController:
Collaboration diagram for MWRender::RotateController:

Public Member Functions

 RotateController (osg::Node *relativeTo)
 
void setEnabled (bool enabled)
 
void setRotate (const osg::Quat &rotate)
 
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 

Protected Member Functions

osg::Quat getWorldOrientation (osg::Node *node)
 

Protected Attributes

bool mEnabled
 
osg::Quat mRotate
 
osg::Node * mRelativeTo
 

Detailed Description

Applies a rotation in relativeTo's space.

Note
Assumes that the node being rotated has its "original" orientation set every frame by a different controller. The rotation is then applied on top of that orientation.
Must be set on a MatrixTransform.

Constructor & Destructor Documentation

MWRender::RotateController::RotateController ( osg::Node *  relativeTo)

Member Function Documentation

osg::Quat MWRender::RotateController::getWorldOrientation ( osg::Node *  node)
protected

Here is the caller graph for this function:

void MWRender::RotateController::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
)
virtual

Reimplemented in MWRender::NeckController.

Here is the call graph for this function:

void MWRender::RotateController::setEnabled ( bool  enabled)
void MWRender::RotateController::setRotate ( const osg::Quat &  rotate)

Member Data Documentation

bool MWRender::RotateController::mEnabled
protected
osg::Node* MWRender::RotateController::mRelativeTo
protected
osg::Quat MWRender::RotateController::mRotate
protected

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