Public Member Functions | |
DVPSImageBoxContent_PList () | |
default constructor | |
DVPSImageBoxContent_PList (const DVPSImageBoxContent_PList ©) | |
copy constructor | |
DVPSImageBoxContent_PList * | clone () |
clone method. | |
virtual | ~DVPSImageBoxContent_PList () |
destructor | |
OFCondition | read (DcmItem &dset, DVPSPresentationLUT_PList &presentationLUTList) |
reads a list of image boxes (ImageBoxContentSequence) from a DICOM dataset. | |
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. | |
void | clear () |
reset the object to initial state. | |
size_t | size () const |
gets the number of image boxes in this list. | |
OFCondition | createDefaultValues (OFBool renumber, OFBool ignoreEmptyImages) |
create default values for all missing type 1 elements. | |
OFCondition | addImageSOPClasses (DcmSequenceOfItems &seq, size_t numItems=0) |
adds all image SOP classes referenced in the image box list to the given sequence. | |
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. | |
OFCondition | addImageBox (DVPSImageBoxContent *box) |
adds the given image box object to the list managed by this object. | |
OFCondition | setRequestedDecimateCropBehaviour (DVPSDecimateCropBehaviour value) |
sets the (optional) requested decimate/crop behaviour for all image boxes managed by this object. | |
OFCondition | deleteImage (size_t idx) |
deletes one of the registered images. | |
OFCondition | deleteMultipleImages (size_t number) |
deletes multiple of the registered images, starting with the first one. | |
OFBool | imageHasAdditionalSettings (size_t idx) |
checks if one of the registered images has additional settings that are not default values on the image box level. | |
OFCondition | setImagePolarity (size_t idx, const char *value) |
sets the polarity 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 | setImageMagnificationType (size_t idx, const char *value) |
sets the (optional) magnification type for the given registered image box. | |
OFCondition | setImageSmoothingType (size_t idx, const char *value) |
sets the (optional) smoothing type for the given registered image box. | |
OFCondition | setImageConfigurationInformation (size_t idx, const char *value) |
sets the (optional) configuration information for the given registered image box. | |
OFCondition | setImageSOPInstanceUID (size_t idx, const char *value) |
sets the SOP instance UID for the given image box. | |
OFCondition | setAllImagesToDefault () |
sets magnification type, smoothing type and configuration information back to default for all registered images. | |
const char * | getImagePolarity (size_t idx) |
gets the polarity for the given registered image box. | |
const char * | getImageRequestedSize (size_t idx) |
gets the requested size for the given registered image box. | |
const char * | getImageMagnificationType (size_t idx) |
gets the (optional) magnification type for the given registered image box. | |
const char * | getImageSmoothingType (size_t idx) |
gets the (optional) smoothing type for the given registered image box. | |
const char * | getImageConfigurationInformation (size_t idx) |
gets the (optional) configuration information for the given registered image box. | |
const char * | getSOPInstanceUID (size_t idx) |
gets the current SOP Instance UID for the given registered image box. | |
const char * | getReferencedPresentationLUTInstanceUID (size_t idx) |
gets the referenced Presentation LUT SOP Instance UID 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 | prepareBasicImageBox (size_t idx, DcmItem &dset) |
writes the attributes managed by the referenced object that are part of a basic grayscale image box N-SET request into the DICOM dataset. | |
void | setLog (OFConsole *stream, OFBool verbMode, OFBool dbgMode) |
sets a new log stream | |
OFBool | presentationLUTInstanceUIDisUsed (const char *uid) |
checks whether the given SOP instance UID is used as referenced Presentation LUT SOP Instance UID inside the list of image boxes managed by this object. | |
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. | |
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 | writeReferencedImageBoxSQ (DcmItem &dset) |
writes a Referenced Image Box Sequence for the image boxes managed by this object. | |
OFBool | matchesPresentationLUT (DVPSPrintPresentationLUTAlignment align) const |
checks whether the given Presentation LUT type could be used together with all image boxes in this list on a Print SCP that requires a matching alignment between a Presentation LUT and the image pixel data. | |
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 object containing a copy of this 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, but a different SOP instance UID. | |
void | replace (DVPSImageBoxContent *newImageBox) |
adds the given image box object to this list. | |
OFBool | emptyPageWarning () |
checks whether any of the image boxes has an image box position assigned. | |
Private Member Functions | |
DVPSImageBoxContent_PList & | operator= (const DVPSImageBoxContent_PList &) |
private undefined assignment operator | |
DVPSImageBoxContent * | getImageBox (size_t idx) |
returns a pointer to the image box with the given index or NULL if it does not exist. | |
Private Attributes | |
OFList< DVPSImageBoxContent * > | list_ |
the list maintained by this object | |
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 |
This class manages the data structures comprising one complete Image Box Content Sequence in a Stored Print object.
Definition at line 50 of file dvpsibl.h.
|
adds the given image box object to the list managed by this object.
|
|
creates a new image box object and sets the content of this image box object.
|
|
adds all image SOP classes referenced in the image box list to the given sequence. Duplicate entries are suppressed.
|
|
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.
Definition at line 64 of file dvpsibl.h. References DVPSImageBoxContent_PList(). |
|
create default values for all missing type 1 elements. Called before a stored print object is written.
|
|
deletes one of the registered images.
|
|
deletes multiple of the registered images, starting with the first one.
|
|
looks up the image box with the given SOP instance UID in this list and returns a pointer to a new object containing a copy of this image box. If the object is not found, NULL is returned.
Referenced by DVPSStoredPrint::duplicateImageBox(). |
|
checks whether any of the image boxes has an image box position assigned. If no image box position is assigned, the object list cannot be written and a Print SCP should return a warning status upon receipt of an N-ACTION request.
Referenced by DVPSStoredPrint::emptyPageWarning(). |
|
returns a pointer to the image box with the given index or NULL if it does not exist.
|
|
gets the (optional) configuration information for the given registered image box.
Referenced by DVPSStoredPrint::getImageConfigurationInformation(). |
|
gets the (optional) magnification type for the given registered image box.
Referenced by DVPSStoredPrint::getImageMagnificationType(). |
|
gets the polarity for the given registered image box.
Referenced by DVPSStoredPrint::getImagePolarity(). |
|
returns the image UIDs that are required to look up the referenced image in the database
Referenced by DVPSStoredPrint::getImageReference(). |
|
gets the requested size for the given registered image box.
Referenced by DVPSStoredPrint::getImageRequestedSize(). |
|
gets the (optional) smoothing type for the given registered image box.
Referenced by DVPSStoredPrint::getImageSmoothingType(). |
|
gets the referenced Presentation LUT SOP Instance UID for the given registered image box.
|
|
gets the current SOP Instance UID for the given registered image box.
|
|
checks whether any of the image boxes managed by this list has the same position as the given one, but a different SOP instance UID. This is used during an Print SCP N-SET operation to check whether a position clash exists.
Referenced by DVPSStoredPrint::haveImagePositionClash(). |
|
if only one Presentation LUT is required to render all images managed by this object, returns the UID of this presentation LUT. Otherwise returns NULL.
|
|
checks if one of the registered images has additional settings that are not default values on the image box level.
Referenced by DVPSStoredPrint::imageHasAdditionalSettings(). |
|
checks whether the given Presentation LUT type could be used together with all image boxes in this list on a Print SCP that requires a matching alignment between a Presentation LUT and the image pixel data.
Referenced by DVPSStoredPrint::matchesPresentationLUT(). |
|
writes the attributes managed by the referenced object that are part of a basic grayscale image box N-SET request into the DICOM dataset. Copies of the DICOM element managed by this object are inserted into the DICOM dataset.
|
|
checks whether the given SOP instance UID is used as referenced Presentation LUT SOP Instance UID inside the list of image boxes managed by this object.
|
|
creates a number of image boxes as part of a Print SCP N-CREATE operation. The previous content of the list is deleted.
|
|
reads a list of image boxes (ImageBoxContentSequence) from a DICOM dataset. The DICOM elements of the image boxes 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.
|
|
adds the given image box object to this list. Any other object existing in the list with the same SOP instance UID is removed. Used during a Print SCP image box N-SET operation.
Referenced by DVPSStoredPrint::replaceImageBox(). |
|
sets magnification type, smoothing type and configuration information back to default for all registered images.
|
|
sets the (optional) configuration information for the given registered image box.
Referenced by DVPSStoredPrint::setImageConfigurationInformation(). |
|
sets the (optional) magnification type for the given registered image box.
Referenced by DVPSStoredPrint::setImageMagnificationType(). |
|
sets the polarity for the given registered image box.
Referenced by DVPSStoredPrint::setImagePolarity(). |
|
sets the requested size for the given registered image box.
Referenced by DVPSStoredPrint::setImageRequestedSize(). |
|
sets the (optional) smoothing type for the given registered image box.
Referenced by DVPSStoredPrint::setImageSmoothingType(). |
|
sets the SOP instance UID for the given image box.
|
|
sets a new log stream
|
|
sets the (optional) requested decimate/crop behaviour for all image boxes managed by this object.
|
|
gets the number of image boxes in this list.
Definition at line 110 of file dvpsibl.h. References list_, and OFList< T >::size(). Referenced by DVPSStoredPrint::getNumberOfImages(). |
|
writes the list of image boxes managed by this object to a DICOM dataset. Copies of the DICOM element managed by this object are inserted into the DICOM dataset.
|
|
writes a Referenced Image Box Sequence for the image boxes managed by this object. Used in a Print SCP N-CREATE operation.
|