public class ContiguousVoxelPath extends Object
Constructor and Description |
---|
ContiguousVoxelPath()
Without any connection-point
|
ContiguousVoxelPath(Point3i initialPoint,
Point3i connectionPoint)
With a single initial-point, and maybe a connection point
|
Modifier and Type | Method and Description |
---|---|
List<Point3i> |
addShift(ReadableTuple3i shift)
Adds a shift to each point (modifying the existing points in memory), and returns them as a
list
|
ContiguousVoxelPath |
duplicate() |
Point3i |
get(int index) |
Optional<Point3i> |
getConnPoint() |
Optional<Point3i> |
getInitialPoint() |
Point3i |
head() |
Optional<Integer> |
indexInitialPoint() |
void |
insertAfter(List<Point3i> points)
Inserts points at end of existing path.
|
void |
insertBefore(List<Point3i> points)
Inserts points before existing path.
|
boolean |
maybeAddPointToClosestEnd(Point3i point)
Adds the point to the closest end of the path....
|
List<Point3i> |
points()
The points associated with the path
|
Optional<LoopablePoints> |
removeLeft(int numToRemove)
Removes the first numToRemove pixels from the left
|
Optional<LoopablePoints> |
removeRight(int numToRemove)
Removes the last numToRemove pixels from the right
|
int |
size() |
Point3i |
tail() |
String |
toString() |
public ContiguousVoxelPath(Point3i initialPoint, Point3i connectionPoint)
public ContiguousVoxelPath()
public ContiguousVoxelPath duplicate()
public boolean maybeAddPointToClosestEnd(Point3i point)
point
- the point to addpublic Optional<LoopablePoints> removeLeft(int numToRemove)
public Optional<LoopablePoints> removeRight(int numToRemove)
public void insertBefore(List<Point3i> points)
public void insertAfter(List<Point3i> points)
public Point3i get(int index)
public int size()
public List<Point3i> addShift(ReadableTuple3i shift)
public Point3i tail()
public Point3i head()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.