DCMTK
Version 3.6.6
OFFIS DICOM Toolkit
|
an item of the graphic layer sequence in a presentation state (internal use only). More...
Public Member Functions | |
DVPSGraphicLayer () | |
default constructor | |
DVPSGraphicLayer (const DVPSGraphicLayer ©) | |
copy constructor | |
DVPSGraphicLayer * | clone () |
clone method. More... | |
virtual | ~DVPSGraphicLayer () |
destructor | |
OFCondition | read (DcmItem &dset) |
reads a graphic layer from a DICOM dataset. More... | |
OFCondition | write (DcmItem &dset) |
writes the graphic layer managed by this object to a DICOM dataset. More... | |
const char * | getGL () |
get graphic layer name of this layer. More... | |
const char * | getGLDescription () |
get graphic layer description of this layer. More... | |
Sint32 | getGLOrder () |
gets the graphic layer order of this layer. More... | |
OFBool | haveGLRecommendedDisplayValue () |
checks whether a recommended display value (grayscale, color or both) exists. More... | |
OFCondition | getGLRecommendedDisplayValueGray (Uint16 &gray) |
gets the recommended grayscale display value. More... | |
OFCondition | getGLRecommendedDisplayValueRGB (Uint16 &r, Uint16 &g, Uint16 &b) |
gets the recommended RGB display value. More... | |
void | removeRecommendedDisplayValue (OFBool rgb, OFBool monochrome) |
removes recommended display values. More... | |
void | setGL (const char *gl) |
set graphic layer name of this layer. More... | |
void | setGLOrder (Sint32 glOrder) |
set graphic layer order of this layer. More... | |
void | setGLRecommendedDisplayValueGray (Uint16 gray) |
set graphic layer recommended grayscale display value of this layer. More... | |
void | setGLRecommendedDisplayValueRGB (Uint16 r, Uint16 g, Uint16 b) |
set graphic layer recommended RGB display value of this layer. More... | |
void | setGLDescription (const char *glDescription) |
set graphic layer description of this layer. More... | |
Private Member Functions | |
DVPSGraphicLayer & | operator= (const DVPSGraphicLayer &) |
private undefined assignment operator | |
Private Attributes | |
DcmCodeString | graphicLayer |
VR=CS, VM=1, Type 1. | |
DcmIntegerString | graphicLayerOrder |
VR=IS, VM=1, Type 1. | |
DcmUnsignedShort | graphicLayerRecommendedDisplayGrayscaleValue |
VR=US, VM=1, Type 3. | |
DcmUnsignedShort | graphicLayerRecommendedDisplayRGBValue |
VR=US, VM=3, Type 3. | |
DcmLongString | graphicLayerDescription |
VR=LO, VM=1, Type 3. | |
an item of the graphic layer sequence in a presentation state (internal use only).
This class manages the data structures comprising one item of the Graphic Layer Sequence in a Presentation State object.
|
inline |
clone method.
const char* DVPSGraphicLayer::getGL | ( | ) |
get graphic layer name of this layer.
const char* DVPSGraphicLayer::getGLDescription | ( | ) |
get graphic layer description of this layer.
Sint32 DVPSGraphicLayer::getGLOrder | ( | ) |
gets the graphic layer order of this layer.
OFCondition DVPSGraphicLayer::getGLRecommendedDisplayValueGray | ( | Uint16 & | gray | ) |
gets the recommended grayscale display value.
If the graphic layer contains an RGB display value but no grayscale display value, the RGB value is implicitly converted to grayscale.
gray | the recommended display value as an unsigned 16-bit P-value is returned in this parameter. |
OFCondition DVPSGraphicLayer::getGLRecommendedDisplayValueRGB | ( | Uint16 & | r, |
Uint16 & | g, | ||
Uint16 & | b | ||
) |
gets the recommended RGB display value.
If the graphic layer contains a grayscale display value but no RGB display value, the grayscale value is implicitly converted to RGB.
r | returns the R component of the recommended display value as unsigned 16-bit P-value |
g | returns the G component of the recommended display value as unsigned 16-bit P-value |
b | returns the B component of the recommended display value as unsigned 16-bit P-value |
OFBool DVPSGraphicLayer::haveGLRecommendedDisplayValue | ( | ) |
checks whether a recommended display value (grayscale, color or both) exists.
OFCondition DVPSGraphicLayer::read | ( | DcmItem & | dset | ) |
reads a graphic layer from a DICOM dataset.
The DICOM elements of the Graphic Layer 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.
dset | the item of the GraphicLayerSequence from which the data is to be read |
void DVPSGraphicLayer::removeRecommendedDisplayValue | ( | OFBool | rgb, |
OFBool | monochrome | ||
) |
removes recommended display values.
rgb | if true, the RGB recommended display value is removed |
monochrome | if true the monochrome recommended display value is removed |
void DVPSGraphicLayer::setGL | ( | const char * | gl | ) |
set graphic layer name of this layer.
gl | a pointer to the graphic layer name, which is copied into this object. |
void DVPSGraphicLayer::setGLDescription | ( | const char * | glDescription | ) |
set graphic layer description of this layer.
glDescription | a pointer to the graphic layer description, which is copied into this object. |
void DVPSGraphicLayer::setGLOrder | ( | Sint32 | glOrder | ) |
set graphic layer order of this layer.
glOrder | the graphic layer order. |
void DVPSGraphicLayer::setGLRecommendedDisplayValueGray | ( | Uint16 | gray | ) |
set graphic layer recommended grayscale display value of this layer.
This method does not affect (set or modify) the recommended RGB display value which should be set separately.
gray | the recommended display value in P-values 0..0xffff. |
void DVPSGraphicLayer::setGLRecommendedDisplayValueRGB | ( | Uint16 | r, |
Uint16 | g, | ||
Uint16 | b | ||
) |
set graphic layer recommended RGB display value of this layer.
This method does not affect (set or modify) the recommended grayscale display value which should be set separately.
r | the red component of the recommended display value in P-values 0..0xffff. |
g | the green component of the recommended display value in P-values 0..0xffff. |
b | the blue component of the recommended display value in P-values 0..0xffff. |
OFCondition DVPSGraphicLayer::write | ( | DcmItem & | dset | ) |
writes the graphic layer managed by this object to a DICOM dataset.
Copies of the DICOM element managed by this object are inserted into the DICOM dataset.
dset | the the item of the GraphicLayerSequence to which the data is written |