Class ElementFactory
Responsible for building concrete elements from element pieces
Inheritance
System.Object
ElementFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:EvilDICOM.Core.Element
Assembly:EvilDICOM.dll
Syntax
public class ElementFactory
Methods
View SourceGenerateElement(Tag, VR, Object, TransferSyntax, StringEncoding)
Generates a concrete element class from the VR, tag, data and syntax. Also directs the appropriate data interpretation.
Declaration
public static IDICOMElement GenerateElement(Tag tag, VR vr, object data, TransferSyntax syntax, StringEncoding enc)
Parameters
Type | Name | Description |
---|---|---|
Tag | tag | the tag of the element to be generated |
VR | vr | the VR of the element to be generated |
System.Object | data | the raw data to be procesed (byte array) |
TransferSyntax | syntax | the transfer syntax by which to interepret the data |
StringEncoding | enc |
Returns
Type | Description |
---|---|
IDICOMElement | a concrete DICOM element that uses the interface IDICOMElement |
ReadString(VR, Tag, Object, StringEncoding)
Reads string data and creates the appropriate DICOM element
Declaration
public static IDICOMElement ReadString(VR vr, Tag tag, object data, StringEncoding enc)
Parameters
Type | Name | Description |
---|---|---|
VR | vr | the VR of the element to be generated |
Tag | tag | |
System.Object | data | the string data as an object (fresh from the DICOM reader) |
StringEncoding | enc |
Returns
Type | Description |
---|---|
IDICOMElement | a concrete DICOM element that uses the interface IDICOMElement |