Interface VectorGeometry
- All Superinterfaces:
Bounds2d,Comparable<VectorGeometry>
- All Known Implementing Classes:
AbstractLine,AbstractPolygon,AbstractVectorGeometry,DistancePolygon,FillPolygon,NarrowLine,SharpLine,WideLine
A generate-able OpenStreetMap element.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(CachedChunkData.Builder builder, int chunkX, int chunkZ, @NonNull Bounds2d bounds) Modifies the givenCachedChunkData.Builderfor the given chunkdefault intid()doublelayer()
-
Method Details
-
apply
void apply(@NonNull CachedChunkData.Builder builder, int chunkX, int chunkZ, @NonNull @NonNull Bounds2d bounds) Modifies the givenCachedChunkData.Builderfor the given chunk- Parameters:
builder- theCachedChunkData.BuilderchunkX- the chunk's X coordinatechunkZ- the chunk's Z coordinatebounds- the chunk's bounding box
-
id
String id()- Returns:
- this element's id
-
layer
double layer()- Returns:
- the map layer that this element is on
-
compareTo
- Specified by:
compareToin interfaceComparable<VectorGeometry>
-