Class PrivateDicomDictionary


  • public class PrivateDicomDictionary
    extends java.lang.Object
    Note does not use hashtable since two Private keys can have same hashcode.
    Author:
    justinsenseney
    • Field Detail

      • DEFAULT_DICTIONARY_FILENAME

        public static final java.lang.String DEFAULT_DICTIONARY_FILENAME
        default dictionary file name, "dicom_dictionary.txt".
        See Also:
        Constant Field Values
      • SUBSET_DICTIONARY_FILENAME

        public static final java.lang.String SUBSET_DICTIONARY_FILENAME
        subset dictionary file name, "dicomsave.dictionary".
        See Also:
        Constant Field Values
      • DEFAULT_DICTIONARY

        protected static final int DEFAULT_DICTIONARY
        DOCUMENT ME!
        See Also:
        Constant Field Values
      • SUBSET_DICTIONARY

        protected static final int SUBSET_DICTIONARY
        DOCUMENT ME!
        See Also:
        Constant Field Values
      • masterPrivateTreeMap

        private static java.util.TreeMap<PrivateFileDicomKey,​FileDicomTagInfo> masterPrivateTreeMap
        TreeMap filled with known DICOM tags with empty value attributes.
      • subsetTreeMap

        private static java.util.TreeMap<PrivateFileDicomKey,​FileDicomTagInfo> subsetTreeMap
        TreeMap filled with DICOM tags which are a subset (not necessarily a proper subset) of dicom tags in the master table. This subset is then used to export dicom tags to the XML image format.
      • privateDictionaryProcessed

        public static boolean privateDictionaryProcessed
    • Constructor Detail

      • PrivateDicomDictionary

        public PrivateDicomDictionary()
    • Method Detail

      • getPrivateDicomTagTable

        public static java.util.TreeMap<PrivateFileDicomKey,​FileDicomTagInfo> getPrivateDicomTagTable​(boolean forceReload)
        Returns a reference to the DICOM Hashtable.
        Parameters:
        forceReload - If true, forces the master tag table to be re-read from the dicom dictionary file
        Returns:
        a reference to the dicom tag table
      • containsTag

        public static boolean containsTag​(PrivateFileDicomKey key)
        Returns whether the dicom dictionary contains a tag with the given key identifier.
        Parameters:
        key - the key for this tag
        Returns:
        whether a tag matching the given key is contained in the dicom dictionary.
      • getFileReader

        protected static java.io.BufferedReader getFileReader​(java.lang.String filename)
        Gets a buffered reader for a given file name.
        Parameters:
        filename - The file we will be reading.
        Returns:
        A reader for the given file name.
      • getInfo

        public static FileDicomTagInfo getInfo​(PrivateFileDicomKey key)
        Return information about a key in the dicom dictionary.
        Parameters:
        key - the key to retreive information about
        Returns:
        information about the requested key
      • convertToWildKey

        protected static FileDicomKey convertToWildKey​(PrivateFileDicomKey key)
        Converts group numbers of 60xx or 50xx dicom key elements so that the dicom dictionary will be able to find them.
      • parseFile

        protected static void parseFile​(int dictionary_type)
        Method called once when the user opens MIPAV. It parses the dictionary file, normally called "dicom_dictionary.txt". The dictionary file is where all the tags are listed and stores these in the DICOMHashtable, with empty value attributes.
        See Also:
        FileDicomTagInfo
      • doParseFile

        protected static boolean doParseFile()