OpenSceneGraph  3.0.1
Public Member Functions | Protected Member Functions
osgManipulator::Rotate3DCommand Class Reference

Command for rotation in 3D. More...

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

List of all members.

Public Member Functions

 Rotate3DCommand ()
virtual MotionCommandcreateCommandInverse ()
 create a MotionCommand that is the inverse of this command, and if applied will undo this commands changes.
void setRotation (const osg::Quat &rotation)
const osg::QuatgetRotation () const
virtual osg::Matrix getMotionMatrix () const
 Gets the matrix for transforming the object being dragged.
- Public Member Functions inherited from osgManipulator::MotionCommand
 MotionCommand ()
void setLocalToWorldAndWorldToLocal (const osg::Matrix &localToWorld, const osg::Matrix &worldToLocal)
 Sets the matrix for transforming the command's local coordinate system to the world/object coordinate system.
const osg::MatrixgetLocalToWorld () const
 Gets the matrix for transforming the command's local coordinate system to the world/object coordinate system.
const osg::MatrixgetWorldToLocal () const
 Gets the matrix for transforming the command's world/object coordinate system to the command's local coordinate system.
void setStage (const Stage s)
Stage getStage () const
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool threadSafe)
 Set whether to use a mutex to ensure ref() and unref() are thread safe.
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe.
OpenThreads::Mutex * getRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref().
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it.
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
int referenceCount () const
 Return the number of pointers currently referencing this object.
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL.
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet.
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted.
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object.

Protected Member Functions

virtual ~Rotate3DCommand ()
- Protected Member Functions inherited from osgManipulator::MotionCommand
virtual ~MotionCommand ()
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
void deleteUsingDeleteHandler () const

Additional Inherited Members

- Public Types inherited from osgManipulator::MotionCommand
enum  Stage { NONE, START, MOVE, FINISH }
 Motion command are based on click-drag-release actions. More...

Detailed Description

Command for rotation in 3D.


Constructor & Destructor Documentation

osgManipulator::Rotate3DCommand::Rotate3DCommand ( )
virtual osgManipulator::Rotate3DCommand::~Rotate3DCommand ( )
protectedvirtual

Member Function Documentation

virtual MotionCommand* osgManipulator::Rotate3DCommand::createCommandInverse ( )
virtual

create a MotionCommand that is the inverse of this command, and if applied will undo this commands changes.

Implements osgManipulator::MotionCommand.

virtual osg::Matrix osgManipulator::Rotate3DCommand::getMotionMatrix ( ) const
inlinevirtual

Gets the matrix for transforming the object being dragged.

This matrix is in the command's coordinate systems.

Implements osgManipulator::MotionCommand.

References osg::Matrixd::rotate().

const osg::Quat& osgManipulator::Rotate3DCommand::getRotation ( ) const
inline
void osgManipulator::Rotate3DCommand::setRotation ( const osg::Quat rotation)
inline

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

osg logo
Generated at Tue Oct 9 2012 08:35:21 for the OpenSceneGraph by doxygen 1.8.1.1.