Class VectorTileBuilder

java.lang.Object
com.github.basking2.sdsai.marchinesquares.VectorTileBuilder

public class VectorTileBuilder extends Object
  • Constructor Details

  • Method Details

    • buildIsoband

      public VectorTile buildIsoband()
      Runs Tile.isoband() and calls build().
      Returns:
      A built vector tile.
      Throws:
      RuntimeException - on errors that prevent object construction.
    • build

      public VectorTile build()
      Build a new VectorTile or throw a RuntimeException. The tile should have had Tile.isoband() run on it already.
      Returns:
      A built vector tile.
      Throws:
      RuntimeException - on errors that prevent object construction.
    • buildConstantTile

      public static VectorTile buildConstantTile(byte value, int height, int width)
      Build a tile that has no contours because it is composed of solid values. What this does is creates the 4 sides of the tile, all sides not having any points, only the cell value. This may be used by VectorTileGroup to close off a collection of tiles.
      Parameters:
      value - The value that this tile should be considered to be comprised of.
      height - The height of the tile.
      width - The width of the tile.
      Returns:
      A newly built tile with no features and top, bottom, left, and right side lists defined..