17 #include "vtkSystemIncludes.h"
18 #include "vtkDICOMModule.h"
19 #include "vtkDICOMDictHash.h"
35 vtkDICOMTag(
int group,
int element) : Key((group << 16) | element) {}
45 unsigned short GetGroup()
const {
47 return static_cast<unsigned short>(this->Key >> 16); }
51 return static_cast<unsigned short>(this->Key); }
55 unsigned int GetKey()
const {
61 unsigned int h = (this->Key >> 15) + this->Key;
62 return h + (h >> 6) + (h >> 12); }
67 return (this->Key == b.Key); }
70 return (this->Key != b.Key); }
73 return (this->Key <= b.Key); }
76 return (this->Key >= b.Key); }
79 return (this->Key < b.Key); }
82 return (this->Key > b.Key); }
89 VTKDICOM_EXPORT ostream& operator<<(ostream& o,
const vtkDICOMTag& a);
A (group,element) identifier tag for DICOM attributes.
Definition: vtkDICOMTag.h:23
vtkDICOMTag(int group, int element)
Construct a tag from group, element numbers.
Definition: vtkDICOMTag.h:35
unsigned int ComputeHash() const
Compute a hash value, used for accelerating lookups.
Definition: vtkDICOMTag.h:60
vtkDICOMTag(DC::EnumType tag)
Construct a tag from an identifier from the DICOM dictionary.
Definition: vtkDICOMTag.h:38
vtkDICOMTag(StaticTag tag)
Construct a tag object from a static tag.
Definition: vtkDICOMTag.h:41
unsigned short GetElement() const
Get the 16-bit element identifier.
Definition: vtkDICOMTag.h:50
A struct that provides static storage for a DICOM tag.
Definition: vtkDICOMTag.h:27