search for: setmousecallback

Displaying 7 results from an estimated 7 matches for "setmousecallback".

Did you mean: setmousecallbacks
2008 Mar 01
1
How to chain user mouse handlers in rgl
...;- function() { begin <- function(x, y) { # Add checking for key down later cat(x,y,"\n") # Forward to trackball (no easier way?) newhandler <- par3d("mouseMode") newhandler[1] <- "trackball" par3d(mouseMode = newhandler) } rgl.setMouseCallbacks(1, begin) } btn3d()
2015 Nov 04
2
navigation mode(s) in rgl
Hello, I've CCd' Duncan Murdoch as the rgl maintainer, but I'm also keen to hear from the broader community of any insights. In rgl my understanding is that there's only one rotation-navigation mode, where you left-click hold and the view pivots abound the centre of the scene. In other tools, including Google Earth, that is the default behaviour but there's also a
2015 Nov 05
0
navigation mode(s) in rgl
...appreciate any pointers to how it could be done - is it an rgl-level > feature, or deeper down? If I understand your description properly, you can add it using the "user" mouse mode (see ?par3d). You should also see that help topic for a description of how rendering is done, and ?rgl.setMouseCallbacks for an example of doing it. The hard part in doing this is in working out *exactly* what you want the mouse to do. If you work that out for the mode you want but find the "user" mode is unsatisfactory for some reason, I'd be willing to add it as another built in mode. Duncan Murdo...
2009 May 12
2
selecting points on 3D scatterplots
Hello Everyone, I am new to R and need some help. I have a matrix of x,y,z coordinates that I would like to interactively plot in 3D and then using the cursor select points on the plot and have the coordinates sent to a matrix. I am using the rgl package to plot the data at the moment because it allows me to rotate and zoom. I also tried cloud and scatterplot3D. I am looking for a function like
2009 Dec 07
1
rgl keyboard shortcut for translation on Mac?
Hello Everyone. I?m on a Mac, using rgl. Thanks to all the developers and maintainers on it! If I drag the mouse, I can rotate the view, if I hold down the option key or the ctrl key and drag, I get scaling (though at times I seem to alter the perspective?). Adding the shift key doesn't seem to modify anything. So, what I can't find is a key combination that translates the object.
2011 Apr 25
1
Defining origin for rotation in RGL device
Hi all, How can I tell RGL to set the center for the rotation to the origin of the coordinate system (0,0,0). It seems that the default is to use the center of the display not the origin of the coordinate system. open3d() lines3d(c(0, 1), c(0,0), c(0,0)) lines3d(c(0,0), c(0, 1), c(0,0)) lines3d(c(0,0), c(0,0), c(0, 1)) TIA Mark ??????????????????????????????????????? Mark Heckmann Blog:
2008 Aug 30
1
Saving 3d objects vs. pausing in non-interactive (scripted) mode
I am using the RGL library in scripted (non-interactive) mode, but wish to give the data analyst an opportunity to exam the 3D plots. The "data analysts" understand the data, but not R. My intent is to provide simple Windows (XP) batch files that call R and automatically pass scripts to it, and thus permit the analyst to easily access graphics without having to cut and paste commands