|
OpenSceneGraph
3.0.1
|
Base class for motion commands that are generated by draggers. More...

Public Types | |
| enum | Stage { NONE, START, MOVE, FINISH } |
| Motion command are based on click-drag-release actions. More... | |
Public Member Functions | |
| MotionCommand () | |
| virtual MotionCommand * | createCommandInverse ()=0 |
| create a MotionCommand that is the inverse of this command, and if applied will undo this commands changes. | |
| virtual osg::Matrix | getMotionMatrix () const =0 |
| Gets the matrix for transforming the object being dragged. | |
| void | setLocalToWorldAndWorldToLocal (const osg::Matrix &localToWorld, const osg::Matrix &worldToLocal) |
| Sets the matrix for transforming the command's local coordinate system to the world/object coordinate system. | |
| const osg::Matrix & | getLocalToWorld () const |
| Gets the matrix for transforming the command's local coordinate system to the world/object coordinate system. | |
| const osg::Matrix & | getWorldToLocal () const |
| Gets the matrix for transforming the command's world/object coordinate system to the command's local coordinate system. | |
| void | setStage (const Stage s) |
| Stage | getStage () const |
Protected Member Functions | |
| virtual | ~MotionCommand () |
Base class for motion commands that are generated by draggers.
| virtual osgManipulator::MotionCommand::~MotionCommand | ( | ) | [protected, virtual] |
| virtual MotionCommand* osgManipulator::MotionCommand::createCommandInverse | ( | ) | [pure virtual] |
create a MotionCommand that is the inverse of this command, and if applied will undo this commands changes.
Implemented in osgManipulator::Rotate3DCommand, osgManipulator::ScaleUniformCommand, osgManipulator::Scale2DCommand, osgManipulator::Scale1DCommand, osgManipulator::TranslateInPlaneCommand, and osgManipulator::TranslateInLineCommand.
| const osg::Matrix& osgManipulator::MotionCommand::getLocalToWorld | ( | ) | const [inline] |
Gets the matrix for transforming the command's local coordinate system to the world/object coordinate system.
| virtual osg::Matrix osgManipulator::MotionCommand::getMotionMatrix | ( | ) | const [pure virtual] |
Gets the matrix for transforming the object being dragged.
This matrix is in the command's coordinate systems.
Implemented in osgManipulator::Rotate3DCommand, osgManipulator::ScaleUniformCommand, osgManipulator::Scale2DCommand, osgManipulator::Scale1DCommand, osgManipulator::TranslateInPlaneCommand, and osgManipulator::TranslateInLineCommand.
| Stage osgManipulator::MotionCommand::getStage | ( | ) | const [inline] |
| const osg::Matrix& osgManipulator::MotionCommand::getWorldToLocal | ( | ) | const [inline] |
Gets the matrix for transforming the command's world/object coordinate system to the command's local coordinate system.
| void osgManipulator::MotionCommand::setLocalToWorldAndWorldToLocal | ( | const osg::Matrix & | localToWorld, |
| const osg::Matrix & | worldToLocal | ||
| ) | [inline] |
Sets the matrix for transforming the command's local coordinate system to the world/object coordinate system.
| void osgManipulator::MotionCommand::setStage | ( | const Stage | s | ) | [inline] |
| Generated at Thu Sep 27 2012 17:03:16 for the OpenSceneGraph by doxygen 1.7.6.1. |