CurrentVR property
Builder Syntax |
TDICOMVRItem* CurrentVR |
Delphi Syntax |
CurrentVR: TDICOMVRItem |
Overview |
Refer to Working with Value Representations. |
Remarks
Holds the currently selected Value Representation Table item.
The TDICOMVRItem class has the following Read-Only properties:
Property |
Type |
Description |
Code |
Word |
Code that indicates the type of value stored in the data element. For a list of default values supported by DICOM, refer to Value Representation Constants. |
Length |
Cardinal |
The length of the value to be stored in the data element. |
Name |
String |
Character string that contains the name of the Value Representation. To see the default values for the Value Representation Names, refer to the Default Value Representation Table. |
Restrict |
Word |
Restrictions on the length. Possible values are given below. For a list of available options, see below. |
UnitSize |
Word |
The size of the smallest item that can be stored in the data element. |
Internally LEADTOOLS maintains a table or list of available value representations. These value representations can include default value representations available in DICOM, as well as user defined value representations. You can access any of this information, add to the table, or delete items from the table using the XXXVR methods. To see the default values, refer to the Value Representation Table.
Possible values for the Restrict property are given below.
Value |
Meaning |
VR_FIXED |
[$00] Length is a fixed number of bytes. |
VR_MAXIMUM |
[$01] Length is the maximum number of bytes allowed. |
VR_MAXIMUM_GROUP |
[$02] Length is the maximum number of bytes allowed per component group |
VR_ANY |
[$03] Any length is valid. |
VR_NOT_APPLICABLE |
[$04] Length is not applicable |
One of the values above may be combined with one of the values below using the bitwise OR operator.
VR_BINARY |
[$0100] Binary value. |
VR_STRING |
[$0200] String value (The character '\' is used as the delimiter between values for multiple data elements). |
VR_TEXT |
[$0400] Text value. (Data elements with this VR cannot be multi-valued). |
Note: The CurrentVR property is read only, except that you can explicitly set it to Nil in Pascal or NULL in C++.
See Also