Examples of Placemark


Examples of org.jdesktop.wonderland.modules.placemarks.api.common.Placemark

            return;
        }

        // Add the new placemark to the list of placemarks. Write the data
        // back out to the file.
        Placemark placemark = new Placemark(name, url, x, y, z, angle);
        placemarkList.addPlacemark(placemark);
        setPlacemarkList(placemarkList);

        // Tell the config connection that we have added a new Placemark, if
        // the config connection exists (it should)
View Full Code Here

Examples of org.jdesktop.wonderland.modules.placemarks.api.common.Placemark

        Collection<PlacemarkEntry> entries = new ArrayList();
        PlacemarkList placemarkList = getPlacemarkList();
        Set<String> nameSet = placemarkList.getPlacemarkNames();
        for (String name : nameSet) {
            // Create a new entry for the HTML page to list
            Placemark placemark = placemarkList.getPlacemark(name);
            PlacemarkEntry entry = new PlacemarkEntry();
            entry.name = placemark.getName();
            entry.url = placemark.getUrl();
            entry.x = placemark.getX();
            entry.y = placemark.getY();
            entry.z = placemark.getZ();
            entry.angle = placemark.getAngle();

            // Add an action to "Delete" the entry
            String url = "delete&name=" + name;
            entry.addAction(new PlacemarkAction("delete", url));
            entries.add(entry);
View Full Code Here

Examples of org.jdesktop.wonderland.modules.placemarks.api.common.Placemark

            register();
        }
    }

    protected void register() {
        Placemark pm = toPlacemark(placemarkName);
        if (pm != null) {
            PlacemarkRegistrySrvFactory.getInstance().registerPlacemark(pm);
        }
    }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.placemarks.api.common.Placemark

        }
    }

    protected void unregister() {
        // construct a fake placemark with the given name
        Placemark pm = new Placemark(placemarkName, null, 0, 0, 0, 0
                , ColorRGBA.black, ColorRGBA.white, "", "Teleporting. Please Wait...");
        PlacemarkRegistrySrvFactory.getInstance().unregisterPlacemark(pm);
    }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.placemarks.api.common.Placemark

        // convert angle to degrees
        angle = (float) Math.toDegrees(angle);

        // create placemark
        return new Placemark(placemarkName, null, trans.x, trans.y, trans.z, angle,
                backgroundColor, textColor, imageURL, message);   
    }
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.