
Public Member Functions | |
| TranslateInLineCommand () | |
| TranslateInLineCommand (const osg::Vec3 &s, const osg::Vec3 &e) | |
| virtual bool | execute () |
| Execute the command. | |
| virtual bool | unexecute () |
| Undo the command. | |
| virtual void | applyConstraint (const Constraint *) |
| Apply a constraint to the command. | |
| void | setLine (const osg::Vec3 &s, const osg::Vec3 &e) |
| const osg::Vec3 & | getLineStart () const |
| const osg::Vec3 & | getLineEnd () const |
| void | setTranslation (const osg::Vec3 &t) |
| const osg::Vec3 & | getTranslation () const |
| virtual osg::Matrix | getMotionMatrix () const |
| Gets the matrix for transforming the Selection. | |
Protected Member Functions | |
| virtual | ~TranslateInLineCommand () |
| osgManipulator::TranslateInLineCommand::TranslateInLineCommand | ( | ) |
| osgManipulator::TranslateInLineCommand::TranslateInLineCommand | ( | const osg::Vec3 & | s, | |
| const osg::Vec3 & | e | |||
| ) |
| virtual osgManipulator::TranslateInLineCommand::~TranslateInLineCommand | ( | ) | [protected, virtual] |
| virtual bool osgManipulator::TranslateInLineCommand::execute | ( | ) | [virtual] |
| virtual bool osgManipulator::TranslateInLineCommand::unexecute | ( | ) | [virtual] |
Undo the command.
The inverse of this command is executed.
Implements osgManipulator::MotionCommand.
| virtual void osgManipulator::TranslateInLineCommand::applyConstraint | ( | const Constraint * | ) | [virtual] |
| void osgManipulator::TranslateInLineCommand::setLine | ( | const osg::Vec3 & | s, | |
| const osg::Vec3 & | e | |||
| ) | [inline] |
| const osg::Vec3& osgManipulator::TranslateInLineCommand::getLineStart | ( | ) | const [inline] |
| const osg::Vec3& osgManipulator::TranslateInLineCommand::getLineEnd | ( | ) | const [inline] |
| void osgManipulator::TranslateInLineCommand::setTranslation | ( | const osg::Vec3 & | t | ) | [inline] |
| const osg::Vec3& osgManipulator::TranslateInLineCommand::getTranslation | ( | ) | const [inline] |
| virtual osg::Matrix osgManipulator::TranslateInLineCommand::getMotionMatrix | ( | ) | const [inline, virtual] |
Gets the matrix for transforming the Selection.
This matrix is in the command's coordinate systems.
Implements osgManipulator::MotionCommand.