[R] Rgl: set trackball behavior

Duncan Murdoch murdoch.duncan at gmail.com
Wed Jun 11 13:43:53 CEST 2014


On 11/06/2014, 5:02 AM, Céline b wrote:
> I would like to set  zoom mouse control in rgl in order to redraw the map with more or less details depending of the zoom coefficient (such as google maps or openstreetmap do).
> 
> I already tried the rgl.setMouseCallbacks(button, begin = NULL, update = NULL, end = NULL) function but this function do not seem to work with  trackball (only left, middle and right click).
> 
> Thus the question is :is it possible to modify trackball function using rgl ? 


When you say "trackball", do you mean the mouse wheel?  If so, the
answer is no, it can't be modified, but it does seem like it would be a
good idea. I'll add it to the to-do list.

Duncan Murdoch



More information about the R-help mailing list