|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uthscsa.ric.volume.VoxelDimensions
public class VoxelDimensions
VoxelDimensions contains information related to voxel size in column/row/slice and x/y/z orientations, as well as temporal resolution and units.
| Field Summary | |
|---|---|
static java.lang.String[] |
UNIT_STRING
|
static short |
UNITS_HZ
|
static short |
UNITS_METER
|
static short |
UNITS_MICRON
|
static short |
UNITS_MM
|
static short |
UNITS_MSEC
|
static short |
UNITS_PPM
|
static short |
UNITS_RADS
|
static short |
UNITS_SEC
|
static short |
UNITS_UNKNOWN
|
static short |
UNITS_USEC
|
| Constructor Summary | |
|---|---|
VoxelDimensions(double aColSize,
double aRowSize,
double aSliceThickness,
double aTR)
The only class constructor. |
|
| Method Summary | |
|---|---|
void |
clearNegativeVoxelSizes()
Replaces any stored negative voxel sizes with their absolute value. |
java.lang.Object |
clone()
Returns a copy of this VoxelDimensions object. |
boolean |
equals(VoxelDimensions vd)
Comparison method. |
double |
getAxialArea()
Returns the area of a voxel in the axial plane. |
double |
getColSize(boolean abs)
Returns the size of a voxel's column dimension. |
double |
getCoronalArea()
Returns the area of a voxel in the coronal plane. |
double |
getRowSize(boolean abs)
Returns the size of a voxel's row dimension. |
double |
getSagittalArea()
Returns the area of a voxel in the sagittal plane. |
double |
getSliceThickness(boolean abs)
Returns the size of a voxel's slice dimension. |
int |
getSpatialUnit()
Returns the spatial unit code. |
double |
getTE1()
Returns the TE1. |
double |
getTE2()
Returns the TE2. |
int |
getTemporalUnit()
Returns the temporal unit code. |
double |
getTR()
Returns the TR. |
double |
getVolume()
Returns the volume of a voxel. |
double |
getXSize()
Returns the size of a voxel along the X dimension. |
double |
getYSize()
Returns the size of a voxel along the Y dimension. |
double |
getZSize()
Returns the size of a voxel along the Z dimension. |
boolean |
isValid()
Use to verify that column, row, and slice sizes and TR have valid values. |
boolean |
isValid(java.lang.StringBuffer buf)
Use to verify that column, row, and slice sizes and TR have valid values. |
void |
setColNegativeState(boolean bool)
Sets the negative state of voxel column size. |
void |
setColSize(double val)
Sets the size of a voxel along the column dimension. |
void |
setRowNegativeState(boolean bool)
Sets the negative state of voxel row size. |
void |
setRowSize(double val)
Sets the size of a voxel along the row dimension. |
void |
setSliceNegativeState(boolean bool)
Sets the negative state of voxel slice size. |
void |
setSliceThickness(double val)
Sets the size of a voxel along the slice dimension. |
void |
setSpatialUnit(int unit)
Sets the spatial unit of the voxel. |
void |
setSpatialUnit(java.lang.String unit)
Sets the spatial unit of the voxel. |
void |
setTE1(double num)
Sets the TE1. |
void |
setTE2(double num)
Sets the TE2. |
void |
setTemporalUnit(int unit)
Sets the temporal unit of the voxel. |
void |
setTemporalUnit(java.lang.String unit)
Sets the temporal unit of the voxel. |
void |
setTR(double num)
Sets the TR. |
void |
setValues(VoxelDimensions vd)
Set the values of this VoxelDimensions to that of another. |
void |
setValues(VoxelDimensions vd,
boolean updateXYZ)
Set the values of this VoxelDimensions to that of another. |
void |
setXSize(double num)
Sets the size of a voxel along the X dimension. |
void |
setYSize(double num)
Sets the size of a voxel along the Y dimension. |
void |
setZSize(double num)
Sets the size of a voxel along the Z dimension. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short UNITS_UNKNOWN
public static final short UNITS_METER
public static final short UNITS_MM
public static final short UNITS_MICRON
public static final short UNITS_SEC
public static final short UNITS_MSEC
public static final short UNITS_USEC
public static final short UNITS_HZ
public static final short UNITS_PPM
public static final short UNITS_RADS
public static final java.lang.String[] UNIT_STRING
| Constructor Detail |
|---|
public VoxelDimensions(double aColSize,
double aRowSize,
double aSliceThickness,
double aTR)
aColSize - size of a voxel's column dimensionaRowSize - size of a voxel's row dimensionaSliceThickness - size of a voxel's slice dimensionaTR - temporal resolution| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(VoxelDimensions vd)
vd - VoxelDimensions object to comparepublic void setValues(VoxelDimensions vd)
vd - replacement VoxelDimensions object
public void setValues(VoxelDimensions vd,
boolean updateXYZ)
vd - replacement VoxelDimensions objectupdateXYZ - xyz values will be replaced, if truepublic double getVolume()
public double getAxialArea()
public double getCoronalArea()
public double getSagittalArea()
public void clearNegativeVoxelSizes()
public double getRowSize(boolean abs)
abs - a negative value will be converted to positive, if true
public double getColSize(boolean abs)
abs - a negative value will be converted to positive, if true
public double getSliceThickness(boolean abs)
abs - negative value will be converted to positive, if true
public double getTR()
public double getTE1()
public double getTE2()
public void setTR(double num)
num - size of TRpublic void setTE1(double num)
num - size of TE1public void setTE2(double num)
num - size of TE2public void setXSize(double num)
num - size of voxel along the X dimensionpublic void setYSize(double num)
num - size of voxel along the Y dimensionpublic void setZSize(double num)
num - size of voxel along the Z dimensionpublic void setSpatialUnit(int unit)
unit - spatial unit codepublic void setSpatialUnit(java.lang.String unit)
unit - spatial unit namepublic void setTemporalUnit(java.lang.String unit)
unit - temporal unit namepublic void setRowNegativeState(boolean bool)
bool - if true, row size will be set as negative; positive otherwisepublic void setColNegativeState(boolean bool)
bool - if true, column size will be set as negative; positive otherwisepublic void setSliceNegativeState(boolean bool)
bool - if true, slice size will be set as negative; positive otherwisepublic void setTemporalUnit(int unit)
unit - temporal unit codepublic int getSpatialUnit()
public int getTemporalUnit()
public double getXSize()
public double getYSize()
public double getZSize()
public void setRowSize(double val)
val - size of a voxel along the row dimensionpublic void setColSize(double val)
val - size of a voxel along the column dimensionpublic void setSliceThickness(double val)
val - size of a voxel along the slice dimensionpublic boolean isValid()
public boolean isValid(java.lang.StringBuffer buf)
buf - stores any error messages
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||