OFFIS DCMTK  Version 3.6.0
dvpsgl.h
1 /*
2  *
3  * Copyright (C) 1998-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmpstat
15  *
16  * Author: Marco Eichelberg
17  *
18  * Purpose:
19  * classes: DVPSGraphicLayer
20  *
21  * Last Update: $Author: joergr $
22  * Update Date: $Date: 2010-10-14 13:16:36 $
23  * CVS/RCS Revision: $Revision: 1.11 $
24  * Status: $State: Exp $
25  *
26  * CVS/RCS Log at end of file
27  *
28  */
29 
30 #ifndef DVPSGL_H
31 #define DVPSGL_H
32 
33 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
34 #include "dcmtk/dcmdata/dctk.h"
35 
36 
43 {
44 public:
47 
50 
55  DVPSGraphicLayer *clone() { return new DVPSGraphicLayer(*this); }
56 
58  virtual ~DVPSGraphicLayer();
59 
69  OFCondition read(DcmItem &dset);
70 
77  OFCondition write(DcmItem &dset);
78 
82  const char *getGL();
83 
87  const char *getGLDescription();
88 
92  Sint32 getGLOrder();
93 
98 
107 
116  OFCondition getGLRecommendedDisplayValueRGB(Uint16& r, Uint16& g, Uint16& b);
117 
122  void removeRecommendedDisplayValue(OFBool rgb, OFBool monochrome);
123 
127  void setGL(const char *gl);
128 
132  void setGLOrder(Sint32 glOrder);
133 
139  void setGLRecommendedDisplayValueGray(Uint16 gray);
140 
148  void setGLRecommendedDisplayValueRGB(Uint16 r, Uint16 g, Uint16 b);
149 
153  void setGLDescription(const char *glDescription);
154 
155 private:
156 
159 
170 
171 };
172 
173 #endif
174 
175 /*
176  * $Log: dvpsgl.h,v $
177  * Revision 1.11 2010-10-14 13:16:36 joergr
178  * Updated copyright header. Added reference to COPYRIGHT file.
179  *
180  * Revision 1.10 2010-10-07 14:31:35 joergr
181  * Removed leading underscore characters from preprocessor symbols (reserved).
182  *
183  * Revision 1.9 2009-11-24 14:12:57 uli
184  * Switched to logging mechanism provided by the "new" oflog module.
185  *
186  * Revision 1.8 2005-12-08 16:03:45 meichel
187  * Changed include path schema for all DCMTK header files
188  *
189  * Revision 1.7 2001/09/26 15:36:11 meichel
190  * Adapted dcmpstat to class OFCondition
191  *
192  * Revision 1.6 2001/06/01 15:50:16 meichel
193  * Updated copyright header
194  *
195  * Revision 1.5 2000/06/02 16:00:46 meichel
196  * Adapted all dcmpstat classes to use OFConsole for log and error output
197  *
198  * Revision 1.4 2000/03/08 16:28:51 meichel
199  * Updated copyright header.
200  *
201  * Revision 1.3 1999/07/22 16:39:08 meichel
202  * Adapted dcmpstat data structures and API to supplement 33 letter ballot text.
203  *
204  * Revision 1.2 1998/12/14 16:10:29 meichel
205  * Implemented Presentation State interface for graphic layers,
206  * text and graphic annotations, presentation LUTs.
207  *
208  * Revision 1.1 1998/11/27 14:50:27 meichel
209  * Initial Release.
210  *
211  *
212  */
a class representing the DICOM value representation 'Integer String' (IS)
Definition: dcvris.h:39
a class representing a list of DICOM elements in which each element has a different tag and elements ...
Definition: dcitem.h:51
DcmIntegerString graphicLayerOrder
VR=IS, VM=1, Type 1.
Definition: dvpsgl.h:163
void setGLRecommendedDisplayValueRGB(Uint16 r, Uint16 g, Uint16 b)
set graphic layer recommended RGB display value of this layer.
void setGLOrder(Sint32 glOrder)
set graphic layer order of this layer.
OFBool haveGLRecommendedDisplayValue()
checks whether a recommended display value (grayscale, color or both) exists.
DVPSGraphicLayer()
default constructor
DcmLongString graphicLayerDescription
VR=LO, VM=1, Type 3.
Definition: dvpsgl.h:169
DcmUnsignedShort graphicLayerRecommendedDisplayRGBValue
VR=US, VM=3, Type 3.
Definition: dvpsgl.h:167
OFCondition getGLRecommendedDisplayValueRGB(Uint16 &r, Uint16 &g, Uint16 &b)
gets the recommended RGB display value.
const char * getGLDescription()
get graphic layer description of this layer.
a class representing the DICOM value representation 'Long String' (LO)
Definition: dcvrlo.h:40
a class representing the DICOM value representation 'Code String' (CS)
Definition: dcvrcs.h:40
virtual ~DVPSGraphicLayer()
destructor
Sint32 getGLOrder()
gets the graphic layer order of this layer.
an item of the graphic layer sequence in a presentation state (internal use only).
Definition: dvpsgl.h:42
DVPSGraphicLayer * clone()
clone method.
Definition: dvpsgl.h:55
DVPSGraphicLayer & operator=(const DVPSGraphicLayer &)
private undefined assignment operator
a class representing the DICOM value representation 'Unsigned Short' (US)
Definition: dcvrus.h:40
void setGLRecommendedDisplayValueGray(Uint16 gray)
set graphic layer recommended grayscale display value of this layer.
void setGL(const char *gl)
set graphic layer name of this layer.
OFCondition read(DcmItem &dset)
reads a graphic layer from a DICOM dataset.
const char * getGL()
get graphic layer name of this layer.
OFCondition getGLRecommendedDisplayValueGray(Uint16 &gray)
gets the recommended grayscale display value.
DcmCodeString graphicLayer
VR=CS, VM=1, Type 1.
Definition: dvpsgl.h:161
void removeRecommendedDisplayValue(OFBool rgb, OFBool monochrome)
removes recommended display values.
OFCondition write(DcmItem &dset)
writes the graphic layer managed by this object to a DICOM dataset.
void setGLDescription(const char *glDescription)
set graphic layer description of this layer.
DcmUnsignedShort graphicLayerRecommendedDisplayGrayscaleValue
VR=US, VM=1, Type 3.
Definition: dvpsgl.h:165
General purpose class for condition codes.
Definition: ofcond.h:305


Generated on Sun Aug 23 2015 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.9.1