public class DefaultWritablePolyline extends AbstractRealInterval implements WritablePolyline
max, minn| Constructor and Description |
|---|
DefaultWritablePolyline(List<? extends RealLocalizable> vertices)
Creates a polyline with the specified vertices.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addVertex(int index,
RealLocalizable vertex)
Adds a vertex at the given index.
|
void |
addVertices(int index,
Collection<RealLocalizable> newVertices)
Adds vertices starting at the given index.
|
boolean |
equals(Object obj)
Determines whether this polyline describes the same region as another one.
|
int |
hashCode() |
int |
numVertices()
Returns the number of vertices in the shape.
|
void |
removeVertex(int index)
Removes the vertex at the given index.
|
boolean |
test(RealLocalizable l) |
RealLocalizableRealPositionable |
vertex(int pos)
Returns the vertex at the specified position.
|
realMax, realMax, realMax, realMin, realMin, realMin, toStringnumDimensionsclone, finalize, getClass, notify, notifyAll, wait, wait, waitboundaryType, hashCode, maskTypeand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xorisAll, knownConstantmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMinpublic DefaultWritablePolyline(List<? extends RealLocalizable> vertices)
vertices - Vertices which define the polyline in the desired order.public boolean test(RealLocalizable l)
test in interface Predicate<RealLocalizable>public RealLocalizableRealPositionable vertex(int pos)
vertex in interface Polyshapevertex in interface WritablePolyshapepublic int numVertices()
PolyshapenumVertices in interface Polyshapepublic void addVertex(int index,
RealLocalizable vertex)
WritablePolyshapeaddVertex in interface WritablePolyshapepublic void removeVertex(int index)
WritablePolyshaperemoveVertex in interface WritablePolyshapepublic void addVertices(int index,
Collection<RealLocalizable> newVertices)
WritablePolyshapeaddVertices in interface WritablePolyshapepublic boolean equals(Object obj)
Polylineequals in interface Polylineequals in interface MaskPredicate<RealLocalizable>equals in class Objectobj - The polyline to compare with this one.MaskPredicate.equals(Object),
Polyshape.equals(Polyshape, Polyshape)Copyright © 2015–2022 ImgLib2. All rights reserved.