Package com.xinapse.image
Enum Class MostLikePlane
- All Implemented Interfaces:
Serializable
,Comparable<MostLikePlane>
,Constable
The radiological planes that can be used to describe the approximate orientation of
a scan plane.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTheMostLikePlane
corresponding to an axial orientation.TheMostLikePlane
corresponding to a coronal orientation.TheMostLikePlane
corresponding to a sagittal orientation.TheMostLikePlane
corresponding to an unknown orientation. -
Method Summary
Modifier and TypeMethodDescriptionorg.jogamp.vecmath.Vector3f[]
Returns the image orientation in patient coordinates for an image plane which is exactly in thisMostLikePlane
.static MostLikePlane
getInstance
(float[][] imageOrientationPatient) Returns theMostLikePlane
corresponding to the image orientation in patient coordinates.static MostLikePlane
Returns aMostLikePlane
corresponding to a string.static MostLikePlane
getInstance
(org.jogamp.vecmath.Vector3f[] imageOrientationPatient) Returns theMostLikePlane
corresponding to the image orientation in patient coordinates.static MostLikePlane
selectPlane
(Component parentComponent) Shows a dialog prompting the user to select a scan plane.toString()
Returns aString
describing thisMostLikePlane
.static MostLikePlane
Returns the enum constant of this class with the specified name.static MostLikePlane[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
TheMostLikePlane
corresponding to an unknown orientation. -
AXIAL
TheMostLikePlane
corresponding to an axial orientation. -
SAGITTAL
TheMostLikePlane
corresponding to a sagittal orientation. -
CORONAL
TheMostLikePlane
corresponding to a coronal orientation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getInstance
Returns aMostLikePlane
corresponding to a string.- Parameters:
s
- aString
from which the most-like plane will be interpreted. Can be:- "unknown",
- "axial",
- "sagittal", or
- "coronal".
- Returns:
- a
MostLikePlane
corresponding to aString
, orUNKNOWN
if theString
is invalid. - Throws:
InvalidArgumentException
- if theString
is invalid.
-
getInstance
Returns theMostLikePlane
corresponding to the image orientation in patient coordinates.- Parameters:
imageOrientationPatient
- a 2x3 or 3x3 float[][] containing the direction cosines of the image row, column and (possibly) slice directions of the image matrix.- Returns:
- the
MostLikePlane
corresponding to the image orientation direction cosines.
-
getInstance
Returns theMostLikePlane
corresponding to the image orientation in patient coordinates.- Parameters:
imageOrientationPatient
- aVector3f
[] of length at least 3 containing the direction cosines of the image row, column and (possibly) slice directions of the image matrix.- Returns:
- the
MostLikePlane
corresponding to the image orientation direction cosines.
-
getImageOrientationPatient
public org.jogamp.vecmath.Vector3f[] getImageOrientationPatient()Returns the image orientation in patient coordinates for an image plane which is exactly in thisMostLikePlane
.- Returns:
- the image orientation in patient coordinates, or
null
if this isUNKNOWN
.
-
selectPlane
Shows a dialog prompting the user to select a scan plane.- Parameters:
parentComponent
- the parentComponent
of the dialog.- Returns:
- the
MostLikePlane
selected by the user. - Throws:
CancelledException
- if selection is cancelled by the user.
-
toString
Returns aString
describing thisMostLikePlane
.- Overrides:
toString
in classEnum<MostLikePlane>
- Returns:
- a
String
describing thisMostLikePlane
.
-