Public Member Functions | |
ScaleUniformCommand () | |
virtual bool | execute () |
Execute the command. | |
virtual bool | unexecute () |
Undo the command. | |
virtual void | applyConstraint (const Constraint *) |
Apply a constraint to the command. | |
void | setScale (float s) |
float | getScale () const |
void | setScaleCenter (const osg::Vec3 ¢er) |
const osg::Vec3 & | getScaleCenter () const |
virtual osg::Matrix | getMotionMatrix () const |
Gets the matrix for transforming the Selection. | |
Protected Member Functions | |
virtual | ~ScaleUniformCommand () |
osgManipulator::ScaleUniformCommand::ScaleUniformCommand | ( | ) |
virtual osgManipulator::ScaleUniformCommand::~ScaleUniformCommand | ( | ) | [protected, virtual] |
virtual bool osgManipulator::ScaleUniformCommand::execute | ( | ) | [virtual] |
virtual bool osgManipulator::ScaleUniformCommand::unexecute | ( | ) | [virtual] |
Undo the command.
The inverse of this command is executed.
Implements osgManipulator::MotionCommand.
virtual void osgManipulator::ScaleUniformCommand::applyConstraint | ( | const Constraint * | ) | [virtual] |
void osgManipulator::ScaleUniformCommand::setScale | ( | float | s | ) | [inline] |
float osgManipulator::ScaleUniformCommand::getScale | ( | ) | const [inline] |
void osgManipulator::ScaleUniformCommand::setScaleCenter | ( | const osg::Vec3 & | center | ) | [inline] |
const osg::Vec3& osgManipulator::ScaleUniformCommand::getScaleCenter | ( | ) | const [inline] |
virtual osg::Matrix osgManipulator::ScaleUniformCommand::getMotionMatrix | ( | ) | const [inline, virtual] |
Gets the matrix for transforming the Selection.
This matrix is in the command's coordinate systems.
Implements osgManipulator::MotionCommand.