Public Member Functions | |
TranslateInPlaneCommand () | |
TranslateInPlaneCommand (const osg::Plane &plane) | |
virtual bool | execute () |
Execute the command. | |
virtual bool | unexecute () |
Undo the command. | |
virtual void | applyConstraint (const Constraint *) |
Apply a constraint to the command. | |
void | setPlane (const osg::Plane &plane) |
const osg::Plane & | getPlane () const |
void | setTranslation (const osg::Vec3 &t) |
const osg::Vec3 & | getTranslation () const |
void | setReferencePoint (const osg::Vec3 &rp) |
ReferencePoint is used only for snapping. | |
const osg::Vec3 & | getReferencePoint () const |
virtual osg::Matrix | getMotionMatrix () const |
Gets the matrix for transforming the Selection. | |
Protected Member Functions | |
virtual | ~TranslateInPlaneCommand () |
osgManipulator::TranslateInPlaneCommand::TranslateInPlaneCommand | ( | ) |
osgManipulator::TranslateInPlaneCommand::TranslateInPlaneCommand | ( | const osg::Plane & | plane | ) |
virtual osgManipulator::TranslateInPlaneCommand::~TranslateInPlaneCommand | ( | ) | [protected, virtual] |
virtual bool osgManipulator::TranslateInPlaneCommand::execute | ( | ) | [virtual] |
virtual bool osgManipulator::TranslateInPlaneCommand::unexecute | ( | ) | [virtual] |
Undo the command.
The inverse of this command is executed.
Implements osgManipulator::MotionCommand.
virtual void osgManipulator::TranslateInPlaneCommand::applyConstraint | ( | const Constraint * | ) | [virtual] |
void osgManipulator::TranslateInPlaneCommand::setPlane | ( | const osg::Plane & | plane | ) | [inline] |
const osg::Plane& osgManipulator::TranslateInPlaneCommand::getPlane | ( | ) | const [inline] |
void osgManipulator::TranslateInPlaneCommand::setTranslation | ( | const osg::Vec3 & | t | ) | [inline] |
const osg::Vec3& osgManipulator::TranslateInPlaneCommand::getTranslation | ( | ) | const [inline] |
void osgManipulator::TranslateInPlaneCommand::setReferencePoint | ( | const osg::Vec3 & | rp | ) | [inline] |
ReferencePoint is used only for snapping.
const osg::Vec3& osgManipulator::TranslateInPlaneCommand::getReferencePoint | ( | ) | const [inline] |
virtual osg::Matrix osgManipulator::TranslateInPlaneCommand::getMotionMatrix | ( | ) | const [inline, virtual] |
Gets the matrix for transforming the Selection.
This matrix is in the command's coordinate systems.
Implements osgManipulator::MotionCommand.