OpenSceneGraph 2.8.3
|
Dragger for performing 3D rotation on a cylinder. More...
Public Member Functions | |
RotateCylinderDragger () | |
virtual bool | handle (const PointerInfo &pi, 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 | ~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 |
Dragger for performing 3D rotation on a cylinder.
osgManipulator::RotateCylinderDragger::RotateCylinderDragger | ( | ) |
virtual osgManipulator::RotateCylinderDragger::~RotateCylinderDragger | ( | ) | [protected, virtual] |
const osg::Vec4 osgManipulator::RotateCylinderDragger::getColor | ( | ) | const [inline] |
const osg::Vec4 osgManipulator::RotateCylinderDragger::getPickColor | ( | ) | const [inline] |
virtual bool osgManipulator::RotateCylinderDragger::handle | ( | const PointerInfo & | pi, |
const osgGA::GUIEventAdapter & | ea, | ||
osgGA::GUIActionAdapter & | us | ||
) | [virtual] |
Handle pick events on dragger and generate TranslateInLine commands.
Reimplemented from osgManipulator::Dragger.
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 | ( | ) |
Setup default geometry for dragger.
bool osgManipulator::RotateCylinderDragger::_prevPtOnCylinder [protected] |
![]() | Generated at Tue Mar 22 2011 13:20:28 for the OpenSceneGraph by doxygen 1.7.3. |