public class DiskCursor3D<T> extends CircleCursor3D<T>
Constructor and Description |
---|
DiskCursor3D(RandomAccessible<T> rai,
Localizable center,
long radius,
double[] circleNorm)
Iterates over a parameterized disk in the target
RandomAccessible . |
DiskCursor3D(RandomAccessible<T> rai,
Localizable center,
long radius,
double[] xBasis,
double[] yBasis)
Iterates over a parameterized disk in the target
RandomAccessible . |
Modifier and Type | Method and Description |
---|---|
Cursor<T> |
copyCursor() |
void |
fwd() |
boolean |
hasNext() |
void |
reset() |
copy, get, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, jumpFwd, localize, localize, localize, localize, next, numDimensions, roundPos, setPos
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
public DiskCursor3D(RandomAccessible<T> rai, Localizable center, long radius, double[] circleNorm)
RandomAccessible
.
Each point of the disk is iterated exactly once.rai
- the random accessible. It is the caller's responsibility to
ensure it can be accessed everywhere the disk will be
iterated.center
- the disk center. Must be at least of dimension 3. Dimensions
0, 1 and 2 are used to specify the disk center.radius
- the circle radius.circleNorm
- the unit normal to the disk plane, must be 3-dimensional. The "new"
x and y basis vectors will be constructed from this vector.public DiskCursor3D(RandomAccessible<T> rai, Localizable center, long radius, double[] xBasis, double[] yBasis)
RandomAccessible
.
Each point of the disk is iterated exactly once.rai
- the random accessible. It is the caller responsibility to
ensure it can be accessed everywhere the disk will be
iterated.center
- the disk center.radius
- the disk radius.xBasis
- the vector representing the "new" x-axis of the disk plane. Should be orthogonal to both the
circle normal and the yBasisyBasis
- the vector representing the "new" y-axis of the disk plane. Should be orthogonal to both the circle
normal and the xBasispublic Cursor<T> copyCursor()
copyCursor
in interface Cursor<T>
copyCursor
in interface RealCursor<T>
copyCursor
in class CircleCursor3D<T>
public void fwd()
fwd
in class CircleCursor3D<T>
public boolean hasNext()
public void reset()
reset
in class CircleCursor3D<T>
Copyright © 2015–2021 Fiji. All rights reserved.