OpenSceneGraph  3.4.0
Public Types | Public Member Functions | Protected Attributes
osgManipulator::DraggerTransformCallback Class Reference
Inheritance diagram for osgManipulator::DraggerTransformCallback:
Inheritance graph
[legend]

List of all members.

Public Types

enum  HandleCommandMask {
  HANDLE_TRANSLATE_IN_LINE = 1<<0, HANDLE_TRANSLATE_IN_PLANE = 1<<1, HANDLE_SCALED_1D = 1<<2, HANDLE_SCALED_2D = 1<<3,
  HANDLE_SCALED_UNIFORM = 1<<4, HANDLE_ROTATE_3D = 1<<5, HANDLE_ALL = 0x8ffffff
}

Public Member Functions

 DraggerTransformCallback (osg::MatrixTransform *transform, int handleCommandMask=HANDLE_ALL)
virtual bool receive (const MotionCommand &)
 Receive motion commands.
virtual bool receive (const TranslateInLineCommand &command)
virtual bool receive (const TranslateInPlaneCommand &command)
virtual bool receive (const Scale1DCommand &command)
virtual bool receive (const Scale2DCommand &command)
virtual bool receive (const ScaleUniformCommand &command)
virtual bool receive (const Rotate3DCommand &command)
osg::MatrixTransformgetTransform ()
const osg::MatrixTransformgetTransform () const

Protected Attributes

unsigned int _handleCommandMask
osg::observer_ptr
< osg::MatrixTransform
_transform
osg::Matrix _startMotionMatrix
osg::Matrix _localToWorld
osg::Matrix _worldToLocal

Member Enumeration Documentation

Enumerator:
HANDLE_TRANSLATE_IN_LINE 
HANDLE_TRANSLATE_IN_PLANE 
HANDLE_SCALED_1D 
HANDLE_SCALED_2D 
HANDLE_SCALED_UNIFORM 
HANDLE_ROTATE_3D 
HANDLE_ALL 

Constructor & Destructor Documentation


Member Function Documentation

Receive motion commands.

Returns true on success.

Reimplemented from osgManipulator::DraggerCallback.

Reimplemented from osgManipulator::DraggerCallback.

Reimplemented from osgManipulator::DraggerCallback.

virtual bool osgManipulator::DraggerTransformCallback::receive ( const Scale1DCommand command) [virtual]

Reimplemented from osgManipulator::DraggerCallback.

virtual bool osgManipulator::DraggerTransformCallback::receive ( const Scale2DCommand command) [virtual]

Reimplemented from osgManipulator::DraggerCallback.

virtual bool osgManipulator::DraggerTransformCallback::receive ( const ScaleUniformCommand command) [virtual]

Reimplemented from osgManipulator::DraggerCallback.

virtual bool osgManipulator::DraggerTransformCallback::receive ( const Rotate3DCommand command) [virtual]

Reimplemented from osgManipulator::DraggerCallback.


Member Data Documentation


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

osg logo
Generated at Tue Dec 8 2015 00:14:29 for the OpenSceneGraph by doxygen 1.7.6.1.