Module org.apache.lucene.spatial3d
Package org.apache.lucene.spatial3d.geom
Class GeoBaseCompositeMembershipShape<T extends GeoMembershipShape>
java.lang.Object
org.apache.lucene.spatial3d.geom.BasePlanetObject
org.apache.lucene.spatial3d.geom.GeoBaseCompositeShape<T>
org.apache.lucene.spatial3d.geom.GeoBaseCompositeMembershipShape<T>
- Type Parameters:
T- is the type of GeoMembershipShapes of the composite.
- All Implemented Interfaces:
Bounded,GeoBounds,GeoMembershipShape,GeoOutsideDistance,GeoShape,Membership,PlanetObject,SerializableObject
- Direct Known Subclasses:
GeoBaseCompositeAreaShape,GeoCompositeMembershipShape
abstract class GeoBaseCompositeMembershipShape<T extends GeoMembershipShape>
extends GeoBaseCompositeShape<T>
implements GeoMembershipShape
Base class to create a composite of GeoMembershipShapes
-
Field Summary
Fields inherited from class org.apache.lucene.spatial3d.geom.GeoBaseCompositeShape
shapesFields inherited from class org.apache.lucene.spatial3d.geom.BasePlanetObject
planetModel -
Constructor Summary
ConstructorsConstructorDescriptionGeoBaseCompositeMembershipShape(PlanetModel planetModel) Constructor.GeoBaseCompositeMembershipShape(PlanetModel planetModel, InputStream inputStream, Class<T> clazz) Constructor for deserialization. -
Method Summary
Modifier and TypeMethodDescriptiondoublecomputeOutsideDistance(DistanceStyle distanceStyle, double x, double y, double z) Compute this shape's distance to the GeoPoint.doublecomputeOutsideDistance(DistanceStyle distanceStyle, GeoPoint point) Compute this shape's distance to the GeoPoint.Methods inherited from class org.apache.lucene.spatial3d.geom.GeoBaseCompositeShape
addShape, equals, getBounds, getEdgePoints, getShape, getShapes, hashCode, intersects, isWithin, isWithin, size, writeMethods inherited from class org.apache.lucene.spatial3d.geom.BasePlanetObject
getPlanetModelMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.spatial3d.geom.GeoShape
getEdgePoints, intersectsMethods inherited from interface org.apache.lucene.spatial3d.geom.Membership
isWithin, isWithinMethods inherited from interface org.apache.lucene.spatial3d.geom.PlanetObject
getPlanetModelMethods inherited from interface org.apache.lucene.spatial3d.geom.SerializableObject
write
-
Constructor Details
-
GeoBaseCompositeMembershipShape
GeoBaseCompositeMembershipShape(PlanetModel planetModel) Constructor. -
GeoBaseCompositeMembershipShape
GeoBaseCompositeMembershipShape(PlanetModel planetModel, InputStream inputStream, Class<T> clazz) throws IOException Constructor for deserialization.- Parameters:
planetModel- is the planet model.inputStream- is the input stream.clazz- is the class of the generic.- Throws:
IOException
-
-
Method Details
-
computeOutsideDistance
Description copied from interface:GeoOutsideDistanceCompute this shape's distance to the GeoPoint. A return value of 0.0 should be returned for points inside of the shape.- Specified by:
computeOutsideDistancein interfaceGeoOutsideDistance- Parameters:
distanceStyle- is the distance style.point- is the point to compute the distance to.- Returns:
- the distance.
-
computeOutsideDistance
Description copied from interface:GeoOutsideDistanceCompute this shape's distance to the GeoPoint. A return value of 0.0 should be returned for points inside of the shape.- Specified by:
computeOutsideDistancein interfaceGeoOutsideDistance- Parameters:
distanceStyle- is the distance style.x- is the point's unit x coordinate (using U.S. convention).y- is the point's unit y coordinate (using U.S. convention).z- is the point's unit z coordinate (using U.S. convention).- Returns:
- the distance.
-