ravidavi/OpenFrames

How about add a funciton like(setCameraManipulator) to View?

wsljt19940218 opened this issue · 1 comments

When i read .earth,FollowingTrackball is different to use.
So maybe we can add a function to selecet a Manipulator for Class View.
Maybe we can add a funciton like(setCameraManipulator) to View?

Hi Lucy,

Yes that's a good idea, since someone might want to use the osgEarth manipulator or even SphericalManipulator for planetary models. Unfortunately right now the FollowingTrackball (derived from the osg TrackballManipulator) has functionality necessary to OpenFrames. For example it automatically moves the camera to follow an object in the scene.

To make manipulators swappable, I would have to re-architect the FollowingTrackball. One way I could see this happening is to make it a callback that can be attached to any manipulator. This would take some time though; I'll add it to my to-do list but it will be a while before I can get to it.

Thank you for the feedback!
Ravi