DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Attributes
DRTIonBlockSequence::Item Class Reference

Item class. More...

+ Inheritance diagram for DRTIonBlockSequence::Item:

List of all members.

Public Member Functions

 Item (const OFBool emptyDefaultItem=OFFalse)
 (default) constructor
 Item (const Item &copy)
 copy constructor
virtual ~Item ()
 destructor
Itemoperator= (const Item &copy)
 assigment operator
void clear ()
 clear all internal member variables
OFBool isEmpty ()
 check if item is empty
OFBool isValid () const
 check if item is valid, i.e. not the empty default item
OFCondition read (DcmItem &item)
 read elements from sequence item
OFCondition write (DcmItem &item)
 write elements to sequence item
OFCondition getAccessoryCode (OFString &value, const signed long pos=0) const
 get AccessoryCode (300a,00f9)
OFCondition getBlockData (OFString &value, const signed long pos=0) const
 get BlockData (300a,0106)
OFCondition getBlockData (Float64 &value, const unsigned long pos=0) const
 get BlockData (300a,0106)
OFCondition getBlockData (OFVector< Float64 > &value) const
 get BlockData (300a,0106)
OFCondition getBlockDivergence (OFString &value, const signed long pos=0) const
 get BlockDivergence (300a,00fa)
OFCondition getBlockMountingPosition (OFString &value, const signed long pos=0) const
 get BlockMountingPosition (300a,00fb)
OFCondition getBlockName (OFString &value, const signed long pos=0) const
 get BlockName (300a,00fe)
OFCondition getBlockNumber (OFString &value, const signed long pos=0) const
 get BlockNumber (300a,00fc)
OFCondition getBlockNumber (Sint32 &value, const unsigned long pos=0) const
 get BlockNumber (300a,00fc)
OFCondition getBlockNumberOfPoints (OFString &value, const signed long pos=0) const
 get BlockNumberOfPoints (300a,0104)
OFCondition getBlockNumberOfPoints (Sint32 &value, const unsigned long pos=0) const
 get BlockNumberOfPoints (300a,0104)
OFCondition getBlockThickness (OFString &value, const signed long pos=0) const
 get BlockThickness (300a,0100)
OFCondition getBlockThickness (Float64 &value, const unsigned long pos=0) const
 get BlockThickness (300a,0100)
OFCondition getBlockTrayID (OFString &value, const signed long pos=0) const
 get BlockTrayID (300a,00f5)
OFCondition getBlockType (OFString &value, const signed long pos=0) const
 get BlockType (300a,00f8)
OFCondition getIsocenterToBlockTrayDistance (Float32 &value, const unsigned long pos=0) const
 get IsocenterToBlockTrayDistance (300a,00f7)
OFCondition getMaterialID (OFString &value, const signed long pos=0) const
 get MaterialID (300a,00e1)
OFCondition setAccessoryCode (const OFString &value, const OFBool check=OFTrue)
 set AccessoryCode (300a,00f9)
OFCondition setBlockData (const OFString &value, const OFBool check=OFTrue)
 set BlockData (300a,0106)
OFCondition setBlockDivergence (const OFString &value, const OFBool check=OFTrue)
 set BlockDivergence (300a,00fa)
OFCondition setBlockMountingPosition (const OFString &value, const OFBool check=OFTrue)
 set BlockMountingPosition (300a,00fb)
OFCondition setBlockName (const OFString &value, const OFBool check=OFTrue)
 set BlockName (300a,00fe)
OFCondition setBlockNumber (const OFString &value, const OFBool check=OFTrue)
 set BlockNumber (300a,00fc)
OFCondition setBlockNumberOfPoints (const OFString &value, const OFBool check=OFTrue)
 set BlockNumberOfPoints (300a,0104)
OFCondition setBlockThickness (const OFString &value, const OFBool check=OFTrue)
 set BlockThickness (300a,0100)
OFCondition setBlockTrayID (const OFString &value, const OFBool check=OFTrue)
 set BlockTrayID (300a,00f5)
OFCondition setBlockType (const OFString &value, const OFBool check=OFTrue)
 set BlockType (300a,00f8)
OFCondition setIsocenterToBlockTrayDistance (const Float32 value, const unsigned long pos=0)
 set IsocenterToBlockTrayDistance (300a,00f7)
OFCondition setMaterialID (const OFString &value, const OFBool check=OFTrue)
 set MaterialID (300a,00e1)

Private Attributes

OFBool EmptyDefaultItem
 internal flag used to mark the empty default item
DcmLongString AccessoryCode
 AccessoryCode (300a,00f9) vr=LO, vm=1, type=3.
DcmDecimalString BlockData
 BlockData (300a,0106) vr=DS, vm=2-2n, type=1.
DcmCodeString BlockDivergence
 BlockDivergence (300a,00fa) vr=CS, vm=1, type=1.
DcmCodeString BlockMountingPosition
 BlockMountingPosition (300a,00fb) vr=CS, vm=1, type=1.
DcmLongString BlockName
 BlockName (300a,00fe) vr=LO, vm=1, type=3.
DcmIntegerString BlockNumber
 BlockNumber (300a,00fc) vr=IS, vm=1, type=1.
DcmIntegerString BlockNumberOfPoints
 BlockNumberOfPoints (300a,0104) vr=IS, vm=1, type=1.
DcmDecimalString BlockThickness
 BlockThickness (300a,0100) vr=DS, vm=1, type=1.
DcmShortString BlockTrayID
 BlockTrayID (300a,00f5) vr=SH, vm=1, type=3.
DcmCodeString BlockType
 BlockType (300a,00f8) vr=CS, vm=1, type=1.
DcmFloatingPointSingle IsocenterToBlockTrayDistance
 IsocenterToBlockTrayDistance (300a,00f7) vr=FL, vm=1, type=1.
DcmShortString MaterialID
 MaterialID (300a,00e1) vr=SH, vm=1, type=2.

Detailed Description

Item class.


Constructor & Destructor Documentation

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

(default) constructor

Parameters:
emptyDefaultItemflag used to mark the empty default item

copy constructor

Parameters:
copyitem object to be copied

Member Function Documentation

OFCondition DRTIonBlockSequence::Item::getAccessoryCode ( OFString value,
const signed long  pos = 0 
) const

get AccessoryCode (300a,00f9)

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
OFCondition DRTIonBlockSequence::Item::getBlockData ( OFString value,
const signed long  pos = 0 
) const

get BlockData (300a,0106)

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
OFCondition DRTIonBlockSequence::Item::getBlockData ( Float64 &  value,
const unsigned long  pos = 0 
) const

get BlockData (300a,0106)

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

get BlockData (300a,0106)

Parameters:
valuereference to variable in which the value(s) should be stored
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTIonBlockSequence::Item::getBlockDivergence ( OFString value,
const signed long  pos = 0 
) const

get BlockDivergence (300a,00fa)

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
OFCondition DRTIonBlockSequence::Item::getBlockMountingPosition ( OFString value,
const signed long  pos = 0 
) const

get BlockMountingPosition (300a,00fb)

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
OFCondition DRTIonBlockSequence::Item::getBlockName ( OFString value,
const signed long  pos = 0 
) const

get BlockName (300a,00fe)

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
OFCondition DRTIonBlockSequence::Item::getBlockNumber ( OFString value,
const signed long  pos = 0 
) const

get BlockNumber (300a,00fc)

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
OFCondition DRTIonBlockSequence::Item::getBlockNumber ( Sint32 &  value,
const unsigned long  pos = 0 
) const

get BlockNumber (300a,00fc)

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
OFCondition DRTIonBlockSequence::Item::getBlockNumberOfPoints ( OFString value,
const signed long  pos = 0 
) const

get BlockNumberOfPoints (300a,0104)

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
OFCondition DRTIonBlockSequence::Item::getBlockNumberOfPoints ( Sint32 &  value,
const unsigned long  pos = 0 
) const

get BlockNumberOfPoints (300a,0104)

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
OFCondition DRTIonBlockSequence::Item::getBlockThickness ( OFString value,
const signed long  pos = 0 
) const

get BlockThickness (300a,0100)

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
OFCondition DRTIonBlockSequence::Item::getBlockThickness ( Float64 &  value,
const unsigned long  pos = 0 
) const

get BlockThickness (300a,0100)

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
OFCondition DRTIonBlockSequence::Item::getBlockTrayID ( OFString value,
const signed long  pos = 0 
) const

get BlockTrayID (300a,00f5)

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
OFCondition DRTIonBlockSequence::Item::getBlockType ( OFString value,
const signed long  pos = 0 
) const

get BlockType (300a,00f8)

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
OFCondition DRTIonBlockSequence::Item::getIsocenterToBlockTrayDistance ( Float32 &  value,
const unsigned long  pos = 0 
) const

get IsocenterToBlockTrayDistance (300a,00f7)

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
OFCondition DRTIonBlockSequence::Item::getMaterialID ( OFString value,
const signed long  pos = 0 
) const

get MaterialID (300a,00e1)

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

check if item is empty

Returns:
OFTrue if item is empty, OFFalse otherwise

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

Returns:
OFTrue if item is valid, OFFalse otherwise
Item& DRTIonBlockSequence::Item::operator= ( const Item copy)

assigment operator

Parameters:
copyitem object to be copied

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
OFCondition DRTIonBlockSequence::Item::setAccessoryCode ( const OFString value,
const OFBool  check = OFTrue 
)

set AccessoryCode (300a,00f9)

Parameters:
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (LO) and VM (1) if enabled
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTIonBlockSequence::Item::setBlockData ( const OFString value,
const OFBool  check = OFTrue 
)

set BlockData (300a,0106)

Parameters:
valuevalue to be set (possibly multi-valued) or "" for no value
checkcheck 'value' for conformance with VR (DS) and VM (2-2n) if enabled
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTIonBlockSequence::Item::setBlockDivergence ( const OFString value,
const OFBool  check = OFTrue 
)

set BlockDivergence (300a,00fa)

Parameters:
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (CS) and VM (1) if enabled
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTIonBlockSequence::Item::setBlockMountingPosition ( const OFString value,
const OFBool  check = OFTrue 
)

set BlockMountingPosition (300a,00fb)

Parameters:
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (CS) and VM (1) if enabled
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTIonBlockSequence::Item::setBlockName ( const OFString value,
const OFBool  check = OFTrue 
)

set BlockName (300a,00fe)

Parameters:
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (LO) and VM (1) if enabled
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTIonBlockSequence::Item::setBlockNumber ( const OFString value,
const OFBool  check = OFTrue 
)

set BlockNumber (300a,00fc)

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
OFCondition DRTIonBlockSequence::Item::setBlockNumberOfPoints ( const OFString value,
const OFBool  check = OFTrue 
)

set BlockNumberOfPoints (300a,0104)

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
OFCondition DRTIonBlockSequence::Item::setBlockThickness ( const OFString value,
const OFBool  check = OFTrue 
)

set BlockThickness (300a,0100)

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
OFCondition DRTIonBlockSequence::Item::setBlockTrayID ( const OFString value,
const OFBool  check = OFTrue 
)

set BlockTrayID (300a,00f5)

Parameters:
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (SH) and VM (1) if enabled
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTIonBlockSequence::Item::setBlockType ( const OFString value,
const OFBool  check = OFTrue 
)

set BlockType (300a,00f8)

Parameters:
valuevalue to be set (single value only) or "" for no value
checkcheck 'value' for conformance with VR (CS) and VM (1) if enabled
Returns:
status, EC_Normal if successful, an error code otherwise
OFCondition DRTIonBlockSequence::Item::setIsocenterToBlockTrayDistance ( const Float32  value,
const unsigned long  pos = 0 
)

set IsocenterToBlockTrayDistance (300a,00f7)

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
OFCondition DRTIonBlockSequence::Item::setMaterialID ( const OFString value,
const OFBool  check = OFTrue 
)

set MaterialID (300a,00e1)

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

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 Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027