OpenSceneGraph  3.0.1
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
osgManipulator::RotateCylinderDragger Class Reference

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

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

List of all members.

Public Member Functions

 RotateCylinderDragger ()
 META_OSGMANIPULATOR_Object (osgManipulator, RotateCylinderDragger) virtual bool handle(const PointerInfo &pi
 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::Vec4getColor () const
void setPickColor (const osg::Vec4 &color)
 Set/Get pick color for dragger.
const osg::Vec4getPickColor () const

Public Attributes

const osgGA::GUIEventAdapterea
const osgGA::GUIEventAdapter
osgGA::GUIActionAdapter
us

Protected Member Functions

virtual ~RotateCylinderDragger ()

Protected Attributes

osg::ref_ptr
< CylinderPlaneProjector
_projector
osg::Vec3d _prevWorldProjPt
bool _prevPtOnCylinder
osg::Matrix _startLocalToWorld
osg::Matrix _startWorldToLocal
osg::Quat _prevRotation
osg::Vec4 _color
osg::Vec4 _pickColor

Detailed Description

Dragger for performing 3D rotation on a cylinder.


Constructor & Destructor Documentation

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

Member Function Documentation

const osg::Vec4& osgManipulator::RotateCylinderDragger::getColor ( ) const [inline]
const osg::Vec4& osgManipulator::RotateCylinderDragger::getPickColor ( ) const [inline]
osgManipulator::RotateCylinderDragger::META_OSGMANIPULATOR_Object ( osgManipulator  ,
RotateCylinderDragger   
) const

Handle pick events on dragger and generate TranslateInLine commands.

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

Set/Get color for dragger.

References osgManipulator::setMaterialColor().

void osgManipulator::RotateCylinderDragger::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.

void osgManipulator::RotateCylinderDragger::setupDefaultGeometry ( ) [virtual]

Setup default geometry for dragger.

Reimplemented from osgManipulator::Dragger.


Member Data Documentation


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

osg logo
Generated at Mon Oct 3 2011 12:39:47 for the OpenSceneGraph by doxygen 1.7.5.