OpenSceneGraph
3.0.1
|
Dragger for performing 3D rotation on a sphere. More...
Public Member Functions | |
RotateSphereDragger () | |
META_OSGMANIPULATOR_Object (osgManipulator, RotateSphereDragger) virtual bool handle(const PointerInfo & | |
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 |
Public Attributes | |
const osgGA::GUIEventAdapter & | ea |
const osgGA::GUIEventAdapter osgGA::GUIActionAdapter & | us |
Protected Member Functions | |
virtual | ~RotateSphereDragger () |
Protected Attributes | |
osg::ref_ptr < SpherePlaneProjector > | _projector |
osg::Vec3d | _prevWorldProjPt |
bool | _prevPtOnSphere |
osg::Matrix | _startLocalToWorld |
osg::Matrix | _startWorldToLocal |
osg::Quat | _prevRotation |
osg::Vec4 | _color |
osg::Vec4 | _pickColor |
Dragger for performing 3D rotation on a sphere.
osgManipulator::RotateSphereDragger::RotateSphereDragger | ( | ) |
virtual osgManipulator::RotateSphereDragger::~RotateSphereDragger | ( | ) | [protected, virtual] |
const osg::Vec4& osgManipulator::RotateSphereDragger::getColor | ( | ) | const [inline] |
const osg::Vec4& osgManipulator::RotateSphereDragger::getPickColor | ( | ) | const [inline] |
osgManipulator::RotateSphereDragger::META_OSGMANIPULATOR_Object | ( | osgManipulator | , |
RotateSphereDragger | |||
) | const |
Handle pick events on dragger and generate TranslateInLine commands.
void osgManipulator::RotateSphereDragger::setColor | ( | const osg::Vec4 & | color | ) | [inline] |
Set/Get color for dragger.
References osgManipulator::setMaterialColor().
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.
void osgManipulator::RotateSphereDragger::setupDefaultGeometry | ( | ) | [virtual] |
Setup default geometry for dragger.
Reimplemented from osgManipulator::Dragger.
osg::Vec4 osgManipulator::RotateSphereDragger::_color [protected] |
bool osgManipulator::RotateSphereDragger::_prevPtOnSphere [protected] |
![]() | Generated at Mon Oct 3 2011 12:39:47 for the OpenSceneGraph by doxygen 1.7.5. |