DCMTK
Version 3.6.2
OFFIS DICOM Toolkit
|
Abstract base class for deriving specific functional groups. More...
Public Member Functions | |
FGBase (const DcmFGTypes::E_FGType fgType) | |
Constructor, creates new functional group of given type. More... | |
virtual OFCondition | check () const =0 |
Check whether functional group has valid and complete data. More... | |
virtual OFCondition | read (DcmItem &item)=0 |
Read functional group from given item. More... | |
virtual OFCondition | write (DcmItem &item)=0 |
Write functional group to given item. More... | |
virtual DcmFGTypes::E_FGSharedType | getSharedType () const =0 |
Find out whether functional group is potentially only shared, only per-frame or can be both. More... | |
virtual DcmFGTypes::E_FGType | getType () const |
Return the type of this functional group. More... | |
virtual void | clearData ()=0 |
Clear any data in the group. | |
virtual | ~FGBase () |
Virtual destructor. | |
virtual int | compare (const FGBase &rhs) const =0 |
Comparison operator that compares the normalized value of this object with a given object of the same type, i.e. the elements within both functional groups (this and rhs parameter) are compared by value! Both objects (this and rhs) need to have the same type (e.g. both FGDerivationImage) to be comparable. More... | |
virtual FGBase * | clone () const =0 |
Returns a deep copy of this object. More... | |
Protected Member Functions | |
virtual OFCondition | getItemFromFGSequence (DcmItem &source, const DcmTagKey &seqKey, const unsigned long itemNum, DcmItem *&result) |
Get the item containing the payload of a functional group sequence, identified by the functional group's sequence key provided and the desired item number. More... | |
virtual OFCondition | createNewFGSequence (DcmItem &destination, const DcmTagKey &seqKey, const unsigned long numItems, DcmItem *&firstItem) |
Create functional group sequence specified by given sequence tag key. More... | |
Private Member Functions | |
FGBase () | |
Private default constructor, shall not be used. | |
Private Attributes | |
DcmFGTypes::E_FGType | m_fgType |
The type of the functional group. | |
Abstract base class for deriving specific functional groups.
FGBase::FGBase | ( | const DcmFGTypes::E_FGType | fgType | ) |
Constructor, creates new functional group of given type.
fgType | The type of functional group to create |
|
pure virtual |
Check whether functional group has valid and complete data.
Implemented in FGDerivationImage, FGUnknown, FGPlaneOrientationPatient, FGFrameAnatomy, FGPlanePosPatient, FGRealWorldValueMapping, FGIdentityPixelValueTransformation, FGSegmentation, FGFrameContent, FGPlaneOrientationVolume, FGImageDataType, FGPixelMeasures, FGPlanePositionVolume, FGFrameVOILUT, FGParametricMapFrameType, and FGUSImageDescription.
Referenced by FGFrameVOILUT::getSharedType(), FGParametricMapFrameType::getSharedType(), FGPixelMeasures::getSharedType(), FGImageDataType::getSharedType(), FGPlanePositionVolume::getSharedType(), FGFrameContent::getSharedType(), FGPlaneOrientationVolume::getSharedType(), FGSegmentation::getSharedType(), FGIdentityPixelValueTransformation::getSharedType(), FGRealWorldValueMapping::getSharedType(), FGPlanePosPatient::getSharedType(), FGFrameAnatomy::getSharedType(), FGPlaneOrientationPatient::getSharedType(), FGUnknown::getSharedType(), and FGDerivationImage::getSharedType().
|
pure virtual |
Returns a deep copy of this object.
Implemented in FGDerivationImage, FGUnknown, FGFrameAnatomy, FGRealWorldValueMapping, FGIdentityPixelValueTransformation, FGFrameContent, FGPlaneOrientationPatient, FGPlanePosPatient, FGSegmentation, FGPlaneOrientationVolume, FGImageDataType, FGPixelMeasures, FGPlanePositionVolume, FGUSImageDescription, FGFrameVOILUT, and FGParametricMapFrameType.
Referenced by FGUnknown::getSharedType().
|
pure 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 functional groups (this and rhs parameter) are compared by value! Both objects (this and rhs) need to have the same type (e.g. both FGDerivationImage) to be comparable.
This function is used in order to decide whether a functional group already exists, or is new. This is used in particular to find out whether a given functional group can be shared (i.e. the same information already exists as shared functional group) or is different from the same shared group. In that case the shared functional group must be distributed into per-frame functional groups, instead. The exact implementation for implementing the comparison is not relevant. However, it must be a comparison by value.
rhs | the right hand side of the comparison |
Implemented in FGDerivationImage, FGUnknown, FGFrameVOILUT, FGUSImageDescription, FGImageDataType, FGPixelMeasures, FGPlaneOrientationVolume, FGPlanePositionVolume, FGFrameAnatomy, FGIdentityPixelValueTransformation, FGPlaneOrientationPatient, FGRealWorldValueMapping, FGParametricMapFrameType, FGPlanePosPatient, FGFrameContent, and FGSegmentation.
Referenced by FGFrameContent::getSharedType(), FGSegmentation::getSharedType(), FGIdentityPixelValueTransformation::getSharedType(), FGRealWorldValueMapping::getSharedType(), FGPlanePosPatient::getSharedType(), FGFrameAnatomy::getSharedType(), FGPlaneOrientationPatient::getSharedType(), and FGUnknown::getSharedType().
|
protectedvirtual |
Create functional group sequence specified by given sequence tag key.
destination | The item to put the sequence into |
seqKey | The functional group's tag key |
numItems | The number of items to create within sequence (minus 1). Usually, functional group only contain a single item, i.e. numItems would be set to 0 |
firstItem | Reference to the first item the method created |
|
protectedvirtual |
Get the item containing the payload of a functional group sequence, identified by the functional group's sequence key provided and the desired item number.
source | The item to read the sequence from, e.g. item of the Shared Functional Group Sequence |
seqKey | The identifying key of the functional group's sequence |
itemNum | The item number to get from that sequence (usually, a functional group has exactly a single item, i.e. the parameter would be set to 0 |
result | The item if found, otherwise NULL |
|
pure virtual |
Find out whether functional group is potentially only shared, only per-frame or can be both.
Implemented in FGDerivationImage, FGUnknown, FGUSImageDescription, FGPlaneOrientationPatient, FGFrameAnatomy, FGPlanePosPatient, FGRealWorldValueMapping, FGIdentityPixelValueTransformation, FGSegmentation, FGFrameContent, FGPlaneOrientationVolume, FGImageDataType, FGPixelMeasures, FGPlanePositionVolume, FGFrameVOILUT, and FGParametricMapFrameType.
|
virtual |
Return the type of this functional group.
Reimplemented in FGUnknown.
|
pure virtual |
Read functional group from given item.
Old data is overwritten.
item | The item to read from. This must contain the sequence element that uniquely identifies the functional group. |
Implemented in FGDerivationImage, FGUnknown, FGSegmentation, FGPlaneOrientationPatient, FGFrameAnatomy, FGPlanePosPatient, FGRealWorldValueMapping, FGIdentityPixelValueTransformation, FGPlaneOrientationVolume, FGFrameContent, FGPlanePositionVolume, FGImageDataType, FGPixelMeasures, FGFrameVOILUT, FGParametricMapFrameType, and FGUSImageDescription.
Referenced by FGFrameVOILUT::getSharedType(), FGParametricMapFrameType::getSharedType(), FGPixelMeasures::getSharedType(), FGImageDataType::getSharedType(), FGPlanePositionVolume::getSharedType(), FGFrameContent::getSharedType(), FGPlaneOrientationVolume::getSharedType(), FGSegmentation::getSharedType(), FGIdentityPixelValueTransformation::getSharedType(), FGRealWorldValueMapping::getSharedType(), FGPlanePosPatient::getSharedType(), FGFrameAnatomy::getSharedType(), FGPlaneOrientationPatient::getSharedType(), FGUnknown::getSharedType(), and FGDerivationImage::getSharedType().
|
pure virtual |
Write functional group to given item.
If the functional group already exists it is overwritten.
item | The item to write to. The method will write the sequence specific for the functional group into the item |
Implemented in FGDerivationImage, FGRealWorldValueMapping, FGUnknown, FGSegmentation, FGPlaneOrientationPatient, FGFrameAnatomy, FGPlanePosPatient, FGRealWorldValueMapping, FGIdentityPixelValueTransformation, FGPlaneOrientationVolume, FGFrameContent, FGPlanePositionVolume, FGImageDataType, FGPixelMeasures, FGFrameVOILUT, FGParametricMapFrameType, and FGUSImageDescription.
Referenced by FGFrameVOILUT::getSharedType(), FGParametricMapFrameType::getSharedType(), FGPixelMeasures::getSharedType(), FGImageDataType::getSharedType(), FGPlanePositionVolume::getSharedType(), FGFrameContent::getSharedType(), FGPlaneOrientationVolume::getSharedType(), FGSegmentation::getSharedType(), FGIdentityPixelValueTransformation::getSharedType(), FGRealWorldValueMapping::getSharedType(), FGPlanePosPatient::getSharedType(), FGFrameAnatomy::getSharedType(), FGPlaneOrientationPatient::getSharedType(), FGUnknown::getSharedType(), and FGDerivationImage::getSharedType().