Hi Tonino,
On 12 April 2013 14:20, Tonino Tarsi <tony.ta...@gmail.com> wrote: > I need to know programmatically the current manipulator index . > > I was looking for something like > > > Code: > int KeySwitchMatrixManipulator::GetMatrixManipulatorIndex() > The KeySwitchMatrixManipulator internally uses a map so doesn't directly have a concept of mapping an index position to a entry in the map. The map itself stores a the <int key code, CameraManipulator>. To work out what the equivalent index postilion is you'll need to get the map and walk through it to find how far through the map the current active manipulator is selected. This is a bit hacky. Robert.
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org