dvpsgrl.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: DVPSGraphicObject_PList
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:03:48 $
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 __DVPSGRL_H__
00035 #define __DVPSGRL_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 DVPSGraphicObject;
00042 
00049 class DVPSGraphicObject_PList
00050 {
00051 public:
00053   DVPSGraphicObject_PList();
00054   
00056   DVPSGraphicObject_PList(const DVPSGraphicObject_PList& copy);
00057 
00062   DVPSGraphicObject_PList *clone() { return new DVPSGraphicObject_PList(*this); }
00063 
00065   virtual ~DVPSGraphicObject_PList();
00066 
00076   OFCondition read(DcmItem &dset);
00077 
00084   OFCondition write(DcmItem &dset);
00085   
00090   void clear();
00091   
00095   size_t size() const { return list_.size(); }  
00096 
00102   DVPSGraphicObject *getGraphicObject(size_t idx);
00103 
00108   void addGraphicObject(DVPSGraphicObject *graphic);
00109   
00115   DVPSGraphicObject *removeGraphicObject(size_t idx);
00116 
00122   void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00123 
00124 private:
00125 
00127   DVPSGraphicObject_PList& operator=(const DVPSGraphicObject_PList&);
00128 
00131   OFList<DVPSGraphicObject *> list_;
00132 
00135   OFConsole *logstream;
00136 
00139   OFBool verboseMode;
00140    
00143   OFBool debugMode;
00144   
00145 };
00146 
00147 #endif
00148 
00149 /*
00150  *  $Log: dvpsgrl.h,v $
00151  *  Revision 1.8  2005/12/08 16:03:48  meichel
00152  *  Changed include path schema for all DCMTK header files
00153  *
00154  *  Revision 1.7  2003/06/04 10:18:06  meichel
00155  *  Replaced private inheritance from template with aggregation
00156  *
00157  *  Revision 1.6  2001/09/26 15:36:12  meichel
00158  *  Adapted dcmpstat to class OFCondition
00159  *
00160  *  Revision 1.5  2001/06/01 15:50:17  meichel
00161  *  Updated copyright header
00162  *
00163  *  Revision 1.4  2000/06/02 16:00:47  meichel
00164  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00165  *
00166  *  Revision 1.3  2000/03/08 16:28:52  meichel
00167  *  Updated copyright header.
00168  *
00169  *  Revision 1.2  1998/12/14 16:10:30  meichel
00170  *  Implemented Presentation State interface for graphic layers,
00171  *    text and graphic annotations, presentation LUTs.
00172  *
00173  *  Revision 1.1  1998/11/27 14:50:29  meichel
00174  *  Initial Release.
00175  *
00176  *
00177  */
00178 


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