14 #ifndef vtkDICOMDataElement_h
15 #define vtkDICOMDataElement_h
17 #include "vtkDICOMModule.h"
18 #include "vtkDICOMTag.h"
19 #include "vtkDICOMValue.h"
35 Tag(t), Value(v), Next(
nullptr), Prev(
nullptr) {}
47 bool IsPerInstance()
const {
49 return (this->Value.GetMultiplexData() !=
nullptr); }
53 return static_cast<int>(this->Value.GetNumberOfValues()); }
61 return (vptr ==
nullptr ? this->Value : vptr[i]); }
66 return (this->Tag == o.Tag && this->Value == o.Value); }
69 return (this->Tag != o.Tag || this->Value != o.Value); }
96 if (this->Pointer) { this->Pointer = this->Pointer->Next; }
101 if (ptr) { this->Pointer = this->Pointer->Next; }
105 if (this->Pointer) { this->Pointer = this->Pointer->Prev; }
110 if (ptr) { this->Pointer = this->Pointer->Prev; }
121 return (this->Pointer == it.Pointer); }
124 return (this->Pointer != it.Pointer); }
129 this->Pointer = ptr; }
A const iterator for a vtkDataElement list.
Definition: vtkDICOMDataElement.h:88
A data element in a DICOM data set.
Definition: vtkDICOMDataElement.h:30
vtkDICOMVR GetVR() const
Get the VR for this data element.
Definition: vtkDICOMDataElement.h:43
int GetNumberOfInstances() const
Get the number of value instances in this data element.
Definition: vtkDICOMDataElement.h:52
const vtkDICOMValue & GetValue(int i) const
Get value instance i, if the data element is multi-valued.
Definition: vtkDICOMDataElement.h:59
const vtkDICOMValue & GetValue() const
Get the value of the data element, if not multi-valued.
Definition: vtkDICOMDataElement.h:56
An item in a DICOM sequence (type SQ).
Definition: vtkDICOMItem.h:34
A (group,element) identifier tag for DICOM attributes.
Definition: vtkDICOMTag.h:23
VRs (Value Representations)
Definition: vtkDICOMVR.h:22
A class to store attribute values for DICOM metadata.
Definition: vtkDICOMValue.h:51