osgManipulator::GridConstraint Class Reference

Constraint to snap motion commands to a sugar cube grid. More...

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

List of all members.

Public Member Functions

 GridConstraint (osg::Node &refNode, const osg::Vec3d &origin, const osg::Vec3d &spacing)
void setOrigin (const osg::Vec3d origin)
void setSpacing (const osg::Vec3d spacing)
virtual bool constrain (TranslateInLineCommand &command) const
virtual bool constrain (TranslateInPlaneCommand &command) const
virtual bool constrain (Scale1DCommand &command) const
virtual bool constrain (Scale2DCommand &command) const
virtual bool constrain (ScaleUniformCommand &command) const

Protected Member Functions

virtual ~GridConstraint ()

Detailed Description

Constraint to snap motion commands to a sugar cube grid.


Constructor & Destructor Documentation

osgManipulator::GridConstraint::GridConstraint ( osg::Node refNode,
const osg::Vec3d origin,
const osg::Vec3d spacing 
)
virtual osgManipulator::GridConstraint::~GridConstraint (  )  [inline, protected, virtual]

Member Function Documentation

virtual bool osgManipulator::GridConstraint::constrain ( ScaleUniformCommand command  )  const [virtual]

Reimplemented from osgManipulator::Constraint.

virtual bool osgManipulator::GridConstraint::constrain ( Scale2DCommand command  )  const [virtual]

Reimplemented from osgManipulator::Constraint.

virtual bool osgManipulator::GridConstraint::constrain ( Scale1DCommand command  )  const [virtual]

Reimplemented from osgManipulator::Constraint.

virtual bool osgManipulator::GridConstraint::constrain ( TranslateInPlaneCommand command  )  const [virtual]

Reimplemented from osgManipulator::Constraint.

virtual bool osgManipulator::GridConstraint::constrain ( TranslateInLineCommand command  )  const [virtual]

Reimplemented from osgManipulator::Constraint.

void osgManipulator::GridConstraint::setOrigin ( const osg::Vec3d  origin  )  [inline]
void osgManipulator::GridConstraint::setSpacing ( const osg::Vec3d  spacing  )  [inline]

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

osg logo
Generated at Wed Aug 26 07:07:30 2009 for the OpenSceneGraph by doxygen 1.6.1.