OpenSceneGraph 2.8.4
Public Member Functions | Protected Member Functions
osgManipulator::TranslateInLineCommand Class Reference

Command for translating in a line. More...

Inheritance diagram for osgManipulator::TranslateInLineCommand:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 TranslateInLineCommand ()
 TranslateInLineCommand (const osg::LineSegment::vec_type &s, const osg::LineSegment::vec_type &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::LineSegment::vec_type &s, const osg::LineSegment::vec_type &e)
const osg::LineSegment::vec_typegetLineStart () const
const osg::LineSegment::vec_typegetLineEnd () const
void setTranslation (const osg::Vec3 &t)
const osg::Vec3dgetTranslation () const
virtual osg::Matrix getMotionMatrix () const
 Gets the matrix for transforming the Selection.

Protected Member Functions

virtual ~TranslateInLineCommand ()

Detailed Description

Command for translating in a line.


Constructor & Destructor Documentation

osgManipulator::TranslateInLineCommand::TranslateInLineCommand ( )
osgManipulator::TranslateInLineCommand::TranslateInLineCommand ( const osg::LineSegment::vec_type s,
const osg::LineSegment::vec_type e 
)
virtual osgManipulator::TranslateInLineCommand::~TranslateInLineCommand ( ) [protected, virtual]

Member Function Documentation

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

Apply a constraint to the command.

Implements osgManipulator::MotionCommand.

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

Execute the command.

Implements osgManipulator::MotionCommand.

const osg::LineSegment::vec_type& osgManipulator::TranslateInLineCommand::getLineEnd ( ) const [inline]
const osg::LineSegment::vec_type& osgManipulator::TranslateInLineCommand::getLineStart ( ) 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.

References osg::Matrixd::translate().

const osg::Vec3d& osgManipulator::TranslateInLineCommand::getTranslation ( ) const [inline]
void osgManipulator::TranslateInLineCommand::setLine ( const osg::LineSegment::vec_type s,
const osg::LineSegment::vec_type e 
) [inline]
void osgManipulator::TranslateInLineCommand::setTranslation ( const osg::Vec3 t) [inline]
virtual bool osgManipulator::TranslateInLineCommand::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 Sun Jan 8 2012 13:16:45 for the OpenSceneGraph by doxygen 1.7.4.