public class VoxelList
extends java.lang.Object
Constructor and Description |
---|
VoxelList(Voxel[] voxels,
int seedPointIndex,
double xVoxelDim,
double yVoxelDim,
double zVoxelDim,
Vector3D tanAtSeed,
Vector3D negativeTanAtSeed) |
Modifier and Type | Method and Description |
---|---|
Voxel |
getVoxel(int i) |
double[] |
getVoxelDims() |
Voxel[] |
getVoxels() |
int |
seedPointIndex() |
int |
size() |
java.lang.String |
toString() |
Tract |
toTract()
Makes a Tract with a point at the centre of each voxel in the list.
|
void |
writeVoxelList(java.io.DataOutputStream dout) |
public VoxelList(Voxel[] voxels, int seedPointIndex, double xVoxelDim, double yVoxelDim, double zVoxelDim, Vector3D tanAtSeed, Vector3D negativeTanAtSeed)
voxels
- list of voxels in this streamline.seedPointIndex
- the voxel voxels[seedPointIndex]
contains the
seed point of this streamline.xVoxelDim
- the x voxel dimension in mm.yVoxelDim
- the y voxel dimension in mm.zVoxelDim
- the z voxel dimension in mm.tangentAtSeed
- the vector that is tangential to the seed point trajectory at the seed point,
pointing upwards (from point (seedPointIndex) towards point (seedPointIndex+1).negativeTangentAtSeed
- the vector that is tangential to the seed point trajectory at
the seed point,
pointing downwards (from point (seedPointIndex) towards point (seedPointIndex-1).public Voxel getVoxel(int i)
public int seedPointIndex()
i
of the seed, such that calling getVoxel(i)
returns the voxel containing the seed point.public int size()
public Voxel[] getVoxels()
public java.lang.String toString()
toString
in class java.lang.Object
public Tract toTract()
public void writeVoxelList(java.io.DataOutputStream dout) throws java.io.IOException
java.io.IOException
public double[] getVoxelDims()