Class AbstractElement<T>
The overarching abstract class from which all DICOM element classes derive. Contains properties that are common to elements.
Inheritance
Inherited Members
Namespace:EvilDICOM.Core.Element
Assembly:EvilDICOM.dll
Syntax
public abstract class AbstractElement<T> : IDICOMElement
Type Parameters
Name | Description |
---|---|
T | the data type of the element |
Constructors
View SourceAbstractElement()
Initializes a new instance of the AbstractElement<T> class.
Declaration
public AbstractElement()
AbstractElement(Tag, T)
Initializes a new instance of the AbstractElement<T> class.
Declaration
public AbstractElement(Tag tag, T data)
Parameters
Type | Name | Description |
---|---|---|
Tag | tag | The tag. |
T | data | The data. |
AbstractElement(Tag, T[])
Initializes a new instance of the AbstractElement<T> class.
Declaration
public AbstractElement(Tag tag, T[] dataArray)
Parameters
Type | Name | Description |
---|---|---|
Tag | tag | The tag. |
T[] | dataArray | The data array. |
Properties
View SourceData
The data of the element
Declaration
public virtual T Data { get; set; }
Property Value
Type | Description |
---|---|
T | The data. |
Data_
The data of the element as a list (for multiple data)
Declaration
public virtual List<T> Data_ { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T> | The data_. |
DatType
The clr type of the contained data
Declaration
public Type DatType { get; }
Property Value
Type | Description |
---|---|
System.Type | The type of the dat. |
Implements
View SourceDData
The non-typed data that can be accessed in a dynamic context
Declaration
public object DData { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The d data. |
Implements
View SourceDData_
The dynamic data in the element stored in a list of type T
Declaration
public IList DData_ { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IList | The d data_. |
Implements
View SourceTag
The tag of the element
Declaration
public Tag Tag { get; set; }
Property Value
Type | Description |
---|---|
Tag | The tag. |
Implements
View SourceVR
The value representation of the element
Declaration
public VR VR { get; set; }
Property Value
Type | Description |
---|---|
VR | The vr. |
Implements
Methods
View SourceGetDataOrDefault()
Plumbing method to get data from the underlying DICOMData object
Declaration
public T GetDataOrDefault()
Returns
Type | Description |
---|---|
T | T. |
SetData(T)
Plumbing method wrap the data in a DICOMData container
Declaration
public void SetData(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | the typed data |
SetData(T[])
Plumbing method wrap the data in a DICOMData container
Declaration
public void SetData(T[] dataArray)
Parameters
Type | Name | Description |
---|---|---|
T[] | dataArray | The data array. |
ToString()
To string override to visualize tag and vr of element
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |