|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SliceOrder>
com.xinapse.multisliceimage.Analyze.SliceOrder
public enum SliceOrder
This class represents the timing pattern of the slice acquisition.
| Enum Constant Summary | |
|---|---|
ALT_DEC
Interleaved slice aquisition, decreasing time with slice number. |
|
ALT_INC
Interleaved slice aquisition, increasing time with slice number. |
|
SEQ_DEC
Sequential slice aquisition, decreasing time with slice number. |
|
SEQ_INC
Sequential slice aquisition, increasing time with slice number. |
|
UNSET
Unset timing pattern. |
|
| Method Summary | |
|---|---|
static SliceOrder |
getInstance(java.lang.String s)
Returns an SliceOrder corresponding to String value. |
float |
getTimeShift(float TR,
int slice,
int nSlices)
Calculates the time difference (in seconds) between the acquisition of the first slice and the given slice, for this SliceOrder. |
static void |
main(java.lang.String[] args)
Run a self-test on the SliceOrder class. |
java.lang.String |
toString()
Returns a string describing this SliceOrder. |
static SliceOrder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SliceOrder[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SliceOrder UNSET
public static final SliceOrder SEQ_INC
public static final SliceOrder SEQ_DEC
public static final SliceOrder ALT_INC
public static final SliceOrder ALT_DEC
| Method Detail |
|---|
public static SliceOrder[] values()
for (SliceOrder c : SliceOrder.values()) System.out.println(c);
public static SliceOrder valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
public static SliceOrder getInstance(java.lang.String s)
throws com.xinapse.util.InvalidArgumentException
s - the String from which the slice order code will be interpreted.
com.xinapse.util.InvalidArgumentException - if the supplied String does not convert
to a SliceOrder.public java.lang.String toString()
toString in class java.lang.Enum<SliceOrder>
public float getTimeShift(float TR,
int slice,
int nSlices)
TR - the scan repetition time, in seconds.slice - the slice number in the block.nSlices - the number of slices in the block.public static void main(java.lang.String[] args)
args - ignored.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||