public class RoverBytes extends java.lang.Object implements RoverConstants
| Modifier and Type | Field and Description |
|---|---|
ByteBuffer |
bytes |
TiledRoverSet |
dataSet |
int |
geometryType |
double |
originX |
double |
originY |
boolean |
tiled |
int |
tileLOD |
double |
tileSize |
int |
tileX |
int |
tileY |
ALIGN_BOTTOM_CENTER, ALIGN_BOTTOM_FIT, ALIGN_BOTTOM_LEFT, ALIGN_BOTTOM_RIGHT, ALIGN_CENTER, ALIGN_CENTER_LEFT, ALIGN_CENTER_RIGHT, ALIGN_CODE_CENTER, ALIGN_CODE_FIT, ALIGN_CODE_HIGH, ALIGN_CODE_LOW, ALIGN_FIT, ALIGN_FIT_LEFT, ALIGN_FIT_RIGHT, ALIGN_TOP_CENTER, ALIGN_TOP_FIT, ALIGN_TOP_LEFT, ALIGN_TOP_RIGHT, COMMENT, DATA_FIELDS_MAX, EOF, FLOAT_COORDS, GEOMETRY_TYPE_NAMES, HAS_DATA, HAS_OFFSET, HAS_ROTATION, IMAGE, LIST, LUMP_CODE_TYPE_AREA, LUMP_CODE_TYPE_IMAGE, LUMP_CODE_TYPE_LINE, LUMP_CODE_TYPE_POINT, LUMP_CODE_TYPE_TEXT, MASK_TYPECODE, NAMING, POINT, POINT_COLOR, POLYGON, POLYLINE, POP, PUSH, ROTATION_MULT, TEXEL_COORD_MAX, TEXT, TEXT_LONG, TILE_COORD_MAX, TILE_SIZE_PIXELS, VALUE| Modifier | Constructor and Description |
|---|---|
protected |
RoverBytes() |
|
RoverBytes(byte[] bytes) |
|
RoverBytes(ByteBuffer bytes) |
|
RoverBytes(TiledRoverSet dataSet,
int geometryType,
int tileLOD,
int tileX,
int tileY) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
RoverBytes |
copy() |
long |
generateKey() |
java.lang.String |
generateKeyString() |
boolean |
isEmpty() |
java.lang.String |
readASCII(int length) |
Point |
readCoord(boolean floatCoords) |
Point |
readCoordNearest(double x,
double y,
double scale) |
Point |
readFirstCoord() |
Point |
readFirstCoord(double scale)
Reads the first coordinate, taking into account offset for point and text
features, at the given scale.
|
int |
readFirstGeometryType() |
float |
readFloat() |
int |
readInt8() |
int |
readUInt16() |
int |
readUInt32() |
int |
readUInt8() |
void |
reset() |
java.lang.String |
toString() |
public boolean tiled
public int tileLOD
public int tileX
public int tileY
public int geometryType
public double originX
public double originY
public double tileSize
public ByteBuffer bytes
public TiledRoverSet dataSet
public RoverBytes(TiledRoverSet dataSet, int geometryType, int tileLOD, int tileX, int tileY)
public RoverBytes(ByteBuffer bytes)
public RoverBytes(byte[] bytes)
protected RoverBytes()
public RoverBytes copy()
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic long generateKey()
public java.lang.String generateKeyString()
public void reset()
public int readUInt8()
public int readInt8()
public int readUInt16()
public int readUInt32()
public float readFloat()
public boolean isEmpty()
public java.lang.String readASCII(int length)
public Point readFirstCoord()
public Point readFirstCoord(double scale)
scale - public int readFirstGeometryType()
public Point readCoord(boolean floatCoords)
public Point readCoordNearest(double x, double y, double scale)