Uses of Class
com.google.common.geometry.S2ShapeIndex.S2ClippedShape
-
-
Uses of S2ShapeIndex.S2ClippedShape in com.google.common.geometry
Subclasses of S2ShapeIndex.S2ClippedShape in com.google.common.geometry Modifier and Type Class Description private static class
S2ShapeIndex.S2ClippedShape.Contained
An S2ClippedShape for a shape that completely contains the cell (no edge intersections and containsCenter is true.)private static class
S2ShapeIndex.S2ClippedShape.EdgeRange
An S2ClippedShape containing a single range of contiguous edge IDs.private static class
S2ShapeIndex.S2ClippedShape.ManyEdges
An S2ClippedShape that contains the non-contiguous edges fromstart
toend
inedges
.private static class
S2ShapeIndex.S2ClippedShape.OneEdge
An S2ClippedShape that contains a single edge from a given shape.Fields in com.google.common.geometry declared as S2ShapeIndex.S2ClippedShape Modifier and Type Field Description private S2ShapeIndex.S2ClippedShape[]
S2ShapeIndexCoder.EncodedS2ShapeIndex.LazyCell. cachedClippedShapes
(package private) S2ShapeIndex.S2ClippedShape
S2EdgeQuery.Stepper. clipped
private S2ShapeIndex.S2ClippedShape
S2ShapeIndex.RangeIterator. clipped
private S2ShapeIndex.S2ClippedShape[]
S2ShapeIndex.Cell.MultiCell. clippedShapes
(package private) S2ShapeIndex.S2ClippedShape
S2EdgeQuery.SimpleEdges. shape
private S2ShapeIndex.S2ClippedShape
S2ShapeIndex.Cell.BinaryCell. shape1
private S2ShapeIndex.S2ClippedShape
S2ShapeIndex.Cell.BinaryCell. shape2
private S2ShapeIndex.S2ClippedShape[]
S2ShapeIndex.InteriorTracker. tempClippedShapes
A temporary array in which to accumulate the clipped shapes for each cell.Methods in com.google.common.geometry that return S2ShapeIndex.S2ClippedShape Modifier and Type Method Description S2ShapeIndex.S2ClippedShape
S2ShapeIndex.Cell.BinaryCell. clipped(int i)
abstract S2ShapeIndex.S2ClippedShape
S2ShapeIndex.Cell. clipped(int i)
Returns the clipped shape at the given index.S2ShapeIndex.S2ClippedShape
S2ShapeIndex.Cell.MultiCell. clipped(int i)
S2ShapeIndex.S2ClippedShape
S2ShapeIndex.RangeIterator. clipped()
Various other convenience methods for the current cell.S2ShapeIndex.S2ClippedShape
S2ShapeIndex.S2ClippedShape. clipped(int i)
For implementing the Cell interface, this class contains just 1 shape (itself.)S2ShapeIndex.S2ClippedShape
S2ShapeIndexCoder.EncodedS2ShapeIndex.LazyCell. clipped(int i)
(package private) static S2ShapeIndex.S2ClippedShape
S2ShapeIndex.S2ClippedShape. create(S2CellId cellId, S2Shape shape, boolean containsCenter, int[] edges)
(package private) static S2ShapeIndex.S2ClippedShape
S2ShapeIndex.S2ClippedShape. create(S2CellId cellId, S2Shape shape, boolean containsCenter, int offset, int count)
(package private) static S2ShapeIndex.S2ClippedShape
S2ShapeIndex.S2ClippedShape. create(S2CellId cellId, S2Shape shape, boolean containsCenter, java.util.List<S2ShapeIndex.ClippedEdge> edges, int start, int end)
private static S2ShapeIndex.S2ClippedShape[]
S2ShapeIndexCoder. decodeClippedShapes(java.util.List<S2Shape> shapes, PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor)
(package private) S2ShapeIndex.S2ClippedShape
S2ShapeIndex.Cell. findClipped(S2Shape shape)
Returns the clipped shape corresponding to the given shape ID, or null if the shape does not intersect this cell.private S2ShapeIndex.S2ClippedShape[]
S2ShapeIndexCoder.EncodedS2ShapeIndex.LazyCell. loadClippedShapesFromCache()
ReturnsS2ShapeIndexCoder.EncodedS2ShapeIndex.LazyCell.cachedClippedShapes
if it's already cached.Methods in com.google.common.geometry with parameters of type S2ShapeIndex.S2ClippedShape Modifier and Type Method Description void
S2EdgeQuery.MergedEdges. add(S2ShapeIndex.S2ClippedShape shape)
Note:shape
should have at least one edge.private boolean
S2ShapeIndexRegion. anyEdgeIntersects(S2ShapeIndex.S2ClippedShape clipped, S2Cell target)
Returns true if any edge of the indexed shape "clipped" intersects the cell "target".private boolean
S2Loop.LoopCrosser. cellCrossesAnySubcell(S2ShapeIndex.S2ClippedShape aClipped, S2CellId bId)
Given an index cell of A, returns true if there are any edge or wedge crossings with any index cell of B contained withinbId
.boolean
S2Loop.LoopCrosser. cellCrossesCell(S2ShapeIndex.S2ClippedShape aClipped, S2ShapeIndex.S2ClippedShape bClipped)
Given two index cells, returns true if there are any edge crossings or wedge crossings within those cells.(package private) static S2ShapeIndex.Cell
S2ShapeIndex.Cell. create(int size, S2ShapeIndex.S2ClippedShape[] tempClippedShapes)
Returns a Cell with a copy of the given shapes, specialized for the number of elements.private boolean
S2Loop.LoopCrosser. edgeCrossesCell(S2ShapeIndex.S2ClippedShape bClipped)
Checks the current edge of loop A for crossings with all edges of the given index cell of loop B.private static void
S2ShapeIndexCoder. encodeEdges(S2ShapeIndex.S2ClippedShape clipped, java.io.OutputStream output)
Encodes the edge IDs of the givenS2ShapeIndex.S2ClippedShape
.static boolean
S2ShapeUtil. equals(S2ShapeIndex.S2ClippedShape a, S2ShapeIndex.S2ClippedShape b)
Returns true if the clipped shapes 'a' and 'b' have identical edge offsets.(package private) static boolean
S2ShapeUtil. findSelfIntersection(S2ShapeIndex.S2ClippedShape aClipped, S2Loop aLoop, S2Error error)
Test for crossings between all edge pairs that do not share a vertex.boolean
S2ContainsPointQuery.S2VertexModel. shapeContains(S2Point cellCenter, S2ShapeIndex.S2ClippedShape clipped, S2Point p)
Returns true if the clipped portion of a shape 'clipped' from a cell with center 'cellCenter' contains the point 'p' according to this vertex model.Constructors in com.google.common.geometry with parameters of type S2ShapeIndex.S2ClippedShape Constructor Description BinaryCell(S2ShapeIndex.S2ClippedShape shape1, S2ShapeIndex.S2ClippedShape shape2)
MultiCell(S2ShapeIndex.S2ClippedShape[] shapes)
SimpleEdges(S2ShapeIndex.S2ClippedShape shape)
Stepper(S2ShapeIndex.S2ClippedShape shape)
-