dvpsgl.h

00001 /*
00002  *
00003  *  Copyright (C) 1998-2005, OFFIS
00004  *
00005  *  This software and supporting documentation were developed by
00006  *
00007  *    Kuratorium OFFIS e.V.
00008  *    Healthcare Information and Communication Systems
00009  *    Escherweg 2
00010  *    D-26121 Oldenburg, Germany
00011  *
00012  *  THIS SOFTWARE IS MADE AVAILABLE,  AS IS,  AND OFFIS MAKES NO  WARRANTY
00013  *  REGARDING  THE  SOFTWARE,  ITS  PERFORMANCE,  ITS  MERCHANTABILITY  OR
00014  *  FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES  OR
00015  *  ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND
00016  *  PERFORMANCE OF THE SOFTWARE IS WITH THE USER.
00017  *
00018  *  Module: dcmpstat
00019  *
00020  *  Author: Marco Eichelberg
00021  *
00022  *  Purpose:
00023  *    classes: DVPSGraphicLayer
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:03:45 $
00027  *  CVS/RCS Revision: $Revision: 1.8 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 #ifndef __DVPSGL_H__
00035 #define __DVPSGL_H__
00036 
00037 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00038 #include "dcmtk/dcmdata/dctk.h"
00039 
00040 
00046 class DVPSGraphicLayer
00047 {
00048 public:
00050   DVPSGraphicLayer();
00051   
00053   DVPSGraphicLayer(const DVPSGraphicLayer& copy);
00054 
00059   DVPSGraphicLayer *clone() { return new DVPSGraphicLayer(*this); }
00060 
00062   virtual ~DVPSGraphicLayer();
00063 
00073   OFCondition read(DcmItem &dset);
00074   
00081   OFCondition write(DcmItem &dset);
00082   
00086   const char *getGL();
00087 
00091   const char *getGLDescription();
00092 
00096   Sint32 getGLOrder();
00097 
00101   OFBool haveGLRecommendedDisplayValue();
00102 
00110   OFCondition getGLRecommendedDisplayValueGray(Uint16& gray);
00111 
00120   OFCondition getGLRecommendedDisplayValueRGB(Uint16& r, Uint16& g, Uint16& b);
00121   
00126   void removeRecommendedDisplayValue(OFBool rgb, OFBool monochrome);
00127 
00131   void setGL(const char *gl);
00132 
00136   void setGLOrder(Sint32 glOrder);
00137 
00143   void setGLRecommendedDisplayValueGray(Uint16 gray);
00144 
00152   void setGLRecommendedDisplayValueRGB(Uint16 r, Uint16 g, Uint16 b);
00153 
00157   void setGLDescription(const char *glDescription);
00158 
00164   void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00165 
00166 private:
00167 
00169   DVPSGraphicLayer& operator=(const DVPSGraphicLayer&);
00170 
00172   DcmCodeString            graphicLayer;
00174   DcmIntegerString         graphicLayerOrder;
00176   DcmUnsignedShort         graphicLayerRecommendedDisplayGrayscaleValue;
00178   DcmUnsignedShort         graphicLayerRecommendedDisplayRGBValue;
00180   DcmLongString            graphicLayerDescription;
00181 
00184   OFConsole *logstream;
00185 
00188   OFBool verboseMode;
00189    
00192   OFBool debugMode;
00193 };
00194 
00195 #endif
00196 
00197 /*
00198  *  $Log: dvpsgl.h,v $
00199  *  Revision 1.8  2005/12/08 16:03:45  meichel
00200  *  Changed include path schema for all DCMTK header files
00201  *
00202  *  Revision 1.7  2001/09/26 15:36:11  meichel
00203  *  Adapted dcmpstat to class OFCondition
00204  *
00205  *  Revision 1.6  2001/06/01 15:50:16  meichel
00206  *  Updated copyright header
00207  *
00208  *  Revision 1.5  2000/06/02 16:00:46  meichel
00209  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00210  *
00211  *  Revision 1.4  2000/03/08 16:28:51  meichel
00212  *  Updated copyright header.
00213  *
00214  *  Revision 1.3  1999/07/22 16:39:08  meichel
00215  *  Adapted dcmpstat data structures and API to supplement 33 letter ballot text.
00216  *
00217  *  Revision 1.2  1998/12/14 16:10:29  meichel
00218  *  Implemented Presentation State interface for graphic layers,
00219  *    text and graphic annotations, presentation LUTs.
00220  *
00221  *  Revision 1.1  1998/11/27 14:50:27  meichel
00222  *  Initial Release.
00223  *
00224  *
00225  */


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5