Examples of Sector


Examples of gov.nasa.worldwind.geom.Sector

   
    @Override
    public Iterable<? extends LatLon> getLocationsRenderableObject()
    {
       SurfaceSector ssr = (SurfaceSector) super._rndObject;
       Sector sec = ssr.getSector();
      
       LatLon llnMin = new LatLon(sec.getMinLatitude(), sec.getMinLongitude());
       LatLon llnMax = new LatLon(sec.getMaxLatitude(), sec.getMaxLongitude());
      
       List<LatLon> lstLatLon = new ArrayList<LatLon>();
       lstLatLon.add(llnMin);
       lstLatLon.add(llnMax);
      
View Full Code Here

Examples of gov.nasa.worldwind.geom.Sector

            sb.append("&width=");
            sb.append(tile.getWidth());
            sb.append("&height=");
            sb.append(tile.getHeight());

            Sector s = tile.getSector();
            sb.append("&bbox=");
            sb.append(s.getMinLongitude().getDegrees());
            sb.append(",");
            sb.append(s.getMinLatitude().getDegrees());
            sb.append(",");
            sb.append(s.getMaxLongitude().getDegrees());
            sb.append(",");
            sb.append(s.getMaxLatitude().getDegrees());
            sb.append("&"); // terminate the query string

            return new java.net.URL(sb.toString().replace(" ", "%20"));
        }
View Full Code Here

Examples of gov.nasa.worldwind.geom.Sector

            Logging.logger().severe("WMS.NoImageFormats");
            throw new WWRuntimeException(Logging.getMessage("WMS.NoImageFormats"));
        }

        // Determine bounding sector.
        Sector sector = (Sector) params.getValue(AVKey.SECTOR);
        if (sector == null)
        {
            for (String name : names)
            {
                Sector layerSector = caps.getLayerByName(name).getGeographicBoundingBox();
                if (layerSector == null)
                {
                    Logging.logger().log(java.util.logging.Level.SEVERE, "WMS.NoGeographicBoundingBoxForLayer", name);
                    continue;
                }
View Full Code Here

Examples of net.cis.common.model.sector.Sector

    nifty.fromXml("hud/onBoardUI.xml", "onBoard");
    ((OnBoardUIController) nifty.getScreen("onBoard").getScreenController()).initialize();

    // datamodel laden
    // int sectorID = userData.getSectorId();
    Sector sector = null;

    // co erzeugen
    SectorFactory sf = new SectorFactory();
    sf.addControlledObject(sector);
View Full Code Here

Examples of net.cis.common.model.sector.Sector

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setParentSector(Sector newParentSector) {
    Sector oldParentSector = parentSector;
    parentSector = newParentSector;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, StructurePackage.JUMPGATE__PARENT_SECTOR, oldParentSector, parentSector));
  }
View Full Code Here

Examples of org.moparscape.msc.gs.model.landscape.Sector

  // private ZipOutputStream out;

  private boolean loadSection(int sectionX, int sectionY, int height,
      World world, int bigX, int bigY) {
    // Logging.debug(1);
    Sector s = null;
    try {
      String filename = "h" + height + "x" + sectionX + "y" + sectionY;
      ZipEntry e = tileArchive.getEntry(filename);
      if (e == null) {
        // throw new Exception("Missing tile: " + filename);
        System.out.println("Missing tile: " + filename + " ex: "
            + (bigX + 10) + ", " + (bigY + 10));
        return false;
      }
      ByteBuffer data = DataConversions
          .streamToBuffer(new BufferedInputStream(tileArchive
              .getInputStream(e)));
      s = Sector.unpack(data);
      // s = modifyAndSave(filename, s, bigX, bigY);
    } catch (Exception e) {
      Logger.error(e);
    }
    // Logging.debug(2);
    for (int y = 0; y < Sector.HEIGHT; y++) {
      for (int x = 0; x < Sector.WIDTH; x++) {
        int bx = bigX + x;
        int by = bigY + y;
        if (!world.withinWorld(bx, by)) {
          continue;
        }

        MutableTileValue t = new MutableTileValue(world.getTileValue(
            bx, by));
        t.overlay = s.getTile(x, y).groundOverlay;
        t.diagWallVal = s.getTile(x, y).diagonalWalls;
        t.horizontalWallVal = s.getTile(x, y).horizontalWall;
        t.verticalWallVal = s.getTile(x, y).verticalWall;
        t.elevation = s.getTile(x, y).groundElevation;
        /** start of shit **/
        if ((s.getTile(x, y).groundOverlay & 0xff) == 250) {
          s.getTile(x, y).groundOverlay = (byte) 2;
        }
        /** break in shit **/
        int groundOverlay = s.getTile(x, y).groundOverlay & 0xFF;
        if (groundOverlay > 0
            && EntityHandler.getTileDef(groundOverlay - 1)
                .getObjectType() != 0) {
          t.mapValue |= 0x40; // 64
        }

        int verticalWall = s.getTile(x, y).verticalWall & 0xFF;
        if (verticalWall > 0
            && EntityHandler.getDoorDef(verticalWall - 1)
                .getUnknown() == 0
            && EntityHandler.getDoorDef(verticalWall - 1)
                .getDoorType() != 0) {
          t.mapValue |= 1; // 1
          MutableTileValue t1 = new MutableTileValue(
              world.getTileValue(bx, by - 1));
          t1.mapValue |= 4; // 4
          world.setTileValue(bx, by - 1, t1.toTileValue());
        }

        int horizontalWall = s.getTile(x, y).horizontalWall & 0xFF;
        if (horizontalWall > 0
            && EntityHandler.getDoorDef(horizontalWall - 1)
                .getUnknown() == 0
            && EntityHandler.getDoorDef(horizontalWall - 1)
                .getDoorType() != 0) {
          t.mapValue |= 2; // 2
          MutableTileValue t1 = new MutableTileValue(
              world.getTileValue(bx - 1, by));
          t1.mapValue |= 8;
          world.setTileValue(bx - 1, by, t1.toTileValue());
        }

        int diagonalWalls = s.getTile(x, y).diagonalWalls;
        if (diagonalWalls > 0
            && diagonalWalls < 12000
            && EntityHandler.getDoorDef(diagonalWalls - 1)
                .getUnknown() == 0
            && EntityHandler.getDoorDef(diagonalWalls - 1)
View Full Code Here

Examples of org.sd_network.vfssector.db.Sector

        checkWriteLocked(fileID);

        _writeLockedSet.add(fileID);
        clearUsedBytes();
        try {
            Sector lastSector = SectorDB.getLastSector(fileID);
            return new SectorOutputStream(lastSector, this);
        } catch (Exception e) {
            throw new SectorException(e);
        }
    }
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.