osgEarth 2.1.1
Public Member Functions | Protected Member Functions | Protected Attributes

osgEarth::Util::TranslateCommand Class Reference

List of all members.

Public Member Functions

 TranslateCommand ()
const osg::Vec3d & getTranslation () const
void setTranslation (const osg::Vec3d &translation)
virtual
osgManipulator::MotionCommand * 
createCommandInverse ()
virtual osg::Matrix getMotionMatrix () const

Protected Member Functions

virtual ~TranslateCommand ()

Protected Attributes

osg::Vec3d _translation

Detailed Description

Definition at line 32 of file Draggers.


Constructor & Destructor Documentation

TranslateCommand::TranslateCommand ( )

Definition at line 31 of file Draggers.cpp.

                                  :
osgManipulator::MotionCommand()
{
}

Here is the caller graph for this function:

TranslateCommand::~TranslateCommand ( ) [protected, virtual]

Definition at line 51 of file Draggers.cpp.

{
}

Member Function Documentation

osgManipulator::MotionCommand * TranslateCommand::createCommandInverse ( ) [virtual]

Definition at line 37 of file Draggers.cpp.

{
    TranslateCommand *cmd = new TranslateCommand();
    cmd->setTranslation( -_translation );
    return cmd;
}

Here is the call graph for this function:

osg::Matrix TranslateCommand::getMotionMatrix ( ) const [virtual]

Definition at line 45 of file Draggers.cpp.

{
    return osg::Matrixd::translate(_translation);
}
const osg::Vec3d& osgEarth::Util::TranslateCommand::getTranslation ( ) const [inline]

Definition at line 36 of file Draggers.

{ return _translation;}
void osgEarth::Util::TranslateCommand::setTranslation ( const osg::Vec3d &  translation) [inline]

Definition at line 37 of file Draggers.

{ _translation = translation;}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 44 of file Draggers.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines