OpenSceneGraph
Public Member Functions | Protected Attributes | List of all members
osg::AnimationPath::ControlPoint Class Reference

Public Member Functions

 ControlPoint ()
 
 ControlPoint (const osg::Vec3d &position)
 
 ControlPoint (const osg::Vec3d &position, const osg::Quat &rotation)
 
 ControlPoint (const osg::Vec3d &position, const osg::Quat &rotation, const osg::Vec3d &scale)
 
void setPosition (const osg::Vec3d &position)
 
const osg::Vec3dgetPosition () const
 
void setRotation (const osg::Quat &rotation)
 
const osg::QuatgetRotation () const
 
void setScale (const osg::Vec3d &scale)
 
const osg::Vec3dgetScale () const
 
void interpolate (float ratio, const ControlPoint &first, const ControlPoint &second)
 
void interpolate (double ratio, const ControlPoint &first, const ControlPoint &second)
 
void getMatrix (Matrixf &matrix) const
 
void getMatrix (Matrixd &matrix) const
 
void getInverse (Matrixf &matrix) const
 
void getInverse (Matrixd &matrix) const
 

Protected Attributes

osg::Vec3d _position
 
osg::Quat _rotation
 
osg::Vec3d _scale
 

Constructor & Destructor Documentation

◆ ControlPoint() [1/4]

osg::AnimationPath::ControlPoint::ControlPoint ( )
inline

◆ ControlPoint() [2/4]

osg::AnimationPath::ControlPoint::ControlPoint ( const osg::Vec3d position)
inline

◆ ControlPoint() [3/4]

osg::AnimationPath::ControlPoint::ControlPoint ( const osg::Vec3d position,
const osg::Quat rotation 
)
inline

◆ ControlPoint() [4/4]

osg::AnimationPath::ControlPoint::ControlPoint ( const osg::Vec3d position,
const osg::Quat rotation,
const osg::Vec3d scale 
)
inline

Member Function Documentation

◆ getInverse() [1/2]

void osg::AnimationPath::ControlPoint::getInverse ( Matrixf matrix) const
inline

◆ getInverse() [2/2]

void osg::AnimationPath::ControlPoint::getInverse ( Matrixd matrix) const
inline

◆ getMatrix() [1/2]

void osg::AnimationPath::ControlPoint::getMatrix ( Matrixf matrix) const
inline

◆ getMatrix() [2/2]

void osg::AnimationPath::ControlPoint::getMatrix ( Matrixd matrix) const
inline

◆ getPosition()

const osg::Vec3d& osg::AnimationPath::ControlPoint::getPosition ( ) const
inline

◆ getRotation()

const osg::Quat& osg::AnimationPath::ControlPoint::getRotation ( ) const
inline

◆ getScale()

const osg::Vec3d& osg::AnimationPath::ControlPoint::getScale ( ) const
inline

◆ interpolate() [1/2]

void osg::AnimationPath::ControlPoint::interpolate ( float  ratio,
const ControlPoint first,
const ControlPoint second 
)
inline

References _position, _rotation, and _scale.

◆ interpolate() [2/2]

void osg::AnimationPath::ControlPoint::interpolate ( double  ratio,
const ControlPoint first,
const ControlPoint second 
)
inline

References _position, _rotation, and _scale.

◆ setPosition()

void osg::AnimationPath::ControlPoint::setPosition ( const osg::Vec3d position)
inline

◆ setRotation()

void osg::AnimationPath::ControlPoint::setRotation ( const osg::Quat rotation)
inline

◆ setScale()

void osg::AnimationPath::ControlPoint::setScale ( const osg::Vec3d scale)
inline

Member Data Documentation

◆ _position

osg::Vec3d osg::AnimationPath::ControlPoint::_position
protected

Referenced by interpolate().

◆ _rotation

osg::Quat osg::AnimationPath::ControlPoint::_rotation
protected

Referenced by interpolate().

◆ _scale

osg::Vec3d osg::AnimationPath::ControlPoint::_scale
protected

Referenced by interpolate().


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