Package org.earth3d.jearth.model.geometry

Examples of org.earth3d.jearth.model.geometry.Geometry


      // create heightfields
      insertHeightfields(heightfields, getOutputDir() + File.separator + "heightfield");
     
      // create a geometry file for this map
      Geometry geo = createGeometryFile(getOutputDir() + File.separator + "geometry.mxml");
     
      // create a service file for this geometry
      ServiceList sl = new ServiceList();
      Service service = sl.addGeometry("geometry.mxml", geo);
      service.setName(getMapName());
View Full Code Here


      for(int i=0; i<nodes.getLength(); i++) {
        Node urlnode = nodes.item(i);
        if (urlnode.getNodeType() == Node.ELEMENT_NODE) {
          Element elem = (Element) urlnode;
          if (elem.getTagName().equalsIgnoreCase("geometry")) {
            Geometry newGeometry = GeometryFactory.instance().newGeometry(elem.getAttribute("type"), source);
            newGeometry.parse(elem);
            setGeometry(newGeometry);
          }
        }
      }
    }
View Full Code Here

      public void actionPerformed(ActionEvent e) {
        ServiceList sl;
        try {
          sl = geoDataModel.loadServiceList(new URL(getJTextFieldURL().getText()));
          Service service = geoDataModel.loadService(sl.getServices().get(0));
          Geometry geo = geoDataModel.loadGeometry(service.getGeometry());
          dispose();
        } catch (MalformedURLException e1) {
          e1.printStackTrace();
        }
      }
View Full Code Here

TOP

Related Classes of org.earth3d.jearth.model.geometry.Geometry

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.