33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmdata/dcitem.h"
96 const Sint32 gLayerOrder,
97 const char *gLayerDescription=NULL);
110 const char *gLayerDescription=NULL);
a class representing a list of DICOM elements in which each element has a different tag and elements ...
the list of graphic layers contained in a presentation state (internal use only). ...
const char * getGraphicLayerName(size_t idx)
gets the unique name of the graphic layer with the given index.
void sortGraphicLayers(Sint32 lowestLayer=1)
sorts the graphic layers according to the graphic layer order.
void clear()
reset the object to initial state.
DVPSGraphicLayer * getGraphicLayer(size_t idx)
gets the the graphic layer with the given index.
DVPSGraphicLayer_PList * clone()
clone method.
OFCondition toBackGraphicLayer(size_t idx)
makes a graphic layer the lowest layer for display.
OFBool haveGraphicLayerRecommendedDisplayValue(size_t idx)
checks whether a recommended display value (grayscale, color or both) for the given graphic layer exi...
OFCondition getGraphicLayerRecommendedDisplayValueRGB(size_t idx, Uint16 &r, Uint16 &g, Uint16 &b)
gets the recommended RGB display value for the given graphic layer.
size_t size() const
returns number of elements in the list.
OFCondition read(DcmItem &dset)
reads the Graphic Layer Sequence from a DICOM dataset.
the list of curve and overlay activation layers contained in a presentation state (internal use only)...
OFCondition toFrontGraphicLayer(size_t idx)
makes a graphic layer the highest layer for display.
OFCondition getGraphicLayerRecommendedDisplayValueGray(size_t idx, Uint16 &gray)
gets the recommended grayscale display value for the given graphic layer.
OFCondition setGraphicLayerRecommendedDisplayValueGray(size_t idx, Uint16 gray)
set graphic layer recommended grayscale display value for the given graphic layer.
size_t getGraphicLayerIndex(const char *name)
gets the index of the graphic layer with the given unique name.
OFCondition exchangeGraphicLayers(size_t idx1, size_t idx2)
exchanges the layer order of the two graphic layers with the given indices.
an item of the graphic layer sequence in a presentation state (internal use only).
OFList< DVPSGraphicLayer * > list_
the list maintained by this object
DVPSGraphicLayer_PList()
default constructor
DVPSGraphicLayer_PList & operator=(const DVPSGraphicLayer_PList &)
private undefined assignment operator
void cleanupLayers(DVPSOverlayCurveActivationLayer_PList &activations, DVPSGraphicAnnotation_PList &annotations)
removes and deletes all graphic layers for which no matching text, graphic, curve or overlay object e...
OFCondition setGraphicLayerRecommendedDisplayValueRGB(size_t idx, Uint16 r, Uint16 g, Uint16 b)
set graphic layer recommended RGB display value for the given graphic layer.
void removeGraphicLayerRecommendedDisplayValue(size_t idx, OFBool rgb, OFBool monochrome)
removes recommended display values for the given graphic layer.
size_t size() const
get number of graphic layer objects in this list.
the list of graphic annotations contained in a presentation state (internal use only).
virtual ~DVPSGraphicLayer_PList()
destructor
OFCondition setGraphicLayerDescription(size_t idx, const char *descr)
sets a new description to the given graphic layer.
OFCondition write(DcmItem &dset)
writes the Graphic Layer Sequence managed by this object to a DICOM dataset.
OFCondition removeGraphicLayer(size_t idx)
removes and deletes a graphic layer.
const char * getGraphicLayerDescription(size_t idx)
gets a description string for the graphic layer with the given index.
OFCondition setGraphicLayerName(size_t idx, const char *name)
assigns a new unique name to the given graphic layer.
General purpose class for condition codes.
OFCondition addGraphicLayer(const char *gLayer, const Sint32 gLayerOrder, const char *gLayerDescription=NULL)
adds a new graphic layer to the list.