33 #include "dcmtk/config/osconfig.h" 34 #include "dcmtk/dcmdata/dctk.h" 35 #include "dcmtk/dcmpstat/dvpsril.h" 36 #include "dcmtk/dcmpstat/dvpstyp.h" 85 OFBool
isApplicable(
const char *instanceUID,
unsigned long frame);
93 OFBool
matchesApplicability(
const char *instanceUID,
unsigned long frame, DVPSObjectApplicability applicability);
114 void getDisplayedArea(Sint32& tlhcX, Sint32& tlhcY, Sint32& brhcX, Sint32& brhcY);
140 const char *sopclassUID,
141 const char *instanceUID,
143 DVPSObjectApplicability applicability);
159 const char *instanceUID,
161 unsigned long numberOfFrames,
162 DVPSObjectApplicability applicability);
221 DVPSPresentationSizeMode sizeMode,
222 Sint32 tlhcX, Sint32 tlhcY,
223 Sint32 brhcX, Sint32 brhcY,
224 double magnification=1.0);
234 DVPSRotationType rotationFrom,
235 OFBool isFlippedFrom,
236 DVPSRotationType rotationTo,
void clear()
reset the object to initial state.
a class representing the DICOM value representation 'Integer String' (IS)
a class representing a list of DICOM elements in which each element has a different tag and elements ...
OFCondition setDisplayedAreaPixelAspectRatio(double ratio)
sets the displayed area pixel spacing and removes any pixel spacing setting.
virtual ~DVPSDisplayedArea()
destructor
DVPSDisplayedArea()
default constructor
a class representing the DICOM value representation 'Decimal String' (DS)
OFCondition setDisplayedArea(DVPSPresentationSizeMode sizeMode, Sint32 tlhcX, Sint32 tlhcY, Sint32 brhcX, Sint32 brhcY, double magnification=1.0)
sets the displayed area and size mode.
void rotateAndFlip(DVPSRotationType rotationFrom, OFBool isFlippedFrom, DVPSRotationType rotationTo, OFBool isFlippedTo)
adjusts the displayed area coordinates for the rotation and flipping status of the image...
OFBool isApplicable(const char *instanceUID, unsigned long frame)
checks if this displayed area is applicable to the given image and frame.
DcmFloatingPointSingle presentationPixelMagnificationRatio
VR=FL, VM=1, Type 1c (required if presentationSizeMode is "MAGNIFY")
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.
double getPresentationPixelAspectRatio()
gets the presentation pixel aspect ratio for this displayed area selection.
size_t size() const
gets the number of image references in this list.
void rotateAndFlipFromOrTo(DVPSRotationType rotation, OFBool isFlipped)
adjusts the displayed area coordinates for rotation and flipping.
DcmIntegerString presentationPixelAspectRatio
VR=IS, VM=2, Type 1c (required if presentationPixelSpacing is absent)
OFBool canUseTrueSize()
checks if the TRUE SIZE mode is possible, i.e.
DcmCodeString presentationSizeMode
VR=CS, VM=1, Type 1.
OFCondition write(DcmItem &dset)
writes the displayed area selection managed by this object to a DICOM dataset.
OFCondition getPresentationPixelSpacing(double &x, double &y)
gets the presentation pixel spacing for this displayed area if present.
OFCondition setDisplayedAreaPixelSpacing(double spacingX, double spacingY)
sets the displayed area pixel spacing and removes any pixel aspect ratio setting. ...
a class representing the DICOM value representation 'Signed Long' (SL)
void getDisplayedArea(Sint32 &tlhcX, Sint32 &tlhcY, Sint32 &brhcX, Sint32 &brhcY)
gets the displayed area top lefthand corner and bottom righthand corner.
DcmSignedLong displayedAreaBottomRightHandCorner
VR=SL, VM=2, Type 1.
a class representing the DICOM value representation 'Code String' (CS)
OFBool imageReferencesEmpty()
checks if the list of image references for this displayed area is empty.
DVPSDisplayedArea & operator=(const DVPSDisplayedArea &source)
undefined private assignment operator
DVPSPresentationSizeMode getPresentationSizeMode()
gets the presentation size mode for this displayed area selection.
DcmDecimalString presentationPixelSpacing
VR=DS, VM=2, Type 1c (required if presentationSizeMode is "TRUE SIZE")
void switchVerticalCorners()
swaps the vertical (Y) components of TLHC and BRHC
void switchHorizontalCorners()
swaps the horizontal (X) components of TLHC and BRHC
OFCondition addImageReference(const char *sopclassUID, const char *instanceUID, unsigned long frame, DVPSObjectApplicability applicability)
add a new image reference.
DVPSDisplayedArea * clone()
clone method.
OFCondition getPresentationPixelMagnificationRatio(double &magnification)
gets the presentation pixel magnification ratio for this displayed area if present.
an item of the displayed area selection sequence in a presentation state.
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.
a class representing the DICOM value representation 'Floating Point Single' (FL)
the list of referenced series contained in a presentation state (internal use only).
DcmSignedLong displayedAreaTopLeftHandCorner
VR=SL, VM=2, Type 1.
DVPSReferencedImage_PList referencedImageList
ReferencedImageSequence, Type 1c.
OFCondition read(DcmItem &dset)
reads an displayed area selection from a DICOM dataset.
the list of referenced images contained in a presentation state (internal use only).
General purpose class for condition codes.