6ebf6f2511
git-svn-id: https://osmand.googlecode.com/svn/trunk@523 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
56 lines
1.1 KiB
Java
56 lines
1.1 KiB
Java
package net.osmand.osm;
|
|
|
|
public class MultyPolygon extends MapRenderObject {
|
|
|
|
// currently do not distinguish inner/outer area
|
|
// just not fill intersecting areas
|
|
// first 32 bits - x, second 32 bits - y
|
|
private long[][] lines = null;
|
|
public MultyPolygon(){
|
|
super(-1);
|
|
}
|
|
|
|
@Override
|
|
public int getPointsLength() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override
|
|
public int getPoint31XTile(int ind) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override
|
|
public void setData(byte[] data) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
public int getPoint31YTile(int ind) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
public int getBoundsCount(){
|
|
return lines == null ? 0 : lines.length;
|
|
}
|
|
|
|
public int getBoundPointsCount(int bound){
|
|
return lines[bound].length;
|
|
}
|
|
|
|
public void setLines(long[][] lines) {
|
|
this.lines = lines;
|
|
}
|
|
|
|
|
|
public int getPoint31XTile(int ind, int b) {
|
|
return (int)(lines[b][ind] >> 32);
|
|
}
|
|
|
|
public int getPoint31YTile(int ind, int b) {
|
|
return (int)(lines[b][ind] & Integer.MAX_VALUE);
|
|
}
|
|
}
|
|
|