DCMTK
Version 3.6.3
OFFIS DICOM Toolkit
|
Class representing the General Anatomy Mandatory or Optional Macro. More...
Public Member Functions | |
GeneralAnatomyMacro (const OFString &type) | |
Constructor. More... | |
GeneralAnatomyMacro (const GeneralAnatomyMacro &rhs) | |
Copy constructor, creates deep copy. More... | |
virtual | ~GeneralAnatomyMacro () |
Virtual destructor. | |
virtual void | clearData () |
Clear (removes) all attributes handled by the modules of this component. | |
virtual OFCondition | check (const OFBool quiet=OFFalse) |
Check whether this component's data satisfies the underlying rules. More... | |
virtual CodeSequenceMacro & | getAnatomicRegion () |
Return Anatomic Region. More... | |
virtual OFVector< CodeSequenceMacro * > & | getAnatomicRegionModifier () |
Return Anatomic Region Modifier Codes. More... | |
virtual PrimaryAnatomicStructureMacro & | getPrimaryAnatomicStructure () |
Return anatomic structure. More... | |
virtual OFCondition | read (DcmItem &source, const OFBool clearOldData=OFTrue) |
Reads Anatomic Region Sequence and Primary Anatomic Structure Macro from given item. More... | |
virtual OFCondition | write (DcmItem &item) |
Write Anatomic Region Sequence and Primary Anatomic Structure Macro to given item. More... | |
GeneralAnatomyMacro & | operator= (const GeneralAnatomyMacro &rhs) |
Assignment operator (performs deep copy) More... | |
virtual int | compare (const GeneralAnatomyMacro &rhs) const |
Comparison operator that compares the normalized value of this object with a given object of the same type, i.e. the elements within both objects (this and rhs parameter) are compared by value. More... | |
Private Attributes | |
OFString | m_Type |
Type (1,2,3) of Anatomic Region Sequence. | |
CodeSequenceMacro | m_AnatomicRegion |
Anatomic Region Sequence (SQ, 1, 1) (Code Sequence Macro within item of Anatomic Region Sequence)) | |
OFVector< CodeSequenceMacro * > | m_AnatomicRegionModifier |
Anatomic Region Modifier Macro (within item of Anatomic Region Sequence) | |
PrimaryAnatomicStructureMacro | m_PrimaryAnatomicStructure |
Primary Anatomic Structure Macro (on the same level as Anatomic Region Sequence) | |
Class representing the General Anatomy Mandatory or Optional Macro.
GeneralAnatomyMacro::GeneralAnatomyMacro | ( | const OFString & | type | ) |
Constructor.
type | Type of Anatomic Region Sequence. Permitted values: If 1, the class represents the "General Anatomy Mandatory Macro", if type 2 then it behaves like the "General Anatomy Required Macro", and type 3 like the "General Anatomy Optional Macro". Other values are interpreted as type 3 (optional). |
GeneralAnatomyMacro::GeneralAnatomyMacro | ( | const GeneralAnatomyMacro & | rhs | ) |
Copy constructor, creates deep copy.
rhs | The macro to copy from |
|
virtual |
Check whether this component's data satisfies the underlying rules.
quiet | If OFTrue, not error / warning messages will be produced. Only the returned error code will indicate error or OK. Per default, logging output is produced (OFFalse). |
|
virtual |
Comparison operator that compares the normalized value of this object with a given object of the same type, i.e. the elements within both objects (this and rhs parameter) are compared by value.
rhs | the right hand side of the comparison |
|
virtual |
Return Anatomic Region.
|
virtual |
Return Anatomic Region Modifier Codes.
|
virtual |
Return anatomic structure.
GeneralAnatomyMacro& GeneralAnatomyMacro::operator= | ( | const GeneralAnatomyMacro & | rhs | ) |
Assignment operator (performs deep copy)
rhs | The macro to copy from |
|
virtual |
Reads Anatomic Region Sequence and Primary Anatomic Structure Macro from given item.
source | The item to read from |
clearOldData | If OFTrue, old data is cleared before reading, otherwise it is kept/overwritten. |
|
virtual |
Write Anatomic Region Sequence and Primary Anatomic Structure Macro to given item.
item | The item to write to |