Package com.xinapse.dicom
Enum Class Modality
- All Implemented Interfaces:
Serializable
,Comparable<Modality>
,Constable
An enumeration of the known imaging and other modalities.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A javax.swing.JComboBox that is used for selecting a Modality.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAngioscopyModality
(RETIRED).Content assessment resultsModality
.AudioModality
.AutorefractionModality
.Bone densitometry (ultrasound)Modality
.Biomagnetic imagingModality
; store as secondary capture.Bone Mineral Densitometry (X-Ray)Modality
.Cardiac electrophysiologyModality
.Cine fluorographyModality
(RETIRED).Color Doppler imagingModality
(RETIRED).Computed radigraphy imagingModality
.X-ray computerised tomography imagingModality
.X-ray computerised tomography protocolModality
.CulcoscopyModality
(RETIRED).CytoscopyModality
(RETIRED).Diaphonography imagingModality
.Digital fluoroscopyModality
(RETIRED).Digital microscopyModality
(RETIRED).Digital radiography imageModality
.Digital subtraction angiographyModality
..DocumentModality
.Duplex Doppler imagingModality
(RETIRED).EchocardiographyModality
(RETIRED).ElecrocardiographyModality
.Endoscopy imagingModality
.X-ray computerised tomography imagingModality
.Enhanced magnetic resonance imagingModality
.Enhanced positron emission tomography imagingModality
.External cameraModality
.FiducialsModality
.Fluorescein angiographyModality
(RETIRED).FundoscopyModality
(RETIRED).General microscopyModality
.Haemodynamic waveformModality
.Hard copyModality
; cannot store.Intra-occular lens dataModality
.Intra-oral radiographyModality
.Intravascular optical coherence tomographyModality
.Intravascular ultrasoundModality
.KeratometryModality
.Key object selectionModality
; cannot store.Laser surface scan imagingModality
.Magnetic resonance imagingModality
.Magnetic resonance angiographyModality
(RETIRED).Magnetic resonance spectroscopyModality
(RETIRED).MammographyModality
.Nuclear medicine imagingModality
.Opthalmic axial measurementModality
; cannot store.Opthalmic tomographyModality
.Opthalmic mappingModality
; use Secondary Capture Storage SOP Class.Opthalmic photographyModality
.Ophthalmic refractionModality
(RETIRED).Opthalmic visual fieldModality
; cannot store.Optical coherence tomographyModality
.Optical surface scanModality
.OtherModality
; use Secondary Capture SOP Class.Panoramic X-rayModality
.PlanModality
.Positron emission tomography imagingModality
.Presentation stateModality
.X-ray fluoroscopy imagingModality
.Radiographic imagingModality
.Radiotherapy doseModality
.Radiotherapy imageModality
.Radiotherapy planModality
.Radiotherapy recordModality
.Radiotherapy structure setModality
.Real world value mapModality
.Image registrationModality
.Respiratory WaveformModality
.Secondary capture imagingModality
.Image segmentationModality
.SPECT imagingModality
(RETIRED).Slide microscopyModality
.Structured report documentModality
.Automated slide stainerModality
.Sterometric relationshipModality
.Structured report documentModality
.Thermography imagingModality
; use Secondary Capture Storage SOP Class UID.Ultrasound imagingModality
.VideofluorographyModality
(RETIRED).Visual AcuityModality
.X-ray angiography imagingModality
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The Preference name for the imaging modality. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns whether always to ask the user what is the Modality, if not set in an image.Returns a string describing this imaging modality.static Modality
getInstance
(com.xinapse.dicom.DCMObject object) Finds theModality
in a DCMObject.static Modality
getInstance
(com.xinapse.dicom.Uid storageClassUID) Returns aModality
corresponding to the supplied storage class SOP Uid.static Modality
getInstance
(com.xinapse.dicom.Uid storageClassUID, String modalityName) Returns aModality
corresponding to the supplied Storage Class SOP UID and name.static Modality
getInstance
(String modalityName) Returns aModality
corresponding to the supplied modality name.static Modality
Returns the user's most common-used Modality as set in the user Preferences.com.xinapse.dicom.Uid
Returns a UID of the Storage Class with which Objects of thisModality
can be stored.boolean
Returnstrue
if this is a CTModality
.boolean
Returnstrue
if this is an enhancedModality
.boolean
Returnstrue
if this is an imagingModality
.boolean
Returnstrue
if this is a magnetic resonanceModality
.static void
Run the unit test on theModality
class.boolean
Returns true if images of this Modality requires positional information.static void
saveAlwaysAsk
(boolean alwaysAsk) Saves whether always to ask the user what is the Modality, if not set in an image.static void
savePreferredModality
(Modality modality) Saves the user's most common-used Modality to the user Preferences.toString()
Returns a string indicating this imaging modality.static Modality
Returns the enum constant of this class with the specified name.static Modality[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASMT
Content assessment resultsModality
. -
AUDIO
AudioModality
. -
AUTOREFRACTION
AutorefractionModality
. -
BDUS
Bone densitometry (ultrasound)Modality
. -
BI
Biomagnetic imagingModality
; store as secondary capture. -
BMD
Bone Mineral Densitometry (X-Ray)Modality
. -
COMPUTED_RADIOGRAPHY
Computed radigraphy imagingModality
. -
COMPUTED_TOMOGRAPHY
X-ray computerised tomography imagingModality
. -
ENHANCED_COMPUTED_TOMOGRAPHY
X-ray computerised tomography imagingModality
. -
CT_PROTOCOL
X-ray computerised tomography protocolModality
. -
DIAPHANOGRAPHY
Diaphonography imagingModality
. -
DOCUMENT
DocumentModality
. -
DIGITAL_RADIOGRAPHY
Digital radiography imageModality
. -
ELECTROCARDIOGRAPHY
ElecrocardiographyModality
. -
CARDIAC_ELECTROPHYSIOLOGY
Cardiac electrophysiologyModality
. -
ENDOSCOPY
Endoscopy imagingModality
. -
FIDUCIALS
FiducialsModality
. -
GENERAL_MICROSCOPY
General microscopyModality
. -
HARD_COPY
Hard copyModality
; cannot store. -
HAEMODYNAMIC_WAVEFORM
Haemodynamic waveformModality
. -
INTRA_ORAL_RADIOGRAPHY
Intra-oral radiographyModality
. -
INTRA_OCCULAR_LENS_DATA
Intra-occular lens dataModality
. -
IVOC
Intravascular optical coherence tomographyModality
. -
IVUS
Intravascular ultrasoundModality
. -
KERATOMETRY
KeratometryModality
. -
KEY_OBJECT_SELECTION
Key object selectionModality
; cannot store. -
LASER_SURFACE_SCAN
Laser surface scan imagingModality
. -
MAMMOGRAPHY
MammographyModality
. -
MAGNETIC_RESONANCE
Magnetic resonance imagingModality
. -
ENHANCED_MAGNETIC_RESONANCE
Enhanced magnetic resonance imagingModality
. -
NUCLEAR_MEDICINE
Nuclear medicine imagingModality
. -
OAM
Opthalmic axial measurementModality
; cannot store. -
OPTICAL_COHERENCE_TOMOGRAPHY
Optical coherence tomographyModality
. -
OPTHALMIC_PHOTOGRAPHY
Opthalmic photographyModality
. -
OPTHALMIC_MAPPING
Opthalmic mappingModality
; use Secondary Capture Storage SOP Class. -
OPTHALMIC_VISUAL_FIELD
Opthalmic visual fieldModality
; cannot store. -
OPT
Opthalmic tomographyModality
. -
OSS
Optical surface scanModality
. -
OTHER
OtherModality
; use Secondary Capture SOP Class. -
PLAN
PlanModality
. -
PRESENTATION_STATE
Presentation stateModality
. -
POSITRON_EMISSION_TOMOGRAPHY
Positron emission tomography imagingModality
. -
ENHANCED_POSITRON_EMISSION_TOMOGRAPHY
Enhanced positron emission tomography imagingModality
. -
PANORAMIC_X_RAY
Panoramic X-rayModality
. -
REGISTRATION
Image registrationModality
. -
RESP
Respiratory WaveformModality
. -
RADIO_FLUOROSCOPY
X-ray fluoroscopy imagingModality
. -
RADIOGRAPHIC_IMAGING
Radiographic imagingModality
. -
RADIOTHERAPY_DOSE
Radiotherapy doseModality
. -
RADIOTHERAPY_IMAGE
Radiotherapy imageModality
. -
RADIOTHERAPY_PLAN
Radiotherapy planModality
. -
RADIOTHERAPY_RECORD
Radiotherapy recordModality
. -
RADIOTHERAPY_STRUCTURE_SET
Radiotherapy structure setModality
. -
REAL_WORLD_VALUE
Real world value mapModality
. -
SECONDARY_CAPTURE
Secondary capture imagingModality
. -
SEGMENTATION
Image segmentationModality
. -
SLIDE_MISCROSCOPY
Slide microscopyModality
. -
STEREOMETRIC_RELATIONSHIP
Sterometric relationshipModality
. -
SR_DOCUMENT
Structured report documentModality
. -
SUBJECTIVE_REFRACTION
Structured report documentModality
. -
STAIN
Automated slide stainerModality
. -
THERMOGRAPHY
Thermography imagingModality
; use Secondary Capture Storage SOP Class UID. -
ULTRASOUND
Ultrasound imagingModality
. -
VISUAL_ACUITY
Visual AcuityModality
. -
X_RAY_ANGIOGRAPHY
X-ray angiography imagingModality
. -
EXTERNAL_CAMERA_PHOTOGRAPHY
External cameraModality
. -
ANGIOSCOPY_RET
AngioscopyModality
(RETIRED). -
COLOR_FLOW_DOPPLER_RET
Color Doppler imagingModality
(RETIRED). -
CINE_FLUOROGRAPHY_RET
Cine fluorographyModality
(RETIRED). Use RF instead. -
CULPOSCOPY_RET
CulcoscopyModality
(RETIRED). -
CYSTOSCOPY_RET
CytoscopyModality
(RETIRED). -
DIGITAL_FLUOROSCOPY_RET
Digital fluoroscopyModality
(RETIRED). Use RF instead. -
DIGITAL_MICROSCOPY_RET
Digital microscopyModality
(RETIRED). -
DIGITAL_SUBTRACTION_ANGIOGRAPHY_RET
Digital subtraction angiographyModality
.. -
DUPLEX_DOPPLER_RET
Duplex Doppler imagingModality
(RETIRED). -
ECHOCARDIOGRAPHY_RET
EchocardiographyModality
(RETIRED). -
FLUORESCEIN_ANGIOGRAPHY_RET
Fluorescein angiographyModality
(RETIRED). -
FUNDOSCOPY_RET
FundoscopyModality
(RETIRED). -
LAPAROSCOPY_RET
-
MAGNETIC_RESONANCE_ANGIOGRAPHY_RET
Magnetic resonance angiographyModality
(RETIRED). Use MR instead. -
MAGNETIC_RESONANCE_SPECTROSCOPY_RET
Magnetic resonance spectroscopyModality
(RETIRED). Use MR instead. -
OPTHALMIC_REFRACTION
Ophthalmic refractionModality
(RETIRED). Used subjective refraction instead. -
SINGLE_PHOTON_EMISSION_COMPUTED_TOMOGRAPHY_RET
SPECT imagingModality
(RETIRED). -
VIDEOFLUOROGRAPHY_RET
VideofluorographyModality
(RETIRED). Use RF instead.
-
-
Field Details
-
MODALITY_PREFERENCE_NAME
The Preference name for the imaging modality. Is public because this is used in the Perfusion package to set the modality to MR or CT.- See Also:
-
-
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
public static Modality getInstance(com.xinapse.dicom.Uid storageClassUID, String modalityName) throws InvalidArgumentException Returns aModality
corresponding to the supplied Storage Class SOP UID and name.- Parameters:
storageClassUID
- one of the Storage Class SOP UIDs.modalityName
- one of the defined DICOM terms for the imaging modality, for example "MR" for magnetic resonance.- Returns:
- the
Modality
corresponding to the supplied Storage Class SOP UID and name. - Throws:
InvalidArgumentException
- if the arguments do not correspond to aModality
.
-
getInstance
public static Modality getInstance(com.xinapse.dicom.Uid storageClassUID) throws InvalidArgumentException Returns aModality
corresponding to the supplied storage class SOP Uid.- Parameters:
storageClassUID
- one of the Storage Class SOP UIDs.- Returns:
- the
Modality
corresponding to the Storage Class SOP UID. - Throws:
InvalidArgumentException
- ifstorageClassUID
does not have a correspondingModality
.
-
getInstance
Returns aModality
corresponding to the supplied modality name.- Parameters:
modalityName
- the name of one of the Modalities.- Returns:
- the
Modality
corresponding to the suppied name. - Throws:
InvalidArgumentException
- if the name does not have a correspondingModality
.
-
getInstance
Finds theModality
in a DCMObject.- Parameters:
object
- the DCMObject from which to find the Modality.- Returns:
- the
Modality
, ornull
if the Modality can't be found or interpreted.
-
getStorageClassUID
public com.xinapse.dicom.Uid getStorageClassUID()Returns a UID of the Storage Class with which Objects of thisModality
can be stored. -
requiresPositionalInformation
public boolean requiresPositionalInformation()Returns true if images of this Modality requires positional information.- Returns:
- true if images of this Modality requires positional information; false otherwise.
-
isImagingModality
public boolean isImagingModality()Returnstrue
if this is an imagingModality
.- Returns:
true
if this is an imagingModality
;false
otherwise.
-
isComputedTomography
public boolean isComputedTomography()Returnstrue
if this is a CTModality
.- Returns:
true
if this is a CTModality
;false
otherwise.
-
isMagneticResonance
public boolean isMagneticResonance()Returnstrue
if this is a magnetic resonanceModality
.- Returns:
true
if this is a magnetic resonanceModality
;false
otherwise.
-
isEnhanced
public boolean isEnhanced()Returnstrue
if this is an enhancedModality
.- Returns:
true
if this is an enhancedModality
;false
otherwise.
-
toString
Returns a string indicating this imaging modality. -
getDescription
Returns a string describing this imaging modality.- Returns:
- a string describing this modality.
-
getPreferredModality
Returns the user's most common-used Modality as set in the user Preferences.- Returns:
- the user's preferred Modality.
-
savePreferredModality
Saves the user's most common-used Modality to the user Preferences.- Parameters:
modality
- the user's preferred Modality.
-
getAlwaysAsk
public static boolean getAlwaysAsk()Returns whether always to ask the user what is the Modality, if not set in an image.- Returns:
- whether always to ask the user what is the Modality, if not set in an image.
-
saveAlwaysAsk
public static void saveAlwaysAsk(boolean alwaysAsk) Saves whether always to ask the user what is the Modality, if not set in an image.- Parameters:
alwaysAsk
- whether always to ask the user what is the Modality, if not set in an image.
-
main
Run the unit test on theModality
class.- Parameters:
args
- ignored.
-