Class DicomVR
- Namespace
- FellowOakDicom
- Assembly
- fo-dicom.core.dll
DICOM Value Representation
public sealed class DicomVR
- Inheritance
-
DicomVR
- Inherited Members
- Extension Methods
Fields
AE
Application Entity
public static readonly DicomVR AE
Field Value
AS
Age String
public static readonly DicomVR AS
Field Value
AT
Attribute Tag
public static readonly DicomVR AT
Field Value
CS
Code String
public static readonly DicomVR CS
Field Value
DA
Date
public static readonly DicomVR DA
Field Value
DS
Decimal String
public static readonly DicomVR DS
Field Value
DT
Date Time
public static readonly DicomVR DT
Field Value
FD
Floating Point Double
public static readonly DicomVR FD
Field Value
FL
Floating Point Single
public static readonly DicomVR FL
Field Value
IS
Integer String
public static readonly DicomVR IS
Field Value
LO
Long String
public static readonly DicomVR LO
Field Value
LT
Long Text
public static readonly DicomVR LT
Field Value
NONE
No VR
public static readonly DicomVR NONE
Field Value
OB
Other Byte
public static readonly DicomVR OB
Field Value
OD
Other Double
public static readonly DicomVR OD
Field Value
OF
Other Float
public static readonly DicomVR OF
Field Value
OL
Other Long
public static readonly DicomVR OL
Field Value
OV
Other Very Long
public static readonly DicomVR OV
Field Value
OW
Other Word
public static readonly DicomVR OW
Field Value
PN
Person Name
public static readonly DicomVR PN
Field Value
SH
Short String
public static readonly DicomVR SH
Field Value
SL
Signed Long
public static readonly DicomVR SL
Field Value
SQ
Sequence of Items
public static readonly DicomVR SQ
Field Value
SS
Signed Short
public static readonly DicomVR SS
Field Value
ST
Short Text
public static readonly DicomVR ST
Field Value
SV
Signed Very Long
public static readonly DicomVR SV
Field Value
TM
Time
public static readonly DicomVR TM
Field Value
UC
Unlimited Characters
public static readonly DicomVR UC
Field Value
UI
Unique Identifier
public static readonly DicomVR UI
Field Value
UL
Unsigned Long
public static readonly DicomVR UL
Field Value
UN
Unknown
public static readonly DicomVR UN
Field Value
UR
Universal Resource Identifier or Universal Resource Locator (URI/URL)
public static readonly DicomVR UR
Field Value
US
Unsigned Short
public static readonly DicomVR US
Field Value
UT
Unlimited Text
public static readonly DicomVR UT
Field Value
UV
Unsigned Very Long
public static readonly DicomVR UV
Field Value
Properties
ByteSwap
Number of bytes to swap when changing endian representation of value. Usually equal to the UnitSize.
public int ByteSwap { get; }
Property Value
Code
Code used to represent VR.
public string Code { get; }
Property Value
Is16bitLength
Length field of value is a 16-bit short integer.
public bool Is16bitLength { get; }
Property Value
IsMultiValue
Value can contain multiple items.
public bool IsMultiValue { get; }
Property Value
IsString
Value is a string.
public bool IsString { get; }
Property Value
IsStringEncoded
String is encoded using the specified character set.
public bool IsStringEncoded { get; }
Property Value
MaximumLength
Maximum length of a single value.
public uint MaximumLength { get; }
Property Value
Name
Descriptive name of VR.
public string Name { get; }
Property Value
PaddingValue
Byte value used to pad value to even length.
public byte PaddingValue { get; }
Property Value
UnitSize
Size of each individual value unit for fixed length value types.
public int UnitSize { get; }
Property Value
ValueType
Type used to represent VR value.
public Type ValueType { get; }
Property Value
Methods
Parse(string)
Get VR for given string value.
public static DicomVR Parse(string vr)
Parameters
vr
stringString representation of VR
Returns
- DicomVR
VR
ToString()
Gets a string representation of this VR.
public override string ToString()
Returns
- string
VR code
TryParse(byte[], out DicomVR)
Try to get VR for given UTF8 encoded string value.
public static bool TryParse(byte[] vr, out DicomVR result)
Parameters
Returns
- bool
true if VR was successfully parsed, false otherwise
TryParse(string, out DicomVR)
Try to get VR for given string value.
public static bool TryParse(string vr, out DicomVR result)
Parameters
Returns
- bool
true if VR was successfully parsed, false otherwise
ValidateString(string)
validates a string content. Throws Dicom
public void ValidateString(string content)
Parameters
content
string