DCMTK
Version 3.6.6
OFFIS DICOM Toolkit
|
a class representing a DICOM Value Representation More...
Public Member Functions | |
DcmVR () | |
default constructor | |
DcmVR (DcmEVR evr) | |
constructor More... | |
DcmVR (const char *vrName) | |
constructor. More... | |
DcmVR (const DcmVR &avr) | |
copy constructor More... | |
void | setVR (DcmEVR evr) |
assign new VR value More... | |
void | setVR (const char *vrName) |
assign new VR value by name. More... | |
void | setVR (const DcmVR &avr) |
assign new VR value More... | |
DcmVR & | operator= (const DcmVR &arg) |
copy assignment operator More... | |
DcmEVR | getEVR () const |
get enumerated VR managed by this object More... | |
DcmEVR | getValidEVR () const |
get enumerated standard VR managed by this object. More... | |
const char * | getVRName () const |
get symbolic VR name for this object More... | |
const char * | getValidVRName () const |
get symbolic standard VR name for this object. More... | |
size_t | getValueWidth () const |
compute the size for non-empty values of this VR. More... | |
OFBool | isStandard () const |
returns true if VR is a standard DICOM VR More... | |
OFBool | isForInternalUseOnly () const |
returns true if VR is for internal use only More... | |
OFBool | isaString () const |
returns true if VR represents a string More... | |
OFBool | usesExtendedLengthEncoding () const |
returns true if VR uses an extended length encoding for explicit transfer syntaxes More... | |
OFBool | supportsUndefinedLength () const |
returns true if VR supports undefined length for the value length field and a sequence delimitation item marks the end of the value field More... | |
OFBool | isEquivalent (const DcmVR &avr) const |
check if VRs are equivalent. More... | |
Uint32 | getMinValueLength () const |
return minimum length of a single value with this VR. More... | |
Uint32 | getMaxValueLength () const |
return maximum length of a single value with this VR. More... | |
OFBool | isAffectedBySpecificCharacterSet () const |
return whether elements of this VR are affected by SpecificCharacterSet More... | |
const OFString & | getDelimiterChars () const |
retrieve delimiter characters to be used for character set conversion (to switch back to the default character set in case code extension techniques like ISO 2022 are used). More... | |
OFBool | isLengthInChar () const |
check whether the maximum or minimum length of a value with this VR is in bytes or characters. More... | |
Private Attributes | |
DcmEVR | vr |
the enumerated VR value | |
a class representing a DICOM Value Representation
|
inline |
constructor
evr | enumerated VR value |
|
inline |
constructor.
Please note that only the first two characters of the passed string are actually checked. Value Representations that are labeled for internal use only are mapped to EVR_UNKNOWN.
vrName | symbolic name of value representation |
|
inline |
copy constructor
avr | VR value |
const OFString& DcmVR::getDelimiterChars | ( | ) | const |
|
inline |
get enumerated VR managed by this object
Uint32 DcmVR::getMaxValueLength | ( | ) | const |
return maximum length of a single value with this VR.
Whether the returned length is in bytes or characters can be determined by isLengthInChar().
Uint32 DcmVR::getMinValueLength | ( | ) | const |
return minimum length of a single value with this VR.
Whether the returned length is in bytes or characters can be determined by isLengthInChar().
DcmEVR DcmVR::getValidEVR | ( | ) | const |
get enumerated standard VR managed by this object.
If this object manages a non-standard, internal VR such as EVR_ox, this method returns the enumerated VR to which the internal VR will be mapped when writing the DICOM object.
Please note that some VR, e.g. EVR_pixelItem, won't be written as EVR_UNKNOWN, although this method will return that value for them. This means that e.g. usesExtendedLengthEncoding() for the returned VR might not be correct.
Also note that DcmItem::checkAndUpdateVR() will in some cases influence the VR which is written out.
const char* DcmVR::getValidVRName | ( | ) | const |
get symbolic standard VR name for this object.
If this object manages a non-standard, internal VR such as EVR_ox, this method returns the name of the VR to which the internal VR will be mapped when writing the DICOM object.
size_t DcmVR::getValueWidth | ( | ) | const |
compute the size for non-empty values of this VR.
For fixed size VRs such as OW, US, SL, the method returns the size of each value, in bytes. For variable length VRs (strings), it returns 1. For internal VRs it returns 0.
const char* DcmVR::getVRName | ( | ) | const |
get symbolic VR name for this object
OFBool DcmVR::isAffectedBySpecificCharacterSet | ( | ) | const |
return whether elements of this VR are affected by SpecificCharacterSet
OFBool DcmVR::isaString | ( | ) | const |
returns true if VR represents a string
OFBool DcmVR::isEquivalent | ( | const DcmVR & | avr | ) | const |
check if VRs are equivalent.
VRs are considered equivalent if equal or if one of them is an internal VR and the other one is a possible standard VR to which the internal one maps.
avr | VR to compare with |
OFBool DcmVR::isForInternalUseOnly | ( | ) | const |
returns true if VR is for internal use only
OFBool DcmVR::isLengthInChar | ( | ) | const |
check whether the maximum or minimum length of a value with this VR is in bytes or characters.
See getMinValueLength() and getMaxValueLength().
OFBool DcmVR::isStandard | ( | ) | const |
returns true if VR is a standard DICOM VR
copy assignment operator
arg | vr to assign from |
References vr.
void DcmVR::setVR | ( | const char * | vrName | ) |
assign new VR value by name.
Please note that only the first two characters of the passed string are actually checked. Value Representations that are labeled for internal use only are mapped to EVR_UNKNOWN.
vrName | symbolic name of value representation |
|
inline |
void DcmVR::setVR | ( | DcmEVR | evr | ) |
assign new VR value
evr | enumerated VR value |
OFBool DcmVR::supportsUndefinedLength | ( | ) | const |
returns true if VR supports undefined length for the value length field and a sequence delimitation item marks the end of the value field
OFBool DcmVR::usesExtendedLengthEncoding | ( | ) | const |
returns true if VR uses an extended length encoding for explicit transfer syntaxes