Show / Hide Table of Contents
View Source

Class AbstractElement<T>

The overarching abstract class from which all DICOM element classes derive. Contains properties that are common to elements.

Inheritance
System.Object
AbstractElement<T>
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)
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 Source

AbstractElement()

Initializes a new instance of the AbstractElement<T> class.

Declaration
public AbstractElement()
View Source

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.

View Source

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 Source

Data

The data of the element

Declaration
public virtual T Data { get; set; }
Property Value
Type Description
T

The data.

View Source

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_.

View Source

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
IDICOMElement.DatType
View Source

DData

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
IDICOMElement.DData
View Source

DData_

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
IDICOMElement.DData_
View Source

Tag

The tag of the element

Declaration
public Tag Tag { get; set; }
Property Value
Type Description
Tag

The tag.

Implements
IDICOMElement.Tag
View Source

VR

The value representation of the element

Declaration
public VR VR { get; set; }
Property Value
Type Description
VR

The vr.

Implements
IDICOMElement.VR

Methods

View Source

GetDataOrDefault()

Plumbing method to get data from the underlying DICOMData object

Declaration
public T GetDataOrDefault()
Returns
Type Description
T

T.

View Source

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

View Source

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.

View Source

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.

Overrides
System.Object.ToString()

Extension Methods

IDICOMElementExtensions.IsVR(VR)
IDICOMElementExtensions.ToXElement()
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX