dvpsovl.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: DVPSOverlay_PList
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:03:54 $
00027  *  CVS/RCS Revision: $Revision: 1.10 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 #ifndef __DVPSOVL_H__
00035 #define __DVPSOVL_H__
00036 
00037 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00038 #include "dcmtk/ofstd/oflist.h"
00039 #include "dcmtk/dcmdata/dctk.h"
00040 
00041 class DVPSOverlay;
00042 
00049 class DVPSOverlay_PList
00050 {
00051 public:
00053   DVPSOverlay_PList();
00054   
00056   DVPSOverlay_PList(const DVPSOverlay_PList& copy);
00057 
00062   DVPSOverlay_PList *clone() { return new DVPSOverlay_PList(*this); }
00063 
00065   virtual ~DVPSOverlay_PList();
00066 
00077   OFCondition read(DcmItem &dset);
00078   
00085   OFCondition write(DcmItem &dset);
00086 
00091   void clear();
00092   
00098   OFBool haveOverlayGroup(Uint16 group);
00099   
00103   size_t size() const { return list_.size(); }
00104   
00109   DVPSOverlay *getOverlay(size_t idx);
00110 
00115   OFCondition removeOverlay(size_t idx);
00116 
00122   OFCondition changeOverlayGroup(size_t idx, Uint16 newGroup);
00123 
00136   OFCondition addOverlay(DcmItem& overlayIOD, Uint16 groupInItem, Uint16 newGroup);
00137 
00143   DVPSOverlay *getOverlayGroup(Uint16 group);
00144 
00150   void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00151 
00152 private:
00153 
00155   DVPSOverlay_PList& operator=(const DVPSOverlay_PList&);
00156 
00159   OFList<DVPSOverlay *> list_;
00160 
00163   OFConsole *logstream;
00164 
00167   OFBool verboseMode;
00168    
00171   OFBool debugMode;
00172 
00173 };
00174 
00175 #endif
00176 
00177 /*
00178  *  $Log: dvpsovl.h,v $
00179  *  Revision 1.10  2005/12/08 16:03:54  meichel
00180  *  Changed include path schema for all DCMTK header files
00181  *
00182  *  Revision 1.9  2003/06/04 10:18:06  meichel
00183  *  Replaced private inheritance from template with aggregation
00184  *
00185  *  Revision 1.8  2001/09/26 15:36:13  meichel
00186  *  Adapted dcmpstat to class OFCondition
00187  *
00188  *  Revision 1.7  2001/06/01 15:50:19  meichel
00189  *  Updated copyright header
00190  *
00191  *  Revision 1.6  2000/06/02 16:00:49  meichel
00192  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00193  *
00194  *  Revision 1.5  2000/03/08 16:28:54  meichel
00195  *  Updated copyright header.
00196  *
00197  *  Revision 1.4  2000/03/06 18:23:15  joergr
00198  *  Added const type specifier to derived method (reported by Sun CC 4.2).
00199  *
00200  *  Revision 1.3  1998/12/22 17:57:06  meichel
00201  *  Implemented Presentation State interface for overlays,
00202  *    VOI LUTs, VOI windows, curves. Added test program that
00203  *    allows to add curve data to DICOM images.
00204  *
00205  *  Revision 1.2  1998/12/14 16:10:31  meichel
00206  *  Implemented Presentation State interface for graphic layers,
00207  *    text and graphic annotations, presentation LUTs.
00208  *
00209  *  Revision 1.1  1998/11/27 14:50:30  meichel
00210  *  Initial Release.
00211  *
00212  *
00213  */
00214 


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