dcmpstat/include/dcmtk/dcmpstat/dvpsgl.h

00001 /*
00002  *
00003  *  Copyright (C) 1998-2010, OFFIS e.V.
00004  *  All rights reserved.  See COPYRIGHT file for details.
00005  *
00006  *  This software and supporting documentation were developed by
00007  *
00008  *    OFFIS e.V.
00009  *    R&D Division Health
00010  *    Escherweg 2
00011  *    D-26121 Oldenburg, Germany
00012  *
00013  *
00014  *  Module: dcmpstat
00015  *
00016  *  Author: Marco Eichelberg
00017  *
00018  *  Purpose:
00019  *    classes: DVPSGraphicLayer
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:36 $
00023  *  CVS/RCS Revision: $Revision: 1.11 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 #ifndef DVPSGL_H
00031 #define DVPSGL_H
00032 
00033 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00034 #include "dcmtk/dcmdata/dctk.h"
00035 
00036 
00042 class DVPSGraphicLayer
00043 {
00044 public:
00046   DVPSGraphicLayer();
00047 
00049   DVPSGraphicLayer(const DVPSGraphicLayer& copy);
00050 
00055   DVPSGraphicLayer *clone() { return new DVPSGraphicLayer(*this); }
00056 
00058   virtual ~DVPSGraphicLayer();
00059 
00069   OFCondition read(DcmItem &dset);
00070 
00077   OFCondition write(DcmItem &dset);
00078 
00082   const char *getGL();
00083 
00087   const char *getGLDescription();
00088 
00092   Sint32 getGLOrder();
00093 
00097   OFBool haveGLRecommendedDisplayValue();
00098 
00106   OFCondition getGLRecommendedDisplayValueGray(Uint16& gray);
00107 
00116   OFCondition getGLRecommendedDisplayValueRGB(Uint16& r, Uint16& g, Uint16& b);
00117 
00122   void removeRecommendedDisplayValue(OFBool rgb, OFBool monochrome);
00123 
00127   void setGL(const char *gl);
00128 
00132   void setGLOrder(Sint32 glOrder);
00133 
00139   void setGLRecommendedDisplayValueGray(Uint16 gray);
00140 
00148   void setGLRecommendedDisplayValueRGB(Uint16 r, Uint16 g, Uint16 b);
00149 
00153   void setGLDescription(const char *glDescription);
00154 
00155 private:
00156 
00158   DVPSGraphicLayer& operator=(const DVPSGraphicLayer&);
00159 
00161   DcmCodeString            graphicLayer;
00163   DcmIntegerString         graphicLayerOrder;
00165   DcmUnsignedShort         graphicLayerRecommendedDisplayGrayscaleValue;
00167   DcmUnsignedShort         graphicLayerRecommendedDisplayRGBValue;
00169   DcmLongString            graphicLayerDescription;
00170 
00171 };
00172 
00173 #endif
00174 
00175 /*
00176  *  $Log: dvpsgl.h,v $
00177  *  Revision 1.11  2010-10-14 13:16:36  joergr
00178  *  Updated copyright header. Added reference to COPYRIGHT file.
00179  *
00180  *  Revision 1.10  2010-10-07 14:31:35  joergr
00181  *  Removed leading underscore characters from preprocessor symbols (reserved).
00182  *
00183  *  Revision 1.9  2009-11-24 14:12:57  uli
00184  *  Switched to logging mechanism provided by the "new" oflog module.
00185  *
00186  *  Revision 1.8  2005-12-08 16:03:45  meichel
00187  *  Changed include path schema for all DCMTK header files
00188  *
00189  *  Revision 1.7  2001/09/26 15:36:11  meichel
00190  *  Adapted dcmpstat to class OFCondition
00191  *
00192  *  Revision 1.6  2001/06/01 15:50:16  meichel
00193  *  Updated copyright header
00194  *
00195  *  Revision 1.5  2000/06/02 16:00:46  meichel
00196  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00197  *
00198  *  Revision 1.4  2000/03/08 16:28:51  meichel
00199  *  Updated copyright header.
00200  *
00201  *  Revision 1.3  1999/07/22 16:39:08  meichel
00202  *  Adapted dcmpstat data structures and API to supplement 33 letter ballot text.
00203  *
00204  *  Revision 1.2  1998/12/14 16:10:29  meichel
00205  *  Implemented Presentation State interface for graphic layers,
00206  *    text and graphic annotations, presentation LUTs.
00207  *
00208  *  Revision 1.1  1998/11/27 14:50:27  meichel
00209  *  Initial Release.
00210  *
00211  *
00212  */


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1