DCMTK  Version 3.6.6
OFFIS DICOM Toolkit
Public Member Functions | Private Attributes | List of all members
DRTBeamDoseVerificationControlPointSequence::Item Class Reference

Item class. More...

+ Inheritance diagram for DRTBeamDoseVerificationControlPointSequence::Item:

Public Member Functions

 Item (const OFBool emptyDefaultItem=OFFalse)
 (default) constructor More...
 
 Item (const Item &copy)
 copy constructor More...
 
virtual ~Item ()
 destructor
 
Itemoperator= (const Item &copy)
 assigment operator More...
 
void clear ()
 clear all internal member variables
 
OFBool isEmpty ()
 check if item is empty More...
 
OFBool isValid () const
 check if item is valid, i.e. not the empty default item More...
 
OFCondition read (DcmItem &item)
 read elements from sequence item More...
 
OFCondition write (DcmItem &item)
 write elements to sequence item More...
 
OFCondition getBeamDosePointDepth (Float32 &value, const unsigned long pos=0) const
 get BeamDosePointDepth (300a,0088) More...
 
OFCondition getBeamDosePointEquivalentDepth (Float32 &value, const unsigned long pos=0) const
 get BeamDosePointEquivalentDepth (300a,0089) More...
 
OFCondition getBeamDosePointSSD (Float32 &value, const unsigned long pos=0) const
 get BeamDosePointSSD (300a,008a) More...
 
OFCondition getCumulativeMetersetWeight (OFString &value, const signed long pos=0) const
 get CumulativeMetersetWeight (300a,0134) More...
 
OFCondition getCumulativeMetersetWeight (Float64 &value, const unsigned long pos=0) const
 get CumulativeMetersetWeight (300a,0134) More...
 
OFCondition getReferencedControlPointIndex (OFString &value, const signed long pos=0) const
 get ReferencedControlPointIndex (300c,00f0) More...
 
OFCondition getReferencedControlPointIndex (Sint32 &value, const unsigned long pos=0) const
 get ReferencedControlPointIndex (300c,00f0) More...
 
OFCondition setBeamDosePointDepth (const Float32 value, const unsigned long pos=0)
 set BeamDosePointDepth (300a,0088) More...
 
OFCondition setBeamDosePointEquivalentDepth (const Float32 value, const unsigned long pos=0)
 set BeamDosePointEquivalentDepth (300a,0089) More...
 
OFCondition setBeamDosePointSSD (const Float32 value, const unsigned long pos=0)
 set BeamDosePointSSD (300a,008a) More...
 
OFCondition setCumulativeMetersetWeight (const OFString &value, const OFBool check=OFTrue)
 set CumulativeMetersetWeight (300a,0134) More...
 
OFCondition setReferencedControlPointIndex (const OFString &value, const OFBool check=OFTrue)
 set ReferencedControlPointIndex (300c,00f0) More...
 

Private Attributes

OFBool EmptyDefaultItem
 internal flag used to mark the empty default item
 
DcmFloatingPointSingle BeamDosePointDepth
 BeamDosePointDepth (300a,0088) vr=FL, vm=1, type=1C.
 
DcmFloatingPointSingle BeamDosePointEquivalentDepth
 BeamDosePointEquivalentDepth (300a,0089) vr=FL, vm=1, type=1C.
 
DcmFloatingPointSingle BeamDosePointSSD
 BeamDosePointSSD (300a,008a) vr=FL, vm=1, type=1C.
 
DcmDecimalString CumulativeMetersetWeight
 CumulativeMetersetWeight (300a,0134) vr=DS, vm=1, type=1.
 
DcmIntegerString ReferencedControlPointIndex
 ReferencedControlPointIndex (300c,00f0) vr=IS, vm=1, type=1C.
 

Additional Inherited Members

- Protected Member Functions inherited from DRTTypes
virtual ~DRTTypes ()
 destructor. More...
 
- Static Protected Member Functions inherited from DRTTypes
static OFCondition addElementToDataset (OFCondition &result, DcmItem &dataset, DcmElement *element, const OFString &vm, const OFString &type, const char *moduleName=NULL)
 add given element to the dataset. More...
 
static OFCondition getElementFromDataset (DcmItem &dataset, DcmElement &element)
 get element from dataset More...
 
static OFCondition getStringValueFromElement (const DcmElement &element, OFString &stringValue, const signed long pos=0)
 get string value from element More...
 
static OFCondition getStringValueFromDataset (DcmItem &dataset, const DcmTagKey &tagKey, OFString &stringValue)
 get string value from dataset More...
 
static OFCondition putStringValueToDataset (DcmItem &dataset, const DcmTag &tag, const OFString &stringValue, const OFBool allowEmpty=OFTrue)
 put string value to dataset More...
 
static OFBool checkElementValue (DcmElement &element, const OFString &vm, const OFString &type, const OFCondition &searchCond=EC_Normal, const char *moduleName=NULL)
 check element value for correct value multiplicity and type More...
 
static OFCondition getAndCheckElementFromDataset (DcmItem &dataset, DcmElement &element, const OFString &vm, const OFString &type, const char *moduleName=NULL)
 get element from dataset and check it for correct value multiplicity and type. More...
 
static OFCondition getAndCheckStringValueFromDataset (DcmItem &dataset, const DcmTagKey &tagKey, OFString &stringValue, const OFString &vm, const OFString &type, const char *moduleName=NULL)
 get string value from dataset and check it for correct value multiplicity and type. More...
 

Detailed Description

Item class.

Constructor & Destructor Documentation

◆ Item() [1/2]

DRTBeamDoseVerificationControlPointSequence::Item::Item ( const OFBool  emptyDefaultItem = OFFalse)

(default) constructor

Parameters
emptyDefaultItemflag used to mark the empty default item

◆ Item() [2/2]

DRTBeamDoseVerificationControlPointSequence::Item::Item ( const Item copy)

copy constructor

Parameters
copyitem object to be copied

Member Function Documentation

◆ getBeamDosePointDepth()

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::getBeamDosePointDepth ( Float32 &  value,
const unsigned long  pos = 0 
) const

get BeamDosePointDepth (300a,0088)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1)
Returns
status, EC_Normal if successful, an error code otherwise

◆ getBeamDosePointEquivalentDepth()

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::getBeamDosePointEquivalentDepth ( Float32 &  value,
const unsigned long  pos = 0 
) const

get BeamDosePointEquivalentDepth (300a,0089)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1)
Returns
status, EC_Normal if successful, an error code otherwise

◆ getBeamDosePointSSD()

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::getBeamDosePointSSD ( Float32 &  value,
const unsigned long  pos = 0 
) const

get BeamDosePointSSD (300a,008a)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1)
Returns
status, EC_Normal if successful, an error code otherwise

◆ getCumulativeMetersetWeight() [1/2]

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::getCumulativeMetersetWeight ( Float64 &  value,
const unsigned long  pos = 0 
) const

get CumulativeMetersetWeight (300a,0134)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1)
Returns
status, EC_Normal if successful, an error code otherwise

◆ getCumulativeMetersetWeight() [2/2]

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::getCumulativeMetersetWeight ( OFString value,
const signed long  pos = 0 
) const

get CumulativeMetersetWeight (300a,0134)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1), -1 for all components
Returns
status, EC_Normal if successful, an error code otherwise

◆ getReferencedControlPointIndex() [1/2]

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::getReferencedControlPointIndex ( OFString value,
const signed long  pos = 0 
) const

get ReferencedControlPointIndex (300c,00f0)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1), -1 for all components
Returns
status, EC_Normal if successful, an error code otherwise

◆ getReferencedControlPointIndex() [2/2]

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::getReferencedControlPointIndex ( Sint32 &  value,
const unsigned long  pos = 0 
) const

get ReferencedControlPointIndex (300c,00f0)

Parameters
valuereference to variable in which the value should be stored
posindex of the value to get (0..vm-1)
Returns
status, EC_Normal if successful, an error code otherwise

◆ isEmpty()

OFBool DRTBeamDoseVerificationControlPointSequence::Item::isEmpty ( )

check if item is empty

Returns
OFTrue if item is empty, OFFalse otherwise

◆ isValid()

OFBool DRTBeamDoseVerificationControlPointSequence::Item::isValid ( ) const

check if item is valid, i.e. not the empty default item

Returns
OFTrue if item is valid, OFFalse otherwise

◆ operator=()

Item& DRTBeamDoseVerificationControlPointSequence::Item::operator= ( const Item copy)

assigment operator

Parameters
copyitem object to be copied
Returns
reference to this object

◆ read()

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::read ( DcmItem item)

read elements from sequence item

Parameters
itemreference to DICOM sequence item from which the elements should be read
Returns
status, EC_Normal if successful, an error code otherwise

◆ setBeamDosePointDepth()

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::setBeamDosePointDepth ( const Float32  value,
const unsigned long  pos = 0 
)

set BeamDosePointDepth (300a,0088)

Parameters
valuevalue to be set (should be valid for this VR)
posindex of the value to be set (0..vm-1), vm=1
Returns
status, EC_Normal if successful, an error code otherwise

◆ setBeamDosePointEquivalentDepth()

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::setBeamDosePointEquivalentDepth ( const Float32  value,
const unsigned long  pos = 0 
)

set BeamDosePointEquivalentDepth (300a,0089)

Parameters
valuevalue to be set (should be valid for this VR)
posindex of the value to be set (0..vm-1), vm=1
Returns
status, EC_Normal if successful, an error code otherwise

◆ setBeamDosePointSSD()

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::setBeamDosePointSSD ( const Float32  value,
const unsigned long  pos = 0 
)

set BeamDosePointSSD (300a,008a)

Parameters
valuevalue to be set (should be valid for this VR)
posindex of the value to be set (0..vm-1), vm=1
Returns
status, EC_Normal if successful, an error code otherwise

◆ setCumulativeMetersetWeight()

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::setCumulativeMetersetWeight ( const OFString value,
const OFBool  check = OFTrue 
)

set CumulativeMetersetWeight (300a,0134)

Parameters
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (DS) and VM (1) if enabled
Returns
status, EC_Normal if successful, an error code otherwise

◆ setReferencedControlPointIndex()

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::setReferencedControlPointIndex ( const OFString value,
const OFBool  check = OFTrue 
)

set ReferencedControlPointIndex (300c,00f0)

Parameters
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (IS) and VM (1) if enabled
Returns
status, EC_Normal if successful, an error code otherwise

◆ write()

OFCondition DRTBeamDoseVerificationControlPointSequence::Item::write ( DcmItem item)

write elements to sequence item

Parameters
itemreference to DICOM sequence item to which the elements should be written
Returns
status, EC_Normal if successful, an error code otherwise

The documentation for this class was generated from the following file:


Generated on Thu Jan 14 2021 for DCMTK Version 3.6.6 by Doxygen 1.8.18