Package org.jdesktop.wonderland.modules.defaultenvironment.common

Examples of org.jdesktop.wonderland.modules.defaultenvironment.common.SharedSkybox


        model.removeAllElements();
        populateSkyboxList(currentSkyboxMap);
    }

    private void showSkyboxEditorDialog(boolean useExistingSkybox) {
        SharedSkybox skyboxPassedToEditorPanel = null;
        String name = getSelectedSkyboxName();
       
        if(useExistingSkybox && currentSkyboxMap.containsKey(name)) {
            skyboxPassedToEditorPanel = (SharedSkybox)currentSkyboxMap.get(name);           
        } else {
View Full Code Here


                             String eastURI,
                             String westURI,
                             String upURI,
                             String downURI) {
        if(currentSkyboxMap.containsKey(name)) {
            SharedSkybox tmp = (SharedSkybox)currentSkyboxMap.get(name);
            tmp.setDescription(description);
            tmp.setNorth(northURI);
            tmp.setSouth(soutURI);
            tmp.setEast(eastURI);
            tmp.setWest(westURI);
            tmp.setUp(upURI);
            tmp.setDown(downURI);
        } else {
            LOGGER.warning("That skybox, "+name+", doesn't exist in current map");
        }
    }
View Full Code Here

       
        if(map == null || activeName == null)
            return;
       
        if(!map.containsKey("default") && activeName.equals("default")) {
            map.put("default", new SharedSkybox("default",
                                                "Default Skybox",
                                                "wla://defaultenvironment/skybox1/1.jpg",
                                                "wla://defaultenvironment/skybox1/3.jpg",
                                                "wla://defaultenvironment/skybox1/2.jpg",
                                                "wla://defaultenvironment/skybox1/4.jpg",
                                                "wla://defaultenvironment/skybox1/6.jpg",
                                                "wla://defaultenvironment/skybox1/5.jpg"));
            return;
        }
       
        if(!map.containsKey(activeName)) {
            LOGGER.warning("Skybox map does not contain: "+activeName+""
                    + ". Defaulting.");
           
            SharedSkybox defaultSky = (SharedSkybox)map.get("default");
            updateSkybox(defaultSky.getNorth(),
                         defaultSky.getSouth(),
                         defaultSky.getEast(),
                         defaultSky.getWest(),
                         defaultSky.getUp(),
                         defaultSky.getDown());
        } else {
            LOGGER.fine("Activating skybox: "+activeName);
            SharedSkybox ssbox = (SharedSkybox)map.get(activeName);

            updateSkybox(ssbox.getNorth(),
                         ssbox.getSouth(),
                         ssbox.getEast(),
                         ssbox.getWest(),
                         ssbox.getUp(),
                         ssbox.getDown());
        }

    }
View Full Code Here

                        eastURI,
                        westURI,
                        upURI,
                        downURI);
            } else {
                skyboxProperties.addSkyboxToList(new SharedSkybox(name,
                        description,
                        northURI,
                        southURI,
                        eastURI,
                        westURI,
View Full Code Here

//            map.put("down", SharedString.valueOf(originalDown));
    }
   
    public void apply() {
        if(isDirty())  {
            skyboxProperties.addSkyboxToList(new SharedSkybox(name,
                                                              description,
                                                              northURI,
                                                              southURI,
                                                              eastURI,
                                                              westURI,
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.defaultenvironment.common.SharedSkybox

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.