Examples of LayerSet


Examples of ini.trakem2.display.LayerSet

    MeshExporter.saveAsWaveFront(all); // pops up file dialog to save
  }

  private Ball addBallObject(Project project, double[][] data, String title) {

    LayerSet layerset = project.getRootLayerSet();
    Ball ball = new Ball(project, title, 0, 0);

    // Ball is a ZDisplayable object, so gets added to a LayerSet:
    layerset.add(ball);

    for (int i=0; i<data.length; i++) {
      // Get or create a layer for the Z
      double z = data[i][2];
      double thickness = 1;
      Layer la = layerset.getLayer(z, thickness, true); // created new if not there already
      // Insert the individual ball
      double x = data[i][0];
      double y = data[i][1];
      double r = data[i][3];
      ball.addBall(x, y, r, la.getId()); // no Z, but Layer id!
View Full Code Here

Examples of org.locationtech.udig.catalog.internal.wmt.wmtsource.ww.LayerSet

   
    @Test
    public void testLayerSetConstruct() throws Exception {
        Element rootElement = QuadTileSetTest.getRootElement();
       
        LayerSet layerSet = new LayerSet(rootElement, "");
       
        assertEquals("ZoomIt! Data", layerSet.getName());
        assertEquals(5, layerSet.getChildLayerSets().size());
        assertEquals("GLOBAL", layerSet.getChildLayerSets().get(0).getName());
        assertEquals("-ZoomIt!%20Data-GLOBAL", layerSet.getChildLayerSets().get(0).getId());
        assertEquals("Bathymetry (30 arcsec)",
                layerSet.getChildLayerSets().get(0).getQuadTileSets().get(0).getName());
       
    }
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.