public class HullRaster
extends java.lang.Object
Constructor and Description |
---|
HullRaster(Graph graph,
Log log) |
Modifier and Type | Method and Description |
---|---|
void |
build(int[] vids,
float gridSize)
Erzeugt das Raster fuer eine Menge von VertexIds.
|
int |
cellIdOf(double lat,
double lon)
Liefert die Id der Zelle aufgrund der uebergebenen Koordinaten.
|
LatLon |
getAnchor(int cellId)
Liefert den Ankerpunkt der Zelle.
|
int[] |
getCell(int cellId)
Liefert eine Zelle, d.h. eine Menge von VertexIds,
die in ihr liegen fuer eine Koordinate.
|
int[] |
getCells(int sourceId,
int targetId,
float depth) |
int[] |
getCells(LatLon c1,
LatLon c2,
float depth) |
int |
getMaxVertexId() |
int[] |
rasterLine(double y1,
double x1,
double y2,
double x2,
float depth) |
int[] |
rasterLine(int sourceId,
int targetId,
float depth) |
LatLons |
toPoints(int cellId) |
LatLons |
toRect(int cellId) |
public int getMaxVertexId()
public int[] getCell(int cellId)
cellId
- int Id der Zellepublic LatLon getAnchor(int cellId)
cellId
- int Id der Zelle.LatLon
Koordinate des Ankerpunkts.public LatLons toRect(int cellId)
public LatLons toPoints(int cellId)
public int cellIdOf(double lat, double lon)
lat
- double Breitengradlon
- double Laengengradpublic int[] getCells(int sourceId, int targetId, float depth)
public int[] rasterLine(int sourceId, int targetId, float depth)
public int[] rasterLine(double y1, double x1, double y2, double x2, float depth)
public void build(int[] vids, float gridSize)
vids
- int[] Array von VertexIds, implizit Zeiger auf Koordinaten.gridSize
- Groesse einer Raster-Zelle x und y.