Class DicomDictionary
- Namespace
- FellowOakDicom
- Assembly
- fo-dicom.core.dll
Class for managing DICOM dictionaries.
public class DicomDictionary : IEnumerable<DicomDictionaryEntry>, IEnumerable
- Inheritance
-
DicomDictionary
- Implements
- Inherited Members
- Extension Methods
Constructors
DicomDictionary()
public DicomDictionary()
Fields
PrivateCreatorTag
public static readonly DicomDictionaryEntry PrivateCreatorTag
Field Value
UnknownTag
public static readonly DicomDictionaryEntry UnknownTag
Field Value
Properties
Default
public static DicomDictionary Default { get; set; }
Property Value
this[DicomPrivateCreator]
public DicomDictionary this[DicomPrivateCreator creator] { get; }
Parameters
creator
DicomPrivateCreator
Property Value
this[DicomTag]
public DicomDictionaryEntry this[DicomTag tag] { get; }
Parameters
tag
DicomTag
Property Value
this[string]
Gets the DIcomTag for a given keyword.
public DicomTag this[string keyword] { get; }
Parameters
keyword
stringThe attribute keyword that we look for.
Property Value
- DicomTag
A matching DicomTag or null if none is found.
PrivateCreator
public DicomPrivateCreator PrivateCreator { get; }
Property Value
Methods
Add(DicomDictionaryEntry)
public void Add(DicomDictionaryEntry entry)
Parameters
entry
DicomDictionaryEntry
EnsureDefaultDictionariesLoaded(bool?)
Ensures the default DICOM dictionaries are loaded Safe to call multiple times but will throw an exception if inconsistent values for loadPrivateDictionary are provided over multiple calls
public static DicomDictionary EnsureDefaultDictionariesLoaded(bool? loadPrivateDictionary = null)
Parameters
loadPrivateDictionary
bool?Leave null (default value) if unconcerned. Set true to search for resource streams named "Dicom.Dictionaries.Private Dictionary.xml.gz" in referenced assemblies
Returns
GetEnumerator()
public IEnumerator<DicomDictionaryEntry> GetEnumerator()
Returns
GetPrivateCreator(string)
public DicomPrivateCreator GetPrivateCreator(string creator)
Parameters
creator
string
Returns
Load(string, DicomDictionaryFormat)
Load DICOM dictionary data from file.
public void Load(string file, DicomDictionaryFormat format)
Parameters
file
stringFile name.
format
DicomDictionaryFormatFile format.