Public Member Functions | |
DVPSSoftcopyVOI () | |
default constructor | |
DVPSSoftcopyVOI (const DVPSSoftcopyVOI ©) | |
copy constructor | |
DVPSSoftcopyVOI * | clone () |
clone method. | |
virtual | ~DVPSSoftcopyVOI () |
destructor | |
OFCondition | read (DcmItem &dset) |
reads a softcopy VOI LUT item from a DICOM dataset. | |
OFCondition | write (DcmItem &dset) |
writes the dsoftcopy VOI LUT item 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. | |
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 | haveLUT () |
check if a VOI LUT is currently active | |
const char * | getCurrentVOIDescription () |
returns a description string for a currently active VOI transform. | |
OFCondition | getCurrentWindowWidth (double &w) |
gets the width of the current VOI window. | |
OFCondition | getCurrentWindowCenter (double &c) |
get the center of the current VOI window. | |
DcmUnsignedShort & | getLUTDescriptor () |
returns a reference to the current VOI LUT descriptor. | |
DcmUnsignedShort & | getLUTData () |
returns a reference to the current VOI LUT data. | |
OFCondition | setVOIWindow (double wCenter, double wWidth, const char *description=NULL) |
sets a user defined VOI window center and width. | |
OFCondition | setVOILUT (DcmUnsignedShort &lutDescriptor, DcmUnsignedShort &lutData, DcmLongString &lutExplanation) |
stores (copies) a VOI lookup table. | |
void | setLog (OFConsole *stream, OFBool verbMode, OFBool dbgMode) |
sets a new log stream | |
Private Member Functions | |
DVPSSoftcopyVOI & | operator= (const DVPSSoftcopyVOI &) |
private undefined assignment operator | |
Private Attributes | |
DVPSReferencedImage_PList | referencedImageList |
ReferencedImageSequence, Type 1c. | |
OFBool | useLUT |
If true, a VOI LUT is set, otherwise a VOI Window is set. | |
DcmUnsignedShort | voiLUTDescriptor |
Module=VOI_LUT, VR=xs, VM=3, Type 1c. | |
DcmLongString | voiLUTExplanation |
Module=VOI_LUT, VR=LO, VM=1, Type 3. | |
DcmUnsignedShort | voiLUTData |
Module=VOI_LUT, VR=xs, VM=1-n, Type 1c. | |
DcmDecimalString | windowCenter |
Module=VOI_LUT, VR=DS, VM=1-n, Type 1c (unlike VOI LUT module!). | |
DcmDecimalString | windowWidth |
Module=VOI_LUT, VR=DS, VM=1-n, Type 1c. | |
DcmLongString | windowCenterWidthExplanation |
Module=VOI_LUT, VR=LO, VM=1-n, Type 3. | |
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 48 of file dvpssv.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.
|
|
clone method.
Definition at line 61 of file dvpssv.h. References DVPSSoftcopyVOI(). |
|
returns a description string for a currently active VOI transform. If no description is available, NULL is returned.
|
|
get the center of the current VOI window. May only be called if haveLUT() is OFFalse.
|
|
gets the width of the current VOI window. May only be called if haveLUT() is OFFalse.
|
|
returns a reference to the current VOI LUT data. May only be called if haveLUT() is OFTrue.
Definition at line 181 of file dvpssv.h. References voiLUTData. |
|
returns a reference to the current VOI LUT descriptor. May only be called if haveLUT() is OFTrue.
Definition at line 175 of file dvpssv.h. References voiLUTDescriptor. |
|
check if a VOI LUT is currently active
Definition at line 149 of file dvpssv.h. References useLUT. |
|
checks if the list of image references for this displayed area is empty.
Definition at line 144 of file dvpssv.h. References referencedImageList, and DVPSReferencedImage_PList::size(). |
|
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 a softcopy VOI LUT item from a DICOM dataset. The DICOM elements of the softcopy VOI LUT 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 called (e.g. by deleting the displayed area selection object).
|
|
sets a new log stream
|
|
stores (copies) a VOI lookup table. If the method returns an error code, an old LUT is left unchanged.
|
|
sets a user defined VOI window center and width.
|
|
writes the dsoftcopy VOI LUT item managed by this object to a DICOM dataset. Copies of the DICOM elements managed by this object are inserted into the DICOM dataset.
|