dcmpstat/include/dcmtk/dcmpstat/dvpsovl.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: DVPSOverlay_PList
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:36 $
00023  *  CVS/RCS Revision: $Revision: 1.14 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 #ifndef DVPSOVL_H
00031 #define DVPSOVL_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 DVPSOverlay;
00037 
00044 class DVPSOverlay_PList
00045 {
00046 public:
00048   DVPSOverlay_PList();
00049 
00051   DVPSOverlay_PList(const DVPSOverlay_PList& copy);
00052 
00057   DVPSOverlay_PList *clone() { return new DVPSOverlay_PList(*this); }
00058 
00060   virtual ~DVPSOverlay_PList();
00061 
00072   OFCondition read(DcmItem &dset);
00073 
00080   OFCondition write(DcmItem &dset);
00081 
00086   void clear();
00087 
00093   OFBool haveOverlayGroup(Uint16 group);
00094 
00098   size_t size() const { return list_.size(); }
00099 
00104   DVPSOverlay *getOverlay(size_t idx);
00105 
00110   OFCondition removeOverlay(size_t idx);
00111 
00117   OFCondition changeOverlayGroup(size_t idx, Uint16 newGroup);
00118 
00131   OFCondition addOverlay(DcmItem& overlayIOD, Uint16 groupInItem, Uint16 newGroup);
00132 
00138   DVPSOverlay *getOverlayGroup(Uint16 group);
00139 
00140 private:
00141 
00143   DVPSOverlay_PList& operator=(const DVPSOverlay_PList&);
00144 
00147   OFList<DVPSOverlay *> list_;
00148 
00149 };
00150 
00151 #endif
00152 
00153 /*
00154  *  $Log: dvpsovl.h,v $
00155  *  Revision 1.14  2010-10-14 13:16:36  joergr
00156  *  Updated copyright header. Added reference to COPYRIGHT file.
00157  *
00158  *  Revision 1.13  2010-10-07 14:31:36  joergr
00159  *  Removed leading underscore characters from preprocessor symbols (reserved).
00160  *
00161  *  Revision 1.12  2009-11-24 14:12:57  uli
00162  *  Switched to logging mechanism provided by the "new" oflog module.
00163  *
00164  *  Revision 1.11  2009-09-30 10:42:38  uli
00165  *  Make dcmpstat's include headers self-sufficient by including all
00166  *  needed headers directly and stop using dctk.h
00167  *
00168  *  Revision 1.10  2005-12-08 16:03:54  meichel
00169  *  Changed include path schema for all DCMTK header files
00170  *
00171  *  Revision 1.9  2003/06/04 10:18:06  meichel
00172  *  Replaced private inheritance from template with aggregation
00173  *
00174  *  Revision 1.8  2001/09/26 15:36:13  meichel
00175  *  Adapted dcmpstat to class OFCondition
00176  *
00177  *  Revision 1.7  2001/06/01 15:50:19  meichel
00178  *  Updated copyright header
00179  *
00180  *  Revision 1.6  2000/06/02 16:00:49  meichel
00181  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00182  *
00183  *  Revision 1.5  2000/03/08 16:28:54  meichel
00184  *  Updated copyright header.
00185  *
00186  *  Revision 1.4  2000/03/06 18:23:15  joergr
00187  *  Added const type specifier to derived method (reported by Sun CC 4.2).
00188  *
00189  *  Revision 1.3  1998/12/22 17:57:06  meichel
00190  *  Implemented Presentation State interface for overlays,
00191  *    VOI LUTs, VOI windows, curves. Added test program that
00192  *    allows to add curve data to DICOM images.
00193  *
00194  *  Revision 1.2  1998/12/14 16:10:31  meichel
00195  *  Implemented Presentation State interface for graphic layers,
00196  *    text and graphic annotations, presentation LUTs.
00197  *
00198  *  Revision 1.1  1998/11/27 14:50:30  meichel
00199  *  Initial Release.
00200  *
00201  *
00202  */


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