dcmpstat/include/dcmtk/dcmpstat/dvpsgrl.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: DVPSGraphicObject_PList
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:36 $
00023  *  CVS/RCS Revision: $Revision: 1.12 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 #ifndef DVPSGRL_H
00031 #define DVPSGRL_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 DVPSGraphicObject;
00037 
00044 class DVPSGraphicObject_PList
00045 {
00046 public:
00048   DVPSGraphicObject_PList();
00049 
00051   DVPSGraphicObject_PList(const DVPSGraphicObject_PList& copy);
00052 
00057   DVPSGraphicObject_PList *clone() { return new DVPSGraphicObject_PList(*this); }
00058 
00060   virtual ~DVPSGraphicObject_PList();
00061 
00071   OFCondition read(DcmItem &dset);
00072 
00079   OFCondition write(DcmItem &dset);
00080 
00085   void clear();
00086 
00090   size_t size() const { return list_.size(); }
00091 
00097   DVPSGraphicObject *getGraphicObject(size_t idx);
00098 
00103   void addGraphicObject(DVPSGraphicObject *graphic);
00104 
00110   DVPSGraphicObject *removeGraphicObject(size_t idx);
00111 
00112 private:
00113 
00115   DVPSGraphicObject_PList& operator=(const DVPSGraphicObject_PList&);
00116 
00119   OFList<DVPSGraphicObject *> list_;
00120 };
00121 
00122 #endif
00123 
00124 /*
00125  *  $Log: dvpsgrl.h,v $
00126  *  Revision 1.12  2010-10-14 13:16:36  joergr
00127  *  Updated copyright header. Added reference to COPYRIGHT file.
00128  *
00129  *  Revision 1.11  2010-10-07 14:31:35  joergr
00130  *  Removed leading underscore characters from preprocessor symbols (reserved).
00131  *
00132  *  Revision 1.10  2009-11-24 14:12:57  uli
00133  *  Switched to logging mechanism provided by the "new" oflog module.
00134  *
00135  *  Revision 1.9  2009-09-30 10:42:38  uli
00136  *  Make dcmpstat's include headers self-sufficient by including all
00137  *  needed headers directly and stop using dctk.h
00138  *
00139  *  Revision 1.8  2005-12-08 16:03:48  meichel
00140  *  Changed include path schema for all DCMTK header files
00141  *
00142  *  Revision 1.7  2003/06/04 10:18:06  meichel
00143  *  Replaced private inheritance from template with aggregation
00144  *
00145  *  Revision 1.6  2001/09/26 15:36:12  meichel
00146  *  Adapted dcmpstat to class OFCondition
00147  *
00148  *  Revision 1.5  2001/06/01 15:50:17  meichel
00149  *  Updated copyright header
00150  *
00151  *  Revision 1.4  2000/06/02 16:00:47  meichel
00152  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00153  *
00154  *  Revision 1.3  2000/03/08 16:28:52  meichel
00155  *  Updated copyright header.
00156  *
00157  *  Revision 1.2  1998/12/14 16:10:30  meichel
00158  *  Implemented Presentation State interface for graphic layers,
00159  *    text and graphic annotations, presentation LUTs.
00160  *
00161  *  Revision 1.1  1998/11/27 14:50:29  meichel
00162  *  Initial Release.
00163  *
00164  *
00165  */


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