Package org.nlogo.api

Examples of org.nlogo.api.WorldDimensions3D


    return fastGetPatchAt(xc, yc, 0);
  }

  @Override
  public void createPatches(WorldDimensions dim) {
    WorldDimensions3D d = (WorldDimensions3D) dim;
    createPatches(dim.minPxcor(), dim.maxPxcor(),
                  dim.minPycor(), dim.maxPycor(),
                  d.minPzcor(), d.maxPzcor());
  }
View Full Code Here


  // to vary the size of the world without
  // knowing quite so much about the world.
  // ev 2/20/06
  @Override
  public WorldDimensions getDimensions() {
    return new WorldDimensions3D
        (_minPxcor, _maxPxcor, _minPycor, _maxPycor, _minPzcor, _maxPzcor);
  }
View Full Code Here

      d.maxPxcor_$eq(growMax(_minPxcor, _maxPxcor, value, d.maxPxcor()));
    } else if (variableName.equalsIgnoreCase("WORLD-HEIGHT")) {
      d.minPycor_$eq(growMin(_minPycor, _maxPycor, value, d.minPycor()));
      d.maxPycor_$eq(growMax(_minPycor, _maxPycor, value, d.maxPycor()));
    } else if (variableName.equalsIgnoreCase("WORLD-DEPTH")) {
      WorldDimensions3D wd = (WorldDimensions3D) d;
      wd.minPzcor_$eq(growMin(_minPzcor, _maxPzcor, value, wd.minPzcor()));
      wd.maxPzcor_$eq(growMax(_minPzcor, _maxPzcor, value, wd.maxPzcor()));
    }
    return d;
  }
View Full Code Here

      World3D w = (World3D) world;

      if (minx != world.minPxcor() || maxx != world.maxPxcor() ||
          miny != world.minPycor() || maxy != world.maxPycor() ||
          minz != w.minPzcor() || maxz != w.maxPzcor()) {
        importerUser.setDimensions(new WorldDimensions3D(minx, maxx, miny, maxy, minz, maxz));
        needToResize = true;
      }
    } catch (ClassCastException cce) {
      String abortingError = "Illegal Screen dimension- max-px/y/zcor, min-px/y/zcor must be numbers.";
      throw new AbortingImportException
View Full Code Here

TOP

Related Classes of org.nlogo.api.WorldDimensions3D

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.