Public Member Functions | |
DVPSDisplayedArea () | |
default constructor | |
DVPSDisplayedArea (const DVPSDisplayedArea ©) | |
copy constructor | |
DVPSDisplayedArea * | clone () |
clone method. | |
virtual | ~DVPSDisplayedArea () |
destructor | |
OFCondition | read (DcmItem &dset) |
reads an displayed area selection from a DICOM dataset. | |
OFCondition | write (DcmItem &dset) |
writes the displayed area selection managed by this object to a DICOM dataset. | |
OFBool | isApplicable (const char *instanceUID, unsigned long frame) |
checks if this displayed area is applicable to the given image and frame. | |
OFBool | matchesApplicability (const char *instanceUID, unsigned long frame, DVPSObjectApplicability applicability) |
checks if this displayed area matches exactly the applicability defined by the instanceUID, frame and applicability parameters. | |
DVPSPresentationSizeMode | getPresentationSizeMode () |
gets the presentation size mode for this displayed area selection. | |
double | getPresentationPixelAspectRatio () |
gets the presentation pixel aspect ratio for this displayed area selection. | |
void | getDisplayedArea (Sint32 &tlhcX, Sint32 &tlhcY, Sint32 &brhcX, Sint32 &brhcY) |
gets the displayed area top lefthand corner and bottom righthand corner. | |
OFCondition | getPresentationPixelSpacing (double &x, double &y) |
gets the presentation pixel spacing for this displayed area if present. | |
OFCondition | getPresentationPixelMagnificationRatio (double &magnification) |
gets the presentation pixel magnification ratio for this displayed area if present. | |
OFCondition | addImageReference (const char *sopclassUID, const char *instanceUID, unsigned long frame, DVPSObjectApplicability applicability) |
add a new image reference. | |
void | removeImageReference (DVPSReferencedSeries_PList &allReferences, const char *instanceUID, unsigned long frame, unsigned long numberOfFrames, DVPSObjectApplicability applicability) |
removes a reference to an image or frame. | |
void | clearImageReferences () |
removes all image references for this displayed area. | |
OFBool | imageReferencesEmpty () |
checks if the list of image references for this displayed area is empty. | |
OFBool | canUseTrueSize () |
checks if the TRUE SIZE mode is possible, i.e. | |
OFCondition | setDisplayedAreaPixelSpacing (double spacingX, double spacingY) |
sets the displayed area pixel spacing and removes any pixel aspect ratio setting. | |
OFCondition | setDisplayedAreaPixelSpacing (const char *spacing) |
sets the displayed area pixel spacing and removes any pixel aspect ratio setting. | |
OFCondition | setDisplayedAreaPixelAspectRatio (double ratio) |
sets the displayed area pixel spacing and removes any pixel spacing setting. | |
OFCondition | setDisplayedAreaPixelAspectRatio (const char *ratio) |
sets the displayed area pixel spacing and removes any pixel spacing setting. | |
OFCondition | setDisplayedArea (DVPSPresentationSizeMode sizeMode, Sint32 tlhcX, Sint32 tlhcY, Sint32 brhcX, Sint32 brhcY, double magnification=1.0) |
sets the displayed area and size mode. | |
void | setLog (OFConsole *stream, OFBool verbMode, OFBool dbgMode) |
sets a new log stream | |
void | rotateAndFlip (DVPSRotationType rotationFrom, OFBool isFlippedFrom, DVPSRotationType rotationTo, OFBool isFlippedTo) |
adjusts the displayed area coordinates for the rotation and flipping status of the image. | |
Private Member Functions | |
DVPSDisplayedArea & | operator= (const DVPSDisplayedArea &source) |
undefined private assignment operator | |
void | switchHorizontalCorners () |
swaps the horizontal (X) components of TLHC and BRHC | |
void | switchVerticalCorners () |
swaps the vertical (Y) components of TLHC and BRHC | |
void | rotateAndFlipFromOrTo (DVPSRotationType rotation, OFBool isFlipped) |
adjusts the displayed area coordinates for rotation and flipping. | |
Private Attributes | |
DVPSReferencedImage_PList | referencedImageList |
ReferencedImageSequence, Type 1c. | |
DcmSignedLong | displayedAreaTopLeftHandCorner |
VR=SL, VM=2, Type 1. | |
DcmSignedLong | displayedAreaBottomRightHandCorner |
VR=SL, VM=2, Type 1. | |
DcmCodeString | presentationSizeMode |
VR=CS, VM=1, Type 1. | |
DcmDecimalString | presentationPixelSpacing |
VR=DS, VM=2, Type 1c (required if presentationSizeMode is "TRUE SIZE"). | |
DcmIntegerString | presentationPixelAspectRatio |
VR=IS, VM=2, Type 1c (required if presentationPixelSpacing is absent). | |
DcmFloatingPointSingle | presentationPixelMagnificationRatio |
VR=FL, VM=1, Type 1c (required if presentationSizeMode is "MAGNIFY"). | |
OFConsole * | logstream |
output stream for error messages, never NULL | |
OFBool | verboseMode |
flag indicating whether we're operating in verbose mode | |
OFBool | debugMode |
flag indicating whether we're operating in debug mode |
Definition at line 47 of file dvpsda.h.
|
add a new image reference. Checks if the referenced SOP instance UID already exists in this sequence. If it exists, an error code is returned. Otherwise a new image reference is created and added to the ReferencedImageSequence.
|
|
checks if the TRUE SIZE mode is possible, i.e. if pixel spacing is known.
Referenced by imageReferencesEmpty(). |
|
clone method.
Definition at line 60 of file dvpsda.h. References DVPSDisplayedArea(). |
|
gets the displayed area top lefthand corner and bottom righthand corner.
|
|
gets the presentation pixel aspect ratio for this displayed area selection. Pixel aspect ratio is defined here as the width of a pixel divided by the height of a pixel (x/y).
|
|
gets the presentation pixel magnification ratio for this displayed area if present.
|
|
gets the presentation pixel spacing for this displayed area if present.
|
|
gets the presentation size mode for this displayed area selection.
|
|
checks if the list of image references for this displayed area is empty.
Definition at line 175 of file dvpsda.h. References canUseTrueSize(), operator=(), referencedImageList, rotateAndFlip(), rotateAndFlipFromOrTo(), setDisplayedArea(), setDisplayedAreaPixelAspectRatio(), setDisplayedAreaPixelSpacing(), setLog(), DVPSReferencedImage_PList::size(), switchHorizontalCorners(), and switchVerticalCorners(). |
|
checks if this displayed area is applicable to the given image and frame.
|
|
checks if this displayed area matches exactly the applicability defined by the instanceUID, frame and applicability parameters.
|
|
reads an displayed area selection from a DICOM dataset. The DICOM elements of the displayed area selection item are copied from the dataset to this object. The completeness of the item (presence of all required elements, value multiplicity) is checked. If this method returns an error code, the object is in undefined state afterwards.
|
|
removes a reference to an image or frame. If the current reference is empty ("global"), an explicit list of references is constructed from the list of series/instance references. The image or frame reference is removed from the total list of references in this object. If the only reference contained in this object is removed, the reference list becomes empty which means that the current reference becomes "global". This case must be handled by the caller.
|
|
adjusts the displayed area coordinates for the rotation and flipping status of the image.
Referenced by imageReferencesEmpty(). |
|
adjusts the displayed area coordinates for rotation and flipping. This method can either be used to adjust from unrotated/unflipped to a rotated/flipped status or back from this status to original.
Referenced by imageReferencesEmpty(). |
|
sets the displayed area and size mode.
Referenced by imageReferencesEmpty(). |
|
sets the displayed area pixel spacing and removes any pixel spacing setting.
|
|
sets the displayed area pixel spacing and removes any pixel spacing setting. Pixel aspect ratio is defined here as the width of a pixel divided by the height of a pixel (x/y).
Referenced by imageReferencesEmpty(). |
|
sets the displayed area pixel spacing and removes any pixel aspect ratio setting.
|
|
sets the displayed area pixel spacing and removes any pixel aspect ratio setting.
Referenced by imageReferencesEmpty(). |
|
sets a new log stream
Referenced by imageReferencesEmpty(). |
|
writes the displayed area selection managed by this object to a DICOM dataset. Copies of the DICOM element managed by this object are inserted into the DICOM dataset.
|