Package org.jdesktop.wonderland.client.cell

Examples of org.jdesktop.wonderland.client.cell.TransformChangeListener


        // Create a listener for changes in the Cell's transform and update
        // the GUI appropriately. We need to do this updating of the GUI in the
        // AWT Event Thread. We also want to make a note that the values are
        // being set programmatically so they do not spawn extra messages to the
        // movable component.
        transformListener = new TransformChangeListener() {
            public void transformChanged(Cell cell, ChangeSource source) {
                SwingUtilities.invokeLater(new Runnable() {
                    public void run() {
                        try {
                            setLocalChanges(true);
View Full Code Here


            }
        };

        // Listen for changes to the cell transform that may be done by other
        // parts of this client or other clients.
        transformListener = new TransformChangeListener() {

            public void transformChanged(Cell cell, ChangeSource source) {
                // We must call this in the AWT Event Thread
                SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

        // Listen for changes to the cell's translation and apply the same
        // update to the root node of the bounds viewer. We also re-set the size
        // of the bounds: this handles the case where the bounds of the
        // scene graph has changed and we need to update the bounds viewer
        // accordingly.
        updateListener = new TransformChangeListener() {
            public void transformChanged(final Cell cell, ChangeSource source) {
                // We need to perform this work inside a proper updater, to
                // make sure we are MT thread safe
                final WorldManager wm = ClientContextJME.getWorldManager();
                RenderUpdater u = new RenderUpdater() {
View Full Code Here

        currentRotation.loadIdentity();


        // TODO add Float editors to the spinners

        userMotionListener = new TransformChangeListener() {

            private Vector3f look = new Vector3f();
            private Vector3f pos = new Vector3f();

            public void transformChanged(Cell cell, ChangeSource source) {
View Full Code Here

        // Listen for changes to the cell's translation and apply the same
        // update to the root node of the bounds viewer. We also re-set the size
        // of the bounds: this handles the case where the bounds of the
        // scene graph has changed and we need to update the bounds viewer
        // accordingly.
        updateListener = new TransformChangeListener() {
            public void transformChanged(final Cell cell, ChangeSource source) {
                // We need to perform this work inside a proper updater, to
                // make sure we are MT thread safe
                final WorldManager wm = ClientContextJME.getWorldManager();
                RenderUpdater u = new RenderUpdater() {
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.cell.TransformChangeListener

Copyright © 2018 www.massapicom. 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.