Enum Class Modality
- All Implemented Interfaces:
Serializable, Comparable<Modality>, Constable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA javax.swing.JComboBox that is used for selecting a Modality.Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum 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 radiography 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
FieldsModifier and TypeFieldDescriptionstatic final StringThe Preference name for the imaging modality. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns whether always to ask the user what is the Modality, if not set in an image.Returns a string describing this imaging modality.static ModalitygetInstance(com.xinapse.dicom.DCMObject object) Finds theModalityin a DCMObject.static ModalitygetInstance(com.xinapse.dicom.Uid storageClassUID) Returns aModalitycorresponding to the supplied storage class SOP Uid.static ModalitygetInstance(com.xinapse.dicom.Uid storageClassUID, String modalityName) Returns aModalitycorresponding to the supplied Storage Class SOP UID and name.static ModalitygetInstance(String modalityName) Returns aModalitycorresponding to the supplied modality name.static ModalityReturns the user's most common-used Modality as set in the user Preferences.com.xinapse.dicom.UidReturns a UID of the Storage Class with which Objects of thisModalitycan be stored.booleanReturnstrueif this is a CTModality.booleanReturnstrueif this is an enhancedModality.booleanReturnstrueif this is an imagingModality.booleanReturnstrueif this is a magnetic resonanceModality.static voidRun the unit test on theModalityclass.booleanReturns true if images of this Modality requires positional information.static voidsaveAlwaysAsk(boolean alwaysAsk) Saves whether always to ask the user what is the Modality, if not set in an image.static voidsavePreferredModality(Modality modality) Saves the user's most common-used Modality to the user Preferences.toString()Returns a string indicating this imaging modality.static ModalityReturns 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.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
ASMT
-
AUDIO
-
AUTOREFRACTION
-
BDUS
-
BI
-
BMD
-
COMPUTED_RADIOGRAPHY
-
COMPUTED_TOMOGRAPHY
-
ENHANCED_COMPUTED_TOMOGRAPHY
-
CT_PROTOCOL
-
DIAPHANOGRAPHY
-
DOCUMENT
-
DIGITAL_RADIOGRAPHY
-
ELECTROCARDIOGRAPHY
-
CARDIAC_ELECTROPHYSIOLOGY
-
ENDOSCOPY
-
FIDUCIALS
-
GENERAL_MICROSCOPY
-
HARD_COPY
-
HAEMODYNAMIC_WAVEFORM
-
INTRA_ORAL_RADIOGRAPHY
-
INTRA_OCCULAR_LENS_DATA
-
IVOC
-
IVUS
-
KERATOMETRY
-
KEY_OBJECT_SELECTION
-
LASER_SURFACE_SCAN
-
MAMMOGRAPHY
-
MAGNETIC_RESONANCE
-
ENHANCED_MAGNETIC_RESONANCE
-
NUCLEAR_MEDICINE
-
OAM
-
OPTICAL_COHERENCE_TOMOGRAPHY
-
OPTHALMIC_PHOTOGRAPHY
-
OPTHALMIC_MAPPING
-
OPTHALMIC_VISUAL_FIELD
-
OPT
-
OSS
-
OTHER
-
PLAN
-
PRESENTATION_STATE
-
POSITRON_EMISSION_TOMOGRAPHY
-
ENHANCED_POSITRON_EMISSION_TOMOGRAPHY
-
PANORAMIC_X_RAY
-
REGISTRATION
-
RESP
-
RADIO_FLUOROSCOPY
-
RADIOGRAPHIC_IMAGING
-
RADIOTHERAPY_DOSE
-
RADIOTHERAPY_IMAGE
-
RADIOTHERAPY_PLAN
-
RADIOTHERAPY_RECORD
-
RADIOTHERAPY_STRUCTURE_SET
-
REAL_WORLD_VALUE
-
SECONDARY_CAPTURE
-
SEGMENTATION
-
SLIDE_MISCROSCOPY
-
STEREOMETRIC_RELATIONSHIP
-
SR_DOCUMENT
-
SUBJECTIVE_REFRACTION
-
STAIN
-
THERMOGRAPHY
-
ULTRASOUND
-
VISUAL_ACUITY
-
X_RAY_ANGIOGRAPHY
-
EXTERNAL_CAMERA_PHOTOGRAPHY
-
ANGIOSCOPY_RET
-
COLOR_FLOW_DOPPLER_RET
-
CINE_FLUOROGRAPHY_RET
-
CULPOSCOPY_RET
-
CYSTOSCOPY_RET
-
DIGITAL_FLUOROSCOPY_RET
-
DIGITAL_MICROSCOPY_RET
-
DIGITAL_SUBTRACTION_ANGIOGRAPHY_RET
-
DUPLEX_DOPPLER_RET
-
ECHOCARDIOGRAPHY_RET
-
FLUORESCEIN_ANGIOGRAPHY_RET
-
FUNDOSCOPY_RET
-
LAPAROSCOPY_RET
-
MAGNETIC_RESONANCE_ANGIOGRAPHY_RET
-
MAGNETIC_RESONANCE_SPECTROSCOPY_RET
-
OPTHALMIC_REFRACTION
-
SINGLE_PHOTON_EMISSION_COMPUTED_TOMOGRAPHY_RET
-
VIDEOFLUOROGRAPHY_RET
-
-
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 aModalitycorresponding 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
Modalitycorresponding 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 aModalitycorresponding to the supplied storage class SOP Uid.- Parameters:
storageClassUID- one of the Storage Class SOP UIDs.- Returns:
- the
Modalitycorresponding to the Storage Class SOP UID. - Throws:
InvalidArgumentException- ifstorageClassUIDdoes not have a correspondingModality.
-
getInstance
Returns aModalitycorresponding to the supplied modality name.- Parameters:
modalityName- the name of one of the Modalities.- Returns:
- the
Modalitycorresponding to the suppied name. - Throws:
InvalidArgumentException- if the name does not have a correspondingModality.
-
getInstance
-
getStorageClassUID
-
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
-
isComputedTomography
-
isMagneticResonance
-
isEnhanced
-
toString
-
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
-