33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmdata/dcvrus.h"
35 #include "dcmtk/dcmdata/dcvrds.h"
36 #include "dcmtk/dcmdata/dcvrlo.h"
37 #include "dcmtk/dcmpstat/dvpsril.h"
38 #include "dcmtk/dcmpstat/dvpstyp.h"
87 OFBool
isApplicable(
const char *instanceUID,
unsigned long frame);
95 OFBool
matchesApplicability(
const char *instanceUID,
unsigned long frame, DVPSObjectApplicability applicability);
108 const char *sopclassUID,
109 const char *instanceUID,
111 DVPSObjectApplicability applicability);
129 const char *instanceUID,
131 unsigned long numberOfFrames,
132 DVPSObjectApplicability applicability);
void clear()
reset the object to initial state.
a class representing a list of DICOM elements in which each element has a different tag and elements ...
OFCondition setVOILUT(DcmUnsignedShort &lutDescriptor, DcmUnsignedShort &lutData, DcmLongString &lutExplanation)
stores (copies) a VOI lookup table.
DcmLongString voiLUTExplanation
Module=VOI_LUT, VR=LO, VM=1, Type 3.
a class representing the DICOM value representation 'Decimal String' (DS)
const char * getCurrentVOIDescription()
returns a description string for a currently active VOI transform.
DcmUnsignedShort voiLUTData
Module=VOI_LUT, VR=xs, VM=1-n, Type 1c.
void clearImageReferences()
removes all image references for this displayed area.
DVPSSoftcopyVOI()
default constructor
DcmUnsignedShort voiLUTDescriptor
Module=VOI_LUT, VR=xs, VM=3, Type 1c.
OFBool haveLUT()
check if a VOI LUT is currently active
OFCondition write(DcmItem &dset)
writes the dsoftcopy VOI LUT item managed by this object to a DICOM dataset.
size_t size() const
gets the number of image references in this list.
OFCondition addImageReference(const char *sopclassUID, const char *instanceUID, unsigned long frame, DVPSObjectApplicability applicability)
add a new image reference.
OFCondition setVOIWindow(double wCenter, double wWidth, const char *description=NULL)
sets a user defined VOI window center and width.
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.
OFBool imageReferencesEmpty()
checks if the list of image references for this displayed area is empty.
DcmDecimalString windowCenter
Module=VOI_LUT, VR=DS, VM=1-n, Type 1c (unlike VOI LUT module!)
OFCondition getCurrentWindowWidth(double &w)
gets the width of the current VOI window.
a class representing the DICOM value representation 'Long String' (LO)
DcmDecimalString windowWidth
Module=VOI_LUT, VR=DS, VM=1-n, Type 1c.
DVPSSoftcopyVOI & operator=(const DVPSSoftcopyVOI &)
private undefined assignment operator
DcmUnsignedShort & getLUTData()
returns a reference to the current VOI LUT data.
OFCondition getCurrentWindowCenter(double &c)
get the center of the current VOI window.
a class representing the DICOM value representation 'Unsigned Short' (US)
the representation of one item of the Softcopy VOI LUT Sequence
DVPSReferencedImage_PList referencedImageList
ReferencedImageSequence, Type 1c.
DcmLongString windowCenterWidthExplanation
Module=VOI_LUT, VR=LO, VM=1-n, Type 3.
the list of referenced series contained in a presentation state (internal use only).
OFCondition read(DcmItem &dset)
reads a softcopy VOI LUT item from a DICOM dataset.
OFBool useLUT
If true, a VOI LUT is set, otherwise a VOI Window is set.
OFBool isApplicable(const char *instanceUID, unsigned long frame)
checks if this displayed area is applicable to the given image and frame.
the list of referenced images contained in a presentation state (internal use only).
General purpose class for condition codes.
void removeImageReference(DVPSReferencedSeries_PList &allReferences, const char *instanceUID, unsigned long frame, unsigned long numberOfFrames, DVPSObjectApplicability applicability)
removes a reference to an image or frame.
DVPSSoftcopyVOI * clone()
clone method.
DcmUnsignedShort & getLUTDescriptor()
returns a reference to the current VOI LUT descriptor.
virtual ~DVPSSoftcopyVOI()
destructor