OpenSceneGraph 2.8.3

osgManipulator::TranslateInPlaneCommand Class Reference

Command for translating in a plane. More...

Inheritance diagram for osgManipulator::TranslateInPlaneCommand:

List of all members.

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::PlanegetPlane () const
void setTranslation (const osg::Vec3d &t)
const osg::Vec3dgetTranslation () const
void setReferencePoint (const osg::Vec3d &rp)
 ReferencePoint is used only for snapping.
const osg::Vec3dgetReferencePoint () const
virtual osg::Matrix getMotionMatrix () const
 Gets the matrix for transforming the Selection.

Protected Member Functions

virtual ~TranslateInPlaneCommand ()

Detailed Description

Command for translating in a plane.


Constructor & Destructor Documentation

osgManipulator::TranslateInPlaneCommand::TranslateInPlaneCommand ( )
osgManipulator::TranslateInPlaneCommand::TranslateInPlaneCommand ( const osg::Plane plane)
virtual osgManipulator::TranslateInPlaneCommand::~TranslateInPlaneCommand ( ) [protected, virtual]

Member Function Documentation

virtual void osgManipulator::TranslateInPlaneCommand::applyConstraint ( const Constraint ) [virtual]

Apply a constraint to the command.

Implements osgManipulator::MotionCommand.

virtual bool osgManipulator::TranslateInPlaneCommand::execute ( ) [virtual]

Execute the command.

Implements osgManipulator::MotionCommand.

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.

References osg::Matrixd::translate().

const osg::Plane& osgManipulator::TranslateInPlaneCommand::getPlane ( ) const [inline]
const osg::Vec3d& osgManipulator::TranslateInPlaneCommand::getReferencePoint ( ) const [inline]
const osg::Vec3d& osgManipulator::TranslateInPlaneCommand::getTranslation ( ) const [inline]
void osgManipulator::TranslateInPlaneCommand::setPlane ( const osg::Plane plane) [inline]
void osgManipulator::TranslateInPlaneCommand::setReferencePoint ( const osg::Vec3d rp) [inline]

ReferencePoint is used only for snapping.

void osgManipulator::TranslateInPlaneCommand::setTranslation ( const osg::Vec3d t) [inline]
virtual bool osgManipulator::TranslateInPlaneCommand::unexecute ( ) [virtual]

Undo the command.

The inverse of this command is executed.

Implements osgManipulator::MotionCommand.


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

osg logo
Generated at Tue Mar 22 2011 13:20:27 for the OpenSceneGraph by doxygen 1.7.3.