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(0), Prev(0) {}
47 bool IsPerInstance()
const {
return (this->Value.GetMultiplexData() != 0); }
52 return static_cast<int>(this->Value.GetNumberOfValues()); }
60 return (vptr == 0 ? this->Value : vptr[i]); }
65 return (this->Tag == o.Tag && this->Value == o.Value); }
68 return (this->Tag != o.Tag || this->Value != o.Value); }
95 if (this->Pointer) { this->Pointer = this->Pointer->Next; }
100 if (ptr) { this->Pointer = this->Pointer->Next; }
104 if (this->Pointer) { this->Pointer = this->Pointer->Prev; }
109 if (ptr) { this->Pointer = this->Pointer->Prev; }
120 return (this->Pointer == it.Pointer); }
123 return (this->Pointer != it.Pointer); }
128 this->Pointer = ptr; }
A const iterator for a vtkDataElement list.
Definition: vtkDICOMDataElement.h:87
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:51
const vtkDICOMValue & GetValue(int i) const
Get value instance i, if the data element is multi-valued.
Definition: vtkDICOMDataElement.h:58
const vtkDICOMValue & GetValue() const
Get the value of the data element, if not multi-valued.
Definition: vtkDICOMDataElement.h:55
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