Class DICOMObjectWrapper
Inheritance
System.Object
DICOMObjectWrapper
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.Wrapping
Assembly:EvilDICOM.dll
Syntax
public abstract class DICOMObjectWrapper
Constructors
View SourceDICOMObjectWrapper()
Declaration
public DICOMObjectWrapper()
DICOMObjectWrapper(DICOMObject)
Declaration
public DICOMObjectWrapper(DICOMObject dicom)
Parameters
| Type | Name | Description |
|---|---|---|
| DICOMObject | dicom |
Properties
View SourceDCM
Declaration
public DICOMObject DCM { get; set; }
Property Value
| Type | Description |
|---|---|
| DICOMObject |
Methods
View SourceGetValue<T>(Tag)
Declaration
public DICOMData<T> GetValue<T>(Tag tag)
Parameters
| Type | Name | Description |
|---|---|---|
| Tag | tag |
Returns
| Type | Description |
|---|---|
| DICOMData<T> |
Type Parameters
| Name | Description |
|---|---|
| T |
GetWrappedSequence<T>(Tag)
Wraps a DICOM sequence with a type that inherits from DICOMObjectWrapper
Declaration
public SequenceItemWrapper<T> GetWrappedSequence<T>(Tag tag)
where T : DICOMObjectWrapper, new()
Parameters
| Type | Name | Description |
|---|---|---|
| Tag | tag | the DICOM tag of the sequence which contains the objects to wrap |
Returns
| Type | Description |
|---|---|
| SequenceItemWrapper<T> | a list of wrapped DICOM objects |
Type Parameters
| Name | Description |
|---|---|
| T | the wrapping class for the DICOM objects within the sequence |
SetValue<T>(Tag, T)
Declaration
public void SetValue<T>(Tag tag, T value)
Parameters
| Type | Name | Description |
|---|---|---|
| Tag | tag | |
| T | value |
Type Parameters
| Name | Description |
|---|---|
| T |
SetWrappedSequence<T>(Tag, List<T>)
Extracts the DICOMObjects out of a list of DICOMObjectWrappers and sets these as the new values in the sequence
Declaration
public void SetWrappedSequence<T>(Tag tag, List<T> value)
where T : DICOMObjectWrapper
Parameters
| Type | Name | Description |
|---|---|---|
| Tag | tag | the DICOM tag of the sequence where to place the newly extracted objects |
| System.Collections.Generic.List<T> | value | the list of wrapped DICOMObjects to go in the sequence |
Type Parameters
| Name | Description |
|---|---|
| T |
Write(String, DICOMIOSettings)
Declaration
public void Write(string filePath, DICOMIOSettings settings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filePath | |
| DICOMIOSettings | settings |
WriteAddMeta(String, DICOMIOSettings)
Declaration
public void WriteAddMeta(string filePath, DICOMIOSettings settings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filePath | |
| DICOMIOSettings | settings |