33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmdata/dcitem.h"
35 #include "dcmtk/dcmpstat/dvpstyp.h"
36 #include "dcmtk/dcmdata/dcvrui.h"
92 OFBool writeRequestedImageSize,
94 OFBool ignoreEmptyImages,
95 OFBool writeReferencedPLUTSQ = OFTrue);
137 const char *instanceuid,
138 const char *retrieveaetitle,
139 const char *refstudyuid,
140 const char *refseriesuid,
141 const char *refsopclassuid,
142 const char *refsopinstanceuid,
143 const char *requestedimagesize,
144 const char *patientid,
145 const char *presentationlutuid);
322 unsigned long numBoxes,
325 const char *aetitle);
const char * getSOPInstanceUID(size_t idx)
gets the current SOP Instance UID for the given registered image box.
a class representing a list of DICOM elements in which each element has a different tag and elements ...
const char * getReferencedPresentationLUTInstanceUID(size_t idx)
gets the referenced Presentation LUT SOP Instance UID for the given registered image box...
OFCondition deleteMultipleImages(size_t number)
deletes multiple of the registered images, starting with the first one.
OFCondition setImagePolarity(size_t idx, const char *value)
sets the polarity for the given registered image box.
OFCondition getImageReference(size_t idx, const char *&studyUID, const char *&seriesUID, const char *&instanceUID)
returns the image UIDs that are required to look up the referenced image in the database ...
OFCondition setRequestedDecimateCropBehaviour(DVPSDecimateCropBehaviour value)
sets the (optional) requested decimate/crop behaviour for all image boxes managed by this object...
a class representing the DICOM value representation 'Unique Identifier' (UI)
class representing a DICOM Sequence of Items (SQ).
OFCondition setImageConfigurationInformation(size_t idx, const char *value)
sets the (optional) configuration information for the given registered image box. ...
OFCondition setImageRequestedSize(size_t idx, const char *value)
sets the requested size for the given registered image box.
OFCondition setAllImagesToDefault()
sets magnification type, smoothing type and configuration information back to default for all registe...
OFBool printSCPCreate(unsigned long numBoxes, DcmUniqueIdentifier &studyUID, DcmUniqueIdentifier &seriesUID, const char *aetitle)
creates a number of image boxes as part of a Print SCP N-CREATE operation.
OFCondition write(DcmItem &dset, OFBool writeRequestedImageSize, size_t numItems, OFBool ignoreEmptyImages, OFBool writeReferencedPLUTSQ=OFTrue)
writes the list of image boxes managed by this object to a DICOM dataset.
OFCondition prepareBasicImageBox(size_t idx, DcmItem &dset)
writes the attributes managed by the referenced object that are part of a basic grayscale image box N...
void replace(DVPSImageBoxContent *newImageBox)
adds the given image box object to this list.
OFCondition read(DcmItem &dset, DVPSPresentationLUT_PList &presentationLUTList)
reads a list of image boxes (ImageBoxContentSequence) from a DICOM dataset.
size_t size() const
returns number of elements in the list.
OFCondition addImageBox(const char *instanceuid, const char *retrieveaetitle, const char *refstudyuid, const char *refseriesuid, const char *refsopclassuid, const char *refsopinstanceuid, const char *requestedimagesize, const char *patientid, const char *presentationlutuid)
creates a new image box object and sets the content of this image box object.
OFList< DVPSImageBoxContent * > list_
the list maintained by this object
OFCondition setImageSmoothingType(size_t idx, const char *value)
sets the (optional) smoothing type for the given registered image box.
OFBool haveImagePositionClash(const char *uid, Uint16 position)
checks whether any of the image boxes managed by this list has the same position as the given one...
DVPSImageBoxContent_PList()
default constructor
DVPSImageBoxContent * getImageBox(size_t idx)
returns a pointer to the image box with the given index or NULL if it does not exist.
OFBool imageHasAdditionalSettings(size_t idx)
checks if one of the registered images has additional settings that are not default values on the ima...
OFCondition addImageSOPClasses(DcmSequenceOfItems &seq, size_t numItems=0)
adds all image SOP classes referenced in the image box list to the given sequence.
OFCondition setImageMagnificationType(size_t idx, const char *value)
sets the (optional) magnification type for the given registered image box.
const char * getImagePolarity(size_t idx)
gets the polarity for the given registered image box.
OFCondition writeReferencedImageBoxSQ(DcmItem &dset)
writes a Referenced Image Box Sequence for the image boxes managed by this object.
const char * getImageRequestedSize(size_t idx)
gets the requested size for the given registered image box.
const char * getImageSmoothingType(size_t idx)
gets the (optional) smoothing type for the given registered image box.
the list of presentation LUTs contained in a stored print object.
OFCondition deleteImage(size_t idx)
deletes one of the registered images.
the representation of a Image Box Content SQ item for Stored Print
DVPSImageBoxContent_PList & operator=(const DVPSImageBoxContent_PList &)
private undefined assignment operator
the list of Image Boxes contained in a stored print object.
OFCondition createDefaultValues(OFBool renumber, OFBool ignoreEmptyImages)
create default values for all missing type 1 elements.
DVPSImageBoxContent * duplicateImageBox(const char *uid)
looks up the image box with the given SOP instance UID in this list and returns a pointer to a new ob...
size_t size() const
gets the number of image boxes in this list.
DVPSImageBoxContent_PList * clone()
clone method.
OFBool emptyPageWarning()
checks whether any of the image boxes has an image box position assigned.
const char * haveSinglePresentationLUTUsed(const char *filmBox)
if only one Presentation LUT is required to render all images managed by this object, returns the UID of this presentation LUT.
const char * getImageConfigurationInformation(size_t idx)
gets the (optional) configuration information for the given registered image box. ...
virtual ~DVPSImageBoxContent_PList()
destructor
OFBool presentationLUTInstanceUIDisUsed(const char *uid)
checks whether the given SOP instance UID is used as referenced Presentation LUT SOP Instance UID ins...
const char * getImageMagnificationType(size_t idx)
gets the (optional) magnification type for the given registered image box.
OFBool matchesPresentationLUT(DVPSPrintPresentationLUTAlignment align) const
checks whether the given Presentation LUT type could be used together with all image boxes in this li...
OFCondition setImageSOPInstanceUID(size_t idx, const char *value)
sets the SOP instance UID for the given image box.
General purpose class for condition codes.
void clear()
reset the object to initial state.