Examples of MouseEvent3D


Examples of org.jdesktop.wonderland.client.jme.input.MouseEvent3D

      return null;
  }

  // Create the Wonderland event which corresponds to this AWT event
  // (and, for drag events, attach the raw hit pick info).
  MouseEvent3D event = (MouseEvent3D) createWonderlandEvent(awtMouseEvent);

  // Get the destination entity and move pick details into the event
  PickDetails pickDetails = destPickInfo.get(0);
        Entity entity = pickDetails.getEntity();
  logger.fine("Picker: pickDetails = " + pickDetails);
        logger.fine("Picker: entity = " + entity);
        event.setPickDetails(pickDetails);
        if (eventID == MouseEvent.MOUSE_DRAGGED && hitPickInfo != null) {
            MouseDraggedEvent3D de3d = (MouseDraggedEvent3D) event;
            if (hitPickInfo.size() > 0) {
                de3d.setHitPickDetails(hitPickInfo.get(0));
            }
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.input.MouseEvent3D

     * This method does not return a result but instead enqueues an entry for the event in
     * the input queue of the event deliverer.
     */
    void pickMouseEvent3D (MouseEvent awtEvent) {
  logger.fine("pickMouseEvent3D: Received awt event = " + awtEvent);
  MouseEvent3D event;

  // Determine the destination pick info by reading from the pickInfo Queue, performing a pick,
  // considering grabs. etc.
  DetermineDestPickInfoReturn ret = determineDestPickInfo(awtEvent);
  if (ret == null) {
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.input.MouseEvent3D

                    if (awt.getID()== MouseEvent.MOUSE_PRESSED && (awt.getModifiersEx() & onmask)==onmask ) {
                        lastMouseX = awt.getX();
                        lastMouseY = awt.getY();
                    }
                } else if (e instanceof MouseDraggedEvent3D) {
                    MouseEvent3D me = (MouseEvent3D)e;
                    MouseEvent awtMe = (MouseEvent)me.getAwtEvent();
                    if (awtMe.getID() == MouseEvent.MOUSE_DRAGGED && (awtMe.getModifiersEx() & onmask)==onmask ) {
                        processRotations(me);
                        updateRotations = true;
                    }
                } else if (e instanceof KeyEvent3D) {
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.input.MouseEvent3D

        }

        @Override
        public void commitEvent(Event event) {
            // Fetch and cast some event objects
            MouseEvent3D mouseEvent = (MouseEvent3D)event;
            MouseEvent awtMouseEvent = (MouseEvent)mouseEvent.getAwtEvent();

            // Figure out where the initial mouse button press happened and
            // store the initial position. We also store the center of the
            // affordance.
            if (event instanceof MouseButtonEvent3D) {
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.input.MouseEvent3D

        }

        @Override
        public void commitEvent(Event event) {
            // Fetch and cast some event objects
            MouseEvent3D mouseEvent = (MouseEvent3D)event;
            MouseEvent awtMouseEvent = (MouseEvent)mouseEvent.getAwtEvent();

            // Figure out where the initial mouse button press happened and
            // store the initial position
            if (event instanceof MouseButtonEvent3D) {
                MouseButtonEvent3D buttonEvent = (MouseButtonEvent3D) event;
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.input.MouseEvent3D

        }

        @Override
        public void commitEvent(Event event) {
            // Fetch and cast some event objects
            MouseEvent3D mouseEvent = (MouseEvent3D)event;
            MouseEvent awtMouseEvent = (MouseEvent)mouseEvent.getAwtEvent();

            // Figure out where the initial mouse button press happened and
            // store the initial position. We also store the center of the
            // affordance.
            if (event instanceof MouseButtonEvent3D) {
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.input.MouseEvent3D

            }
            logger.fine("Mouse event is meant for this listener, event = " + event);

            // Always consume the control change event over the interior even when the app
            // doesn't have control and the app entity doesn't have focus
            MouseEvent3D me3d = (MouseEvent3D) event;
            if (isChangeControlEvent((MouseEvent) me3d.getAwtEvent())) {
                return true;
            }

            if (app == null || app.getControlArb() == null) return false;
            if (!app.getControlArb().hasControl()) {
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.input.MouseEvent3D

        }

        @Override
        public void commitEvent(Event event) {
            logger.fine("Interior mouse commitEvent, event = " + event);
            final MouseEvent3D me3d = (MouseEvent3D) event;

            // When user has control all events over the interior are sent to the app.
            // First send it to the app's view for conversion to a 2D event.
           
            if (view != null) {
                if (view.getWindow().getApp().getControlArb().hasControl()) {
                    SwingUtilities.invokeLater(new Runnable () {
                        public void run () {
                            if (view != null) {
                                view.deliverEvent(view.getWindow(), me3d);
                            }
                        }
                    });
                    return;
                }
            }

            MouseEvent me = (MouseEvent) me3d.getAwtEvent();

            // Handle miscellaneous events over interior when user doesn't have control
            Action action = determineIfMiscAction(me, me3d);
            if (action != null) {
                performMiscAction(action, me, me3d);
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.input.MouseEvent3D

        /**
         * Called when a 3D event has occurred.
         */
        @Override
        public void commitEvent(Event event) {
            MouseEvent3D me3d = (MouseEvent3D) event;

            if (me3d instanceof MouseEnterExitEvent3D) {
                mouseIsInside = ((MouseEnterExitEvent3D) me3d).isEnter();
            }

            // Process change control event even if not enabled
            if (Gui2D.isChangeControlEvent((MouseEvent)me3d.getAwtEvent())) {

                boolean prevHasControl = view.getWindow().getApp().getControlArb().hasControl();

                super.commitEvent(event);
               
View Full Code Here

Examples of org.jdesktop.wonderland.client.jme.input.MouseEvent3D

         */
        @Override
        public void commitEvent(Event event) {
            Action action;

            MouseEvent3D me3d = (MouseEvent3D) event;
            MouseEvent me = (MouseEvent) me3d.getAwtEvent();

            // Support closing only when user has control
            action = determineIfCloseAction(me, me3d);
            if (action != null) {
                performCloseAction(action);
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.