OpenSceneGraph 2.8.4
Public Member Functions | Protected Attributes
osgManipulator::AntiSquish Class Reference

Class that performs the Anti Squish by making the scaling uniform along all axes. More...

Inheritance diagram for osgManipulator::AntiSquish:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AntiSquish ()
 AntiSquish (const osg::Vec3d &pivot)
 AntiSquish (const osg::Vec3d &pivot, const osg::Vec3d &position)
 AntiSquish (const AntiSquish &pat, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
virtual osg::ObjectcloneType () const
 clone an object of the same type as the node.
virtual osg::Objectclone (const osg::CopyOp &copyop) const
 return a clone of a node, with Object* return type.
virtual bool isSameKindAs (const osg::Object *obj) const
 return true if this and obj are of the same kind of object.
void setPivot (const osg::Vec3d &pvt)
const osg::Vec3dgetPivot ()
void setPosition (const osg::Vec3d &pos)
const osg::Vec3dgetPosition ()
virtual ~AntiSquish ()
osg::Matrix computeUnSquishedMatrix (const osg::Matrix &, bool &flag)

Protected Attributes

osg::NodeCallback_asqCallback
osg::Vec3d _pivot
bool _usePivot
osg::Vec3d _position
bool _usePosition
bool _dirty
osg::Matrix _cachedLocalToWorld

Detailed Description

Class that performs the Anti Squish by making the scaling uniform along all axes.


Constructor & Destructor Documentation

osgManipulator::AntiSquish::AntiSquish ( )
osgManipulator::AntiSquish::AntiSquish ( const osg::Vec3d pivot)
osgManipulator::AntiSquish::AntiSquish ( const osg::Vec3d pivot,
const osg::Vec3d position 
)
osgManipulator::AntiSquish::AntiSquish ( const AntiSquish pat,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
virtual osgManipulator::AntiSquish::~AntiSquish ( ) [virtual]

Member Function Documentation

virtual osg::Object* osgManipulator::AntiSquish::clone ( const osg::CopyOp copyop) const [inline, virtual]

return a clone of a node, with Object* return type.

Reimplemented from osg::Node.

virtual osg::Object* osgManipulator::AntiSquish::cloneType ( ) const [inline, virtual]

clone an object of the same type as the node.

Reimplemented from osg::Node.

osg::Matrix osgManipulator::AntiSquish::computeUnSquishedMatrix ( const osg::Matrix ,
bool &  flag 
)
const osg::Vec3d& osgManipulator::AntiSquish::getPivot ( ) [inline]
const osg::Vec3d& osgManipulator::AntiSquish::getPosition ( ) [inline]
virtual bool osgManipulator::AntiSquish::isSameKindAs ( const osg::Object obj) const [inline, virtual]

return true if this and obj are of the same kind of object.

Reimplemented from osg::Node.

References NULL.

void osgManipulator::AntiSquish::setPivot ( const osg::Vec3d pvt) [inline]
void osgManipulator::AntiSquish::setPosition ( const osg::Vec3d pos) [inline]

Member Data Documentation


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

osg logo
Generated at Sun Jan 8 2012 13:16:45 for the OpenSceneGraph by doxygen 1.7.4.