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
SceneUtil::PositionAttitudeTransform Class Reference

A customized version of osg::PositionAttitudeTransform optimized for speed. Uses single precision values. Also removed _pivotPoint which we don't need. More...

#include <positionattitudetransform.hpp>

Inheritance diagram for SceneUtil::PositionAttitudeTransform:
Collaboration diagram for SceneUtil::PositionAttitudeTransform:

Public Member Functions

 PositionAttitudeTransform ()
 
 PositionAttitudeTransform (const PositionAttitudeTransform &pat, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 META_Node (SceneUtil, PositionAttitudeTransform) inline void setPosition(const osg
 
const osg::Vec3f & getPosition () const
 
void setAttitude (const osg::Quat &quat)
 
const osg::Quat & getAttitude () const
 
void setScale (const osg::Vec3f &scale)
 
const osg::Vec3f & getScale () const
 
virtual bool computeLocalToWorldMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const
 
virtual bool computeWorldToLocalMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const
 

Protected Member Functions

virtual ~PositionAttitudeTransform ()
 

Protected Attributes

osg::Vec3f _position
 
osg::Quat _attitude
 
osg::Vec3f _scale
 

Detailed Description

A customized version of osg::PositionAttitudeTransform optimized for speed. Uses single precision values. Also removed _pivotPoint which we don't need.

Constructor & Destructor Documentation

SceneUtil::PositionAttitudeTransform::PositionAttitudeTransform ( )
SceneUtil::PositionAttitudeTransform::PositionAttitudeTransform ( const PositionAttitudeTransform pat,
const osg::CopyOp &  copyop = osg::CopyOp::SHALLOW_COPY 
)
inline
virtual SceneUtil::PositionAttitudeTransform::~PositionAttitudeTransform ( )
inlineprotectedvirtual

Member Function Documentation

bool SceneUtil::PositionAttitudeTransform::computeLocalToWorldMatrix ( osg::Matrix &  matrix,
osg::NodeVisitor *  nv 
) const
virtual
bool SceneUtil::PositionAttitudeTransform::computeWorldToLocalMatrix ( osg::Matrix &  matrix,
osg::NodeVisitor *  nv 
) const
virtual
const osg::Quat& SceneUtil::PositionAttitudeTransform::getAttitude ( ) const
inline

Here is the caller graph for this function:

const osg::Vec3f& SceneUtil::PositionAttitudeTransform::getPosition ( ) const
inline
const osg::Vec3f& SceneUtil::PositionAttitudeTransform::getScale ( ) const
inline

Here is the caller graph for this function:

SceneUtil::PositionAttitudeTransform::META_Node ( SceneUtil  ,
PositionAttitudeTransform   
) const
inline
void SceneUtil::PositionAttitudeTransform::setAttitude ( const osg::Quat &  quat)
inline

Here is the caller graph for this function:

void SceneUtil::PositionAttitudeTransform::setScale ( const osg::Vec3f &  scale)
inline

Here is the caller graph for this function:

Member Data Documentation

osg::Quat SceneUtil::PositionAttitudeTransform::_attitude
protected
osg::Vec3f SceneUtil::PositionAttitudeTransform::_position
protected
osg::Vec3f SceneUtil::PositionAttitudeTransform::_scale
protected

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