I need your help and your knowledge one more time. But it's not very pressing, so not a problem if you don't have time.
Here is my problem, still for the 3D view, I can have the location of the frame but there is the landmark of the view that can be moved, so I need to apply a transformation to the input (touch) coordinate like it is done with the mouse coordinate input. I don't know if I'm clear. thanks for your help Le lundi 27 janvier 2014 19:58:12 UTC+1, Seth Tisue a écrit : > > >>>>> "Chris" == Chris Coat <[email protected] <javascript:>> writes: > > Chris> If you can please just confirm me that the api.ExtensionContext > Chris> you were talking about is the context that can be found in the > Chris> perform methods. Didn't find the ExtensionContext in > Chris> org.netlogo.api. > > Oops, sorry, yes, I meant api.Context. (That's the interface that > nvm.ExtensionContext implements. Confusingly, there is also nvm.Context > which is unrelated.) > > Chris> Do you know how it works when the View is set to 3D mode ? I > Chris> can't find how to get the position in that case. > > I don't know the 3D code very well, but this should put you on the > trail, at least: > > window.GUIWorkspace has a public `glView` member, where the "gl" part > means 3D, in reference to OpenGL. It holds an object that implements > the window.GLViewManagerInterface. The implementing class is > org.nlogo.gl.view.ViewManager, which has a currentView() member which > will return a gl.view.View, which extends java.awt.Frame. > > -- > Seth Tisue | http://tisue.net > -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
