DCMTK
Version 3.6.1 20170228
OFFIS DICOM Toolkit
|
Class representing the Common Instance Reference Module: More...
Public Member Functions | |
IODCommonInstanceReferenceModule (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules) | |
Constructor. More... | |
IODCommonInstanceReferenceModule () | |
Constructor. | |
virtual void | clearData () |
Clears all data belonging to this module (rules are kept) | |
virtual | ~IODCommonInstanceReferenceModule () |
Destructor. | |
virtual size_t | addReferences (const IODReferences &references, const OFString &studyInstanceUID, const OFBool clearOldData=OFTrue) |
Add references. More... | |
virtual OFCondition | read (DcmItem &source, const OFBool clearOldData=OFTrue) |
Read data of this module from given source item. More... | |
virtual OFCondition | write (DcmItem &destination) |
Write data of this module into given destination item. More... | |
virtual void | resetRules () |
Resets rules to their original values. | |
virtual OFString | getName () const |
Get name of module ("CommonInstanceReferenceModule") More... | |
OFVector < IODSeriesAndInstanceReferenceMacro::ReferencedSeriesItem * > & | getReferencedSeriesItems () |
Return reference to list of Referenced Series items. More... | |
OFVector < StudiesOtherInstancesItem * > & | getStudiesContainingOtherReferences () |
Return reference to content of Studies Containing Other Referenced Instances Sequence. More... | |
StudiesOtherInstancesItem (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules, IODComponent *parent=NULL) | |
Constructor. More... | |
StudiesOtherInstancesItem (IODComponent *parent=NULL) | |
Constructor. More... | |
virtual | ~StudiesOtherInstancesItem () |
Destructor. | |
virtual void | clearData () |
Clear (removes) all attributes handled by the modules of this component. More... | |
virtual OFCondition | read (DcmItem &source, const OFBool clearOldData=OFTrue) |
Read data from source item into this module. More... | |
virtual OFCondition | write (DcmItem &destination) |
Write this module's data into given destination item. More... | |
virtual void | resetRules () |
Resets rules to their original values. | |
virtual OFString | getName () const |
Get name of module ("StudiesContainingOtherReferencedInstancesSequence") More... | |
virtual OFCondition | getStudyInstanceUID (OFString &value, const signed long pos=0) const |
Get Study Instance UID. More... | |
virtual OFCondition | setStudyInstanceUID (const OFString &value, const OFBool checkValue=OFTrue) |
Set Study Instance UID. More... | |
virtual IODSeriesAndInstanceReferenceMacro & | getReferencedSeriesAndInstanceReferences () |
Get Series And Instance Reference Macro. More... | |
![]() | |
IODModule (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules) | |
Constructor. More... | |
IODModule () | |
Constructor. More... | |
IODModule (const IODModule &rhs) | |
Copy constructor, creates shallow copy. More... | |
IODModule & | operator= (const IODModule &rhs) |
Assignment operator, creates shallow copy. More... | |
~IODModule () | |
Desctructor. | |
![]() | |
IODComponent (OFshared_ptr< DcmItem > item, OFshared_ptr< IODRules > rules, IODComponent *parent=NULL) | |
Constructor. More... | |
IODComponent (IODComponent *parent=NULL) | |
Constructor, creates rules and item from scratch. More... | |
IODComponent & | operator= (const IODComponent &rhs) |
Assignment operator, copies contained item and rule set from rhs to "this" attribute set. More... | |
IODComponent (const IODComponent &rhs) | |
Copy constructor, copies reference to contained item and rule set to "this" attribute set. More... | |
virtual | ~IODComponent () |
Virtual Destructor. | |
void | clearData () |
Clear all attributes from the data that are handled by this module. More... | |
virtual void | inventMissing () |
Set missing values by inventing "default values". More... | |
OFshared_ptr< IODRules > | getRules () |
Get rules handled by this module. More... | |
virtual void | makeOptional () |
Make component optional by turning all attributes requirement types of it to type 3. More... | |
DcmItem & | getData () |
Get the data handled by this module. More... | |
virtual OFCondition | check (const OFBool quiet=OFFalse) |
Check whether this component's data satisfies the underlying rules. More... | |
virtual int | compare (const IODComponent &rhs) const |
Comparison operator for IOD Components. More... | |
Private Attributes | |
OFVector < IODSeriesAndInstanceReferenceMacro::ReferencedSeriesItem * > | m_ReferenceSeriesItems |
Vector with all items of the Referenced Series Sequence. | |
OFVector < StudiesOtherInstancesItem * > | m_StudiesContainingOtherReferencedInstancesSequence |
Items of Studies Containing Other Referenced Instances Sequence. | |
IODSeriesAndInstanceReferenceMacro | m_ReferencedSeriesAndInstance |
The Series and Instance Reference Macro used in this item. | |
Static Private Attributes | |
static const OFString | m_ComponentName |
Name of this component ("CommonInstanceReferenceModule") More... | |
Additional Inherited Members | |
![]() | |
static OFCondition | read (DcmItem &source, IODRules &rules, DcmItem &destination, const OFString &componentName) |
Static helper function that reads attributes from given item into destination item, as determined by the provided rules and component name. More... | |
static OFCondition | write (DcmItem &source, IODRules &rules, DcmItem &destination, const OFString &componentName) |
Static helper function that writes attributes from given item into destination item, as determined by the provided rules and component name. More... | |
![]() | |
OFshared_ptr< DcmItem > | m_Item |
Shared pointer to the data handled by this class. More... | |
OFshared_ptr< IODRules > | m_Rules |
Rules describing the attributes governed by this class. | |
IODComponent * | m_Parent |
The parent component (may be NULL) of this class. | |
Class representing the Common Instance Reference Module:
Class representing items from the Studies Containing Other Referenced Instances Sequence, as used within the Common Instance Reference Module.
Referenced Series Sequence: (SQ, VM 1-n, Type 1C)
Series Instance UID: (UI, 1, 1) Referenced Instance Sequence: (SQ, 1-n, 1)
SOP Instance Reference Macro
Studies Containing Other Referenced Instances Sequence: (SQ, 1-n, 1C)
Study Instance UID (UI, 1, 1) Series and Instance Reference Macro
Studies Containing Other Referenced Instances Sequence: (SQ, 1-n, 1C)
Study Instance UID (UI, 1, 1) Series and Instance Reference Macro
IODCommonInstanceReferenceModule::IODCommonInstanceReferenceModule | ( | OFshared_ptr< DcmItem > | item, |
OFshared_ptr< IODRules > | rules | ||
) |
Constructor.
item | The item to be used for data storage. If NULL, the class creates an empty data container. |
rules | The rule set for this class. If NULL, the class creates one from scratch and adds its values. |
|
virtual |
Add references.
references | The references to be added |
studyInstanceUID | The Study Instance UID the references belong to |
clearOldData | Delete any old referneces if OFTrue, otherwise keep them |
|
virtual |
Clear (removes) all attributes handled by the modules of this component.
Rules are not reset.
|
virtual |
Get name of module ("CommonInstanceReferenceModule")
Implements IODComponent.
|
virtual |
Get name of module ("StudiesContainingOtherReferencedInstancesSequence")
Implements IODComponent.
|
virtual |
Get Series And Instance Reference Macro.
OFVector<IODSeriesAndInstanceReferenceMacro::ReferencedSeriesItem*>& IODCommonInstanceReferenceModule::getReferencedSeriesItems | ( | ) |
Return reference to list of Referenced Series items.
OFVector<StudiesOtherInstancesItem*>& IODCommonInstanceReferenceModule::getStudiesContainingOtherReferences | ( | ) |
Return reference to content of Studies Containing Other Referenced Instances Sequence.
|
virtual |
Get Study Instance UID.
value | Reference to variable in which the value should be stored |
pos | Index of the value to get (0..vm-1), -1 for all components |
|
virtual |
Read data of this module from given source item.
source | The item to read from |
clearOldData | If OFTrue, old data is cleared before reading, otherwise it is overwriten/amended. |
Reimplemented from IODComponent.
|
virtual |
Read data from source item into this module.
source | The item to read from |
clearOldData | If OFTrue, old data is cleared first, otherwise it is overwritten/amended |
Reimplemented from IODComponent.
|
virtual |
Set Study Instance UID.
value | Value to be set (single value only) or "" for no value |
checkValue | Check 'value' for conformance with VR (PN) and VM (1) if enabled |
IODCommonInstanceReferenceModule::StudiesOtherInstancesItem | ( | OFshared_ptr< DcmItem > | item, |
OFshared_ptr< IODRules > | rules, | ||
IODComponent * | parent = NULL |
||
) |
Constructor.
item | The item to be used for data storage. If NULL, the class creates an empty data container. |
rules | The rule set for this class. If NULL, the class creates one from scratch and adds its values. |
parent | The parent of the IOD component (NULL if none or unknown) |
IODCommonInstanceReferenceModule::StudiesOtherInstancesItem | ( | IODComponent * | parent = NULL | ) |
Constructor.
parent | The parent component of this module, might be NULL |
|
virtual |
Write data of this module into given destination item.
destination | The item to write to |
Reimplemented from IODComponent.
|
virtual |
Write this module's data into given destination item.
destination | Item to write to |
Reimplemented from IODComponent.
|
staticprivate |
Name of this component ("CommonInstanceReferenceModule")
The name of this component ("StudiesContainingOtherReferencedInstancesSequence")