Class AbstractVectorGeometry
java.lang.Object
net.buildtheearth.terraminusminus.dataset.vector.geometry.AbstractVectorGeometry
- All Implemented Interfaces:
Comparable<VectorGeometry>,VectorGeometry,Bounds2d
- Direct Known Subclasses:
AbstractLine,AbstractPolygon
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NonNull DrawFunctionprotected final @NonNull Stringprotected final double -
Constructor Summary
ConstructorsConstructorDescriptionAbstractVectorGeometry(@NonNull String id, double layer, @NonNull DrawFunction draw) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected static voidconvertToSegments(@NonNull LineString line, @NonNull List<Segment> segments) @NonNull DrawFunctiondraw()booleaninthashCode()@NonNull Stringid()doublelayer()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.buildtheearth.terraminusminus.util.bvh.Bounds2d
contains, expand, intersects, maxX, maxZ, minX, minZ, toCornerBB, toTiles, union, validateMethods inherited from interface net.buildtheearth.terraminusminus.dataset.vector.geometry.VectorGeometry
apply, compareTo
-
Field Details
-
id
-
layer
protected final double layer -
draw
-
-
Constructor Details
-
AbstractVectorGeometry
public AbstractVectorGeometry(@NonNull @NonNull String id, double layer, @NonNull @NonNull DrawFunction draw)
-
-
Method Details
-
convertToSegments
protected static void convertToSegments(@NonNull @NonNull LineString line, @NonNull @NonNull List<Segment> segments) -
id
- Specified by:
idin interfaceVectorGeometry- Returns:
- this element's id
-
layer
public double layer()- Specified by:
layerin interfaceVectorGeometry- Returns:
- the map layer that this element is on
-
draw
-
equals
-
canEqual
-
hashCode
public int hashCode()
-