DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Member Functions | Private Attributes
DVPSDisplayedArea_PList Class Reference

the list of displayed area selections contained in a presentation state (internal use only). More...

List of all members.

Public Member Functions

 DVPSDisplayedArea_PList ()
 default constructor
 DVPSDisplayedArea_PList (const DVPSDisplayedArea_PList &copy)
 copy constructor
DVPSDisplayedArea_PListclone ()
 clone method.
virtual ~DVPSDisplayedArea_PList ()
 destructor
OFCondition read (DcmItem &dset)
 reads a list of displayed area selections (DisplayedAreaSelectionSequence) from a DICOM dataset.
OFCondition write (DcmItem &dset)
 writes the list of displayed area selections managed by this object to a DICOM dataset.
void clear ()
 reset the object to initial state.
size_t size () const
 gets the number of displayed area selections in this list.
DVPSDisplayedAreafindDisplayedArea (const char *instanceUID, unsigned long frame)
 checks if an displayed area selection exists for the given image and frame.
DVPSDisplayedAreacreateDisplayedArea (DVPSReferencedSeries_PList &allReferences, const char *sopclassUID, const char *instanceUID, unsigned long frame, unsigned long numberOfFrames, DVPSObjectApplicability applicability)
 finds or creates a displayed area selection SQ item with an applicability controlled by the applicability, instanceUID and frame parameters.
void rotateAndFlip (DVPSRotationType rotationFrom, OFBool isFlippedFrom, DVPSRotationType rotationTo, OFBool isFlippedTo)
 adjusts all displayed area coordinates for the rotation and flipping status of the image.

Private Member Functions

DVPSDisplayedArea_PListoperator= (const DVPSDisplayedArea_PList &)
 private undefined assignment operator

Private Attributes

OFList< DVPSDisplayedArea * > list_
 the list maintained by this object

Detailed Description

the list of displayed area selections contained in a presentation state (internal use only).

This class manages the data structures comprising one complete displayed area selection sequence contained in a presentation state object.


Member Function Documentation

reset the object to initial state.

After this call, the object is in the same state as after creation with the default constructor.

clone method.

Returns:
a pointer to a new DVPSDisplayedArea_PList object containing a deep copy of this object.
DVPSDisplayedArea* DVPSDisplayedArea_PList::createDisplayedArea ( DVPSReferencedSeries_PList allReferences,
const char *  sopclassUID,
const char *  instanceUID,
unsigned long  frame,
unsigned long  numberOfFrames,
DVPSObjectApplicability  applicability 
)

finds or creates a displayed area selection SQ item with an applicability controlled by the applicability, instanceUID and frame parameters.

The displayed area selection sequence is rearranged such that all other referenced images/frames keep their old displayed area settings.

Parameters:
allReferenceslist of series/instance references registered for the presentation state.
sopclassUIDSOP class UID of the current image
instanceUIDSOP instance UID of the current image
framenumber of the current frame
numberOfFramesnumber of frames of the current image
applicabilityapplicability of the new displayed area selection
Returns:
pointer to a displayed area selection object from the list that matches the applicability parameters. NULL is returned if out of memory.
DVPSDisplayedArea* DVPSDisplayedArea_PList::findDisplayedArea ( const char *  instanceUID,
unsigned long  frame 
)

checks if an displayed area selection exists for the given image and frame.

Parameters:
instanceUIDSOP instance UID of the current image
framenumber of the current frame
Returns:
pointer to the displayed area if it exists, NULL otherwise.

reads a list of displayed area selections (DisplayedAreaSelectionSequence) from a DICOM dataset.

The DICOM elements of the displayed area selection item are copied from the dataset to this object. The completeness of all items (presence of all required elements, value multiplicity) is checked. If this method returns an error code, the object is in undefined state afterwards.

Parameters:
dsetthe DICOM dataset from which the sequence is to be read
Returns:
EC_Normal if successful, an error code otherwise.
void DVPSDisplayedArea_PList::rotateAndFlip ( DVPSRotationType  rotationFrom,
OFBool  isFlippedFrom,
DVPSRotationType  rotationTo,
OFBool  isFlippedTo 
)

adjusts all displayed area coordinates for the rotation and flipping status of the image.

Parameters:
rotationFromprevious rotation
isFlippedFromprevious flip status
rotationTonew rotation
isFlippedTonew flip status
size_t DVPSDisplayedArea_PList::size ( ) const [inline]

gets the number of displayed area selections in this list.

Returns:
the number of displayed area selections.

writes the list of displayed area selections managed by this object to a DICOM dataset.

Copies of the DICOM elements managed by this object are inserted into the DICOM dataset.

Parameters:
dsetthe DICOM dataset to which the DisplayedAreaSelectionSequence is written
Returns:
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