14 #ifndef vtkDICOMSequence_h
15 #define vtkDICOMSequence_h
17 #include "vtkDICOMModule.h"
18 #include "vtkDICOMValue.h"
53 return this->Get(i, tag); }
56 return this->Get(i, p); }
71 return this->V.GetNumberOfValues(); }
87 return this->V.GetSequenceData(); }
100 return this->V.IsValid(); }
106 this->V = o.V;
return *
this; }
111 else { this->V.
Clear(); }
return *
this; }
125 VTKDICOM_EXPORT ostream& operator<<(ostream& os,
const vtkDICOMSequence& v);
An item in a DICOM sequence (type SQ).
Definition: vtkDICOMItem.h:34
A sequence of items according to the SQ representation.
Definition: vtkDICOMSequence.h:32
void SetItem(size_t i, const vtkDICOMItem &item)
Set an item in the sequence.
vtkDICOMSequence(unsigned int n)
Construct a sequence of fixed size.
vtkDICOMSequence(const vtkDICOMValue &o)
Conversion from value to sequence is type checked.
Definition: vtkDICOMSequence.h:95
size_t GetNumberOfItems() const
Get the number of items in the sequence.
Definition: vtkDICOMSequence.h:70
const vtkDICOMItem * GetSequenceData() const
Get a pointer to the items in the sequence.
Definition: vtkDICOMSequence.h:86
const vtkDICOMItem & GetItem(size_t i) const
Get an item from the sequence.
vtkDICOMSequence & operator=(const vtkDICOMValue &o)
Assignment from value to sequence is type checked.
Definition: vtkDICOMSequence.h:109
bool IsValid() const
Check that the sequence was constructed from a valid value.
Definition: vtkDICOMSequence.h:99
void AddItem(const vtkDICOMItem &item)
Add an item to the sequence.
A tag path for digging values out of sequence items.
Definition: vtkDICOMTagPath.h:27
A (group,element) identifier tag for DICOM attributes.
Definition: vtkDICOMTag.h:23
@ SQ
Sequence of Items.
Definition: vtkDICOMVR.h:51
A class to store attribute values for DICOM metadata.
Definition: vtkDICOMValue.h:51
vtkDICOMVR GetVR() const
Get the VR, the representation of the data values.
Definition: vtkDICOMValue.h:177
void Clear()
Clear the value, the result is an invalid value.
Definition: vtkDICOMValue.h:166