Public Member Functions | |
DVPSPresentationLUT () | |
default constructor | |
DVPSPresentationLUT (const DVPSPresentationLUT ©) | |
copy constructor | |
DVPSPresentationLUT * | clone () |
clone method. | |
virtual | ~DVPSPresentationLUT () |
destructor | |
void | clear () |
resets the object to initial state. | |
OFCondition | read (DcmItem &dset, OFBool withSOPInstance) |
reads an Presentation LUT from a DICOM dataset. | |
OFCondition | write (DcmItem &dset, OFBool withSOPInstance) |
writes the Presentation LUT managed by this object to a DICOM dataset. | |
OFBool | isInverse () |
checks whether current presentation LUT is inverse, i.e. | |
DVPSPresentationLUTType | getType () |
gets the current Presentation LUT type. | |
DVPSPrintPresentationLUTAlignment | getAlignment () |
gets a description of the Presentation LUT in terms of its restrictions for use with a Print SCP that requires Presentation LUT number of entries to match the bit depth of the image pixel data. | |
OFBool | haveTable () |
checks if a real Presentation LUT (not shape) is available. | |
const char * | getCurrentExplanation () |
gets a description of the current presentation LUT. | |
const char * | getLUTExplanation () |
returns the LUT explanation of the presentation LUT if it exists and is non-empty. | |
const char * | getSOPInstanceUID () |
returns the SOP instance UID of the presentation LUT if present. | |
OFCondition | setLUT (DcmUnsignedShort &lutDescriptor, DcmUnsignedShort &lutData, DcmLongString &lutExplanation) |
stores a presentation lookup table and activates it. | |
OFCondition | setType (DVPSPresentationLUTType newType) |
sets the current Presentation LUT type. | |
OFCondition | invert () |
inverts presentation LUT or presentation state LUT shape. | |
OFBool | activate (DicomImage *image, OFBool printLUT=OFFalse) |
activates the current presentation transform in the given DicomImage. | |
OFBool | activateInverseLUT (DicomImage *image) |
activates the inverse LUT of the current presentation LUT (if any) in the given DicomImage. | |
void | setLog (OFConsole *stream, OFBool verbMode, OFBool dbgMode) |
sets a new log stream | |
DiLookupTable * | createDiLookupTable () |
creates a DiLookupTable instance from the LUT table managed by this object. | |
OFBool | compareDiLookupTable (DiLookupTable *lut) |
compares a DiLookupTable instance with the LUT table managed by this object. | |
OFCondition | setSOPInstanceUID (const char *value) |
sets the SOP instance UID. | |
OFBool | isLegalPrintPresentationLUT () |
checks whether the current Presentation LUT (or shape) is legal when used with Supplement 22. | |
OFBool | matchesImageDepth (OFBool is12bit) |
checks whether the current Presentation LUT (or shape) matches the current image bit depth in number of entries and first value mapped. | |
OFBool | printSCPCreate (DcmDataset *rqDataset, T_DIMSE_Message &rsp, DcmDataset *&rspDataset, OFBool matchRequired, OFBool supports12Bit) |
performs a Print SCP N-CREATE operation on a newly created instance of this class. | |
Private Member Functions | |
DVPSPresentationLUT & | operator= (const DVPSPresentationLUT &) |
private undefined assignment operator | |
Private Attributes | |
DVPSPresentationLUTType | presentationLUT |
describes active type of presentation LUT. | |
DcmUnsignedShort | presentationLUTDescriptor |
Module=Softcopy_Presentation_LUT, VR=xs, VM=3, Type 1c. | |
DcmLongString | presentationLUTExplanation |
Module=Softcopy_Presentation_LUT, VR=LO, VM=1, Type 3. | |
DcmUnsignedShort | presentationLUTData |
Module=Softcopy_Presentation_LUT, VR=xs, VM=1-n, Type 1c. | |
DcmUniqueIdentifier | sOPInstanceUID |
Module=Presentation_LUT_List, VR=UI, VM=1, Type 1. | |
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 50 of file dvpspl.h.
|
activates the current presentation transform in the given DicomImage.
|
|
activates the inverse LUT of the current presentation LUT (if any) in the given DicomImage. Presentation LUT shape is not supported by this method.
|
|
resets 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 63 of file dvpspl.h. References DVPSPresentationLUT(). |
|
compares a DiLookupTable instance with the LUT table managed by this object. Returns OFTrue if equal, OFFalse otherwise.
|
|
creates a DiLookupTable instance from the LUT table managed by this object. The returned object must be freed by the caller.
|
|
gets a description of the Presentation LUT in terms of its restrictions for use with a Print SCP that requires Presentation LUT number of entries to match the bit depth of the image pixel data.
|
|
gets a description of the current presentation LUT. For well-known presentation LUT shapes, a standard text is returned. For presentation LUTs, the LUT explanation is returned if it exists and a standard text otherwise. This method never returns NULL.
Referenced by DcmPresentationState::getCurrentPresentationLUTExplanation(). |
|
returns the LUT explanation of the presentation LUT if it exists and is non-empty. Otherwise returns NULL.
Referenced by DcmPresentationState::getPresentationLUTExplanation(). |
|
returns the SOP instance UID of the presentation LUT if present. Otherwise returns NULL.
|
|
gets the current Presentation LUT type.
Definition at line 103 of file dvpspl.h. References presentationLUT. Referenced by DcmPresentationState::getPresentationLUT(). |
|
checks if a real Presentation LUT (not shape) is available.
Referenced by DcmPresentationState::havePresentationLookupTable(). |
|
inverts presentation LUT or presentation state LUT shape.
|
|
checks whether current presentation LUT is inverse, i.e. shape is INVERSE or first LUT entry larger than last LUT entry. |
|
checks whether the current Presentation LUT (or shape) is legal when used with Supplement 22.
|
|
checks whether the current Presentation LUT (or shape) matches the current image bit depth in number of entries and first value mapped.
|
|
performs a Print SCP N-CREATE operation on a newly created instance of this class. The results of the operation are stored in the objects passed as rsp and rspDataset.
|
|
reads an Presentation LUT from a DICOM dataset. The DICOM elements of the referenced 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.
|
|
sets a new log stream
|
|
stores a presentation lookup table and activates it. The LUT is copied. If the method returns EC_Normal, any old presentation LUT is overwritten. If the method returns an error code, an old LUT is left unchanged.
|
|
sets the SOP instance UID.
|
|
sets the current Presentation LUT type. DVPSP_table can only be used if the object contains a lookup table, i.e. if haveTable() returns OFTrue.
|
|
writes the Presentation LUT managed by this object to a DICOM dataset. Copies of the DICOM element managed by this object are inserted into the DICOM dataset.
|