osgManipulator::RotateSphereDragger Class Reference

Dragger for performing 3D rotation on a sphere. More...

Inheritance diagram for osgManipulator::RotateSphereDragger:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 RotateSphereDragger ()
virtual bool handle (const PointerInfo &, const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
 Handle pick events on dragger and generate TranslateInLine commands.
void setupDefaultGeometry ()
 Setup default geometry for dragger.
void setColor (const osg::Vec4 &color)
 Set/Get color for dragger.
const osg::Vec4 getColor () const
void setPickColor (const osg::Vec4 &color)
 Set/Get pick color for dragger.
const osg::Vec4 getPickColor () const

Protected Member Functions

virtual ~RotateSphereDragger ()

Protected Attributes

osg::ref_ptr
< SpherePlaneProjector
_projector
osg::Vec3 _prevWorldProjPt
bool _prevPtOnSphere
osg::Matrix _startLocalToWorld
osg::Matrix _startWorldToLocal
osg::Quat _prevRotation
osg::Vec4 _color
osg::Vec4 _pickColor


Detailed Description

Dragger for performing 3D rotation on a sphere.

Constructor & Destructor Documentation

osgManipulator::RotateSphereDragger::RotateSphereDragger (  ) 

virtual osgManipulator::RotateSphereDragger::~RotateSphereDragger (  )  [protected, virtual]


Member Function Documentation

virtual bool osgManipulator::RotateSphereDragger::handle ( const PointerInfo ,
const osgGA::GUIEventAdapter ea,
osgGA::GUIActionAdapter us 
) [virtual]

Handle pick events on dragger and generate TranslateInLine commands.

Reimplemented from osgManipulator::Dragger.

void osgManipulator::RotateSphereDragger::setupDefaultGeometry (  ) 

Setup default geometry for dragger.

void osgManipulator::RotateSphereDragger::setColor ( const osg::Vec4 color  )  [inline]

Set/Get color for dragger.

const osg::Vec4 osgManipulator::RotateSphereDragger::getColor (  )  const [inline]

void osgManipulator::RotateSphereDragger::setPickColor ( const osg::Vec4 color  )  [inline]

Set/Get pick color for dragger.

Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked.

const osg::Vec4 osgManipulator::RotateSphereDragger::getPickColor (  )  const [inline]


Member Data Documentation

osg::ref_ptr<SpherePlaneProjector> osgManipulator::RotateSphereDragger::_projector [protected]

osg::Vec3 osgManipulator::RotateSphereDragger::_prevWorldProjPt [protected]

bool osgManipulator::RotateSphereDragger::_prevPtOnSphere [protected]

osg::Matrix osgManipulator::RotateSphereDragger::_startLocalToWorld [protected]

osg::Matrix osgManipulator::RotateSphereDragger::_startWorldToLocal [protected]

osg::Quat osgManipulator::RotateSphereDragger::_prevRotation [protected]

osg::Vec4 osgManipulator::RotateSphereDragger::_color [protected]

osg::Vec4 osgManipulator::RotateSphereDragger::_pickColor [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:41 2007 for the OpenSceneGraph by doxygen 1.5.3.