Package org.jdesktop.wonderland.client.jme

Examples of org.jdesktop.wonderland.client.jme.ViewProperties$ViewPropertiesListener


            // far away
            return cell.getWorldTransform();
        }
       
        // use the view properties to calculate the idea distance away
        ViewProperties vp = ViewManager.getViewManager().getViewProperties();
        float fov = vp.getFieldOfView();
        float min = vp.getFrontClip();
        float max = 30f;
        float distance = CellPlacementUtils.getDistance(bv, fov, min, max);
       
        // calculate the look vector to this cell -- we only care about the y axis
        // rotation
View Full Code Here


        // Find the viewproperites.xml file and parse as a ViewProperties object.
        ContentCollection c = getUserContentRepository();
        ContentResource resource = (ContentResource)c.getChild(PROPS_FILE);
        if (resource == null) {
            logger.warning("Unable to find " + PROPS_FILE + " in " + c.getPath());
            return new ViewProperties();
        }
       
        Reader r = new InputStreamReader(resource.getInputStream());
        return ViewProperties.decode(r);
    }
View Full Code Here

        // Attempt to load the stored properties from the user's local
        // repository and set the initial values in the view manager's
        // properties
        try {
            ViewProperties properties =
                    ViewPropertiesUtils.loadViewProperties();
            ViewManager manager = ViewManager.getViewManager();
            ViewProperties viewProperties = manager.getViewProperties();
            viewProperties.setFieldOfView(properties.getFieldOfView());
            viewProperties.setFrontClip(properties.getFrontClip());
            viewProperties.setBackClip(properties.getBackClip());
        } catch (java.lang.Exception excp) {
            LOGGER.log(Level.WARNING,
                    "Unable to read user's view properties", excp);
        }
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.jme.ViewProperties$ViewPropertiesListener

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.