OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
MWRender::NeckController Class Reference
Inheritance diagram for MWRender::NeckController:
Collaboration diagram for MWRender::NeckController:

Public Member Functions

 NeckController (osg::Node *relativeTo)
 
void setOffset (osg::Vec3f offset)
 
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 
- Public Member Functions inherited from MWRender::RotateController
 RotateController (osg::Node *relativeTo)
 
void setEnabled (bool enabled)
 
void setRotate (const osg::Quat &rotate)
 

Private Attributes

osg::Vec3f mOffset
 

Additional Inherited Members

- Protected Member Functions inherited from MWRender::RotateController
osg::Quat getWorldOrientation (osg::Node *node)
 
- Protected Attributes inherited from MWRender::RotateController
bool mEnabled
 
osg::Quat mRotate
 
osg::Node * mRelativeTo
 

Detailed Description

Subclass RotateController to add a Z-offset for sneaking in first person mode.

Note
We use inheritance instead of adding another controller, so that we do not have to compute the worldOrient twice.
Must be set on a MatrixTransform.

Constructor & Destructor Documentation

MWRender::NeckController::NeckController ( osg::Node *  relativeTo)
inline

Member Function Documentation

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

Reimplemented from MWRender::RotateController.

Here is the call graph for this function:

void MWRender::NeckController::setOffset ( osg::Vec3f  offset)
inline

Member Data Documentation

osg::Vec3f MWRender::NeckController::mOffset
private

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