dcmpstat/include/dcmtk/dcmpstat/dvpsgll.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_PList
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:36 $
00023  *  CVS/RCS Revision: $Revision: 1.15 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 #ifndef DVPSGLL_H
00031 #define DVPSGLL_H
00032 
00033 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00034 #include "dcmtk/dcmdata/dcitem.h"
00035 
00036 class DVPSGraphicLayer;
00037 class DVPSOverlayCurveActivationLayer_PList;
00038 class DVPSGraphicAnnotation_PList;
00039 
00045 class DVPSGraphicLayer_PList
00046 {
00047 public:
00049   DVPSGraphicLayer_PList();
00050   
00052   DVPSGraphicLayer_PList(const DVPSGraphicLayer_PList& copy);
00053 
00058   DVPSGraphicLayer_PList *clone() { return new DVPSGraphicLayer_PList(*this); }
00059 
00061   virtual ~DVPSGraphicLayer_PList();
00062 
00070   OFCondition read(DcmItem &dset);
00071   
00078   OFCondition write(DcmItem &dset);
00079 
00084   void clear();
00085   
00095   OFCondition addGraphicLayer(const char *gLayer, 
00096     const Sint32 gLayerOrder,
00097     const char *gLayerDescription=NULL);
00098 
00108   OFCondition addGraphicLayer(
00109      const char *gLayer, 
00110      const char *gLayerDescription=NULL);
00111 
00115   size_t size() const { return list_.size(); }  
00116 
00127   void sortGraphicLayers(Sint32 lowestLayer=1);
00128 
00135   const char *getGraphicLayerName(size_t idx);
00136 
00143   size_t getGraphicLayerIndex(const char *name);
00144   
00151   const char *getGraphicLayerDescription(size_t idx);
00152 
00157   OFBool haveGraphicLayerRecommendedDisplayValue(size_t idx);
00158 
00167   OFCondition getGraphicLayerRecommendedDisplayValueGray(size_t idx, Uint16& gray);
00168 
00178   OFCondition getGraphicLayerRecommendedDisplayValueRGB(size_t idx, Uint16& r, Uint16& g, Uint16& b);
00179 
00187   OFCondition setGraphicLayerRecommendedDisplayValueGray(size_t idx, Uint16 gray);
00188  
00198   OFCondition setGraphicLayerRecommendedDisplayValueRGB(size_t idx, Uint16 r, Uint16 g, Uint16 b);
00199 
00204   void removeGraphicLayerRecommendedDisplayValue(size_t idx, OFBool rgb, OFBool monochrome);
00205 
00212   OFCondition setGraphicLayerName(size_t idx, const char *name);
00213   
00219   OFCondition setGraphicLayerDescription(size_t idx, const char *descr);
00220  
00230   OFCondition toFrontGraphicLayer(size_t idx);
00231 
00240   OFCondition toBackGraphicLayer(size_t idx);
00241 
00249   OFCondition exchangeGraphicLayers(size_t idx1, size_t idx2);
00250  
00255   OFCondition removeGraphicLayer(size_t idx);
00256 
00261    void cleanupLayers(
00262      DVPSOverlayCurveActivationLayer_PList& activations, 
00263      DVPSGraphicAnnotation_PList& annotations);
00264 
00265 private:
00266 
00268   DVPSGraphicLayer_PList& operator=(const DVPSGraphicLayer_PList&);
00269 
00275   DVPSGraphicLayer *getGraphicLayer(size_t idx);
00276 
00279   OFList<DVPSGraphicLayer *> list_;
00280 };
00281 
00282 #endif
00283 
00284 /*
00285  *  $Log: dvpsgll.h,v $
00286  *  Revision 1.15  2010-10-14 13:16:36  joergr
00287  *  Updated copyright header. Added reference to COPYRIGHT file.
00288  *
00289  *  Revision 1.14  2010-10-07 14:31:35  joergr
00290  *  Removed leading underscore characters from preprocessor symbols (reserved).
00291  *
00292  *  Revision 1.13  2009-11-24 14:12:57  uli
00293  *  Switched to logging mechanism provided by the "new" oflog module.
00294  *
00295  *  Revision 1.12  2009-09-30 10:42:38  uli
00296  *  Make dcmpstat's include headers self-sufficient by including all
00297  *  needed headers directly and stop using dctk.h
00298  *
00299  *  Revision 1.11  2005-12-08 16:03:46  meichel
00300  *  Changed include path schema for all DCMTK header files
00301  *
00302  *  Revision 1.10  2003/06/04 10:18:06  meichel
00303  *  Replaced private inheritance from template with aggregation
00304  *
00305  *  Revision 1.9  2001/09/26 15:36:11  meichel
00306  *  Adapted dcmpstat to class OFCondition
00307  *
00308  *  Revision 1.8  2001/06/01 15:50:16  meichel
00309  *  Updated copyright header
00310  *
00311  *  Revision 1.7  2000/06/02 16:00:46  meichel
00312  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00313  *
00314  *  Revision 1.6  2000/03/08 16:28:52  meichel
00315  *  Updated copyright header.
00316  *
00317  *  Revision 1.5  1999/07/30 13:34:46  meichel
00318  *  Added new classes managing Stored Print objects
00319  *
00320  *  Revision 1.4  1999/07/22 16:39:08  meichel
00321  *  Adapted dcmpstat data structures and API to supplement 33 letter ballot text.
00322  *
00323  *  Revision 1.3  1999/02/09 15:58:55  meichel
00324  *  Implemented bitmap shutter activation amd method for
00325  *    exchanging graphic layers.
00326  *
00327  *  Revision 1.2  1998/12/14 16:10:29  meichel
00328  *  Implemented Presentation State interface for graphic layers,
00329  *    text and graphic annotations, presentation LUTs.
00330  *
00331  *  Revision 1.1  1998/11/27 14:50:28  meichel
00332  *  Initial Release.
00333  *
00334  *
00335  */


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