Package org.eclipse.mosaic.lib.spatial
Interface SpatialItemAdapter<T>
-
- All Known Implementing Classes:
SpatialItemAdapter.AreaAdapter
,SpatialItemAdapter.EdgeAdapter
,SpatialItemAdapter.PointAdapter
,SpatialObjectAdapter
public interface SpatialItemAdapter<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SpatialItemAdapter.AreaAdapter<T extends Area<?>>
static class
SpatialItemAdapter.EdgeAdapter<T extends Edge<?>>
static class
SpatialItemAdapter.PointAdapter<T extends Vector3d>
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Vector3d
getCenter(T item, Vector3d result)
default double
getCenterX(T item)
default double
getCenterY(T item)
default double
getCenterZ(T item)
default int
getItemHash(T item)
default Vector3d
getMax(T item, Vector3d result)
default double
getMaxX(T item)
default double
getMaxY(T item)
default double
getMaxZ(T item)
default Vector3d
getMin(T item, Vector3d result)
double
getMinX(T item)
double
getMinY(T item)
double
getMinZ(T item)
default void
setNode(T item, SpatialTree.Node node)
-
-
-
Method Detail
-
getItemHash
default int getItemHash(T item)
-
getMinX
double getMinX(T item)
-
getMinY
double getMinY(T item)
-
getMinZ
double getMinZ(T item)
-
getMaxX
default double getMaxX(T item)
-
getMaxY
default double getMaxY(T item)
-
getMaxZ
default double getMaxZ(T item)
-
getCenterX
default double getCenterX(T item)
-
getCenterY
default double getCenterY(T item)
-
getCenterZ
default double getCenterZ(T item)
-
setNode
default void setNode(T item, SpatialTree.Node node)
-
-