Examples of calcIntersectionPixelOfEyeRay()


Examples of org.jdesktop.wonderland.modules.appbase.client.view.View2D.calcIntersectionPixelOfEyeRay()

                    JFrame frame = (JFrame) event.getSource();
                    Point framePoint = event.getPoint();
                    Point canvasPoint = SwingUtilities.convertPoint(frame, framePoint, canvas);
                    int canvasX = event.getX() + canvasPoint.x - framePoint.x;
                    int canvasY = event.getY() + canvasPoint.y - framePoint.y;
                    pt = view.calcIntersectionPixelOfEyeRay(canvasX, canvasY);

                    if (lastPressEventHook != null) {
                        WindowSwing.EventHookInfo hookInfo =
                            new WindowSwing.EventHookInfo(intersectionPointWorld, canvasX, canvasY);
                        lastPressEventHook.specifyHookInfoForEvent(event, hookInfo);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.