public class DefaultWritablePolyline extends AbstractRealInterval implements WritablePolyline
max, min
n
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, toString
numDimensions
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
boundaryType, hashCode, maskType
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
isAll, knownConstant
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMin
public 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 Polyshape
vertex
in interface WritablePolyshape
public int numVertices()
Polyshape
numVertices
in interface Polyshape
public void addVertex(int index, RealLocalizable vertex)
WritablePolyshape
addVertex
in interface WritablePolyshape
public void removeVertex(int index)
WritablePolyshape
removeVertex
in interface WritablePolyshape
public void addVertices(int index, Collection<RealLocalizable> newVertices)
WritablePolyshape
addVertices
in interface WritablePolyshape
public boolean equals(Object obj)
Polyline
equals
in interface Polyline
equals
in interface MaskPredicate<RealLocalizable>
equals
in class Object
obj
- The polyline to compare with this one.MaskPredicate.equals(Object)
,
Polyshape.equals(Polyshape, Polyshape)
Copyright © 2015–2022 ImgLib2. All rights reserved.