dvpsabl.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: DVPSAnnotationContent_PList
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:03:33 $
00027  *  CVS/RCS Revision: $Revision: 1.7 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 #ifndef __DVPSABL_H__
00035 #define __DVPSABL_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 #include "dcmtk/dcmpstat/dvpstyp.h"     /* for enum types */
00041 
00042 class DVPSAnnotationContent;
00043 
00049 class DVPSAnnotationContent_PList
00050 {
00051 public:
00052 
00054   DVPSAnnotationContent_PList();
00055   
00057   DVPSAnnotationContent_PList(const DVPSAnnotationContent_PList& copy);
00058 
00063   DVPSAnnotationContent_PList *clone() { return new DVPSAnnotationContent_PList(*this); }
00064 
00066   virtual ~DVPSAnnotationContent_PList();
00067 
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   
00103   OFCondition addAnnotationBox(
00104     const char *instanceuid,
00105     const char *text,
00106     Uint16 position);
00107   
00112   OFCondition deleteAnnotation(size_t idx);
00113   
00118   OFCondition deleteMultipleAnnotations(size_t number);
00119 
00125   OFCondition setAnnotationSOPInstanceUID(size_t idx, const char *value);
00126 
00131   const char *getSOPInstanceUID(size_t idx);
00132 
00141   OFCondition prepareBasicAnnotationBox(size_t idx, DcmItem &dset);
00142 
00145   void clearAnnotationSOPInstanceUIDs();
00146   
00152   void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00153   
00154 private:
00155 
00158   DVPSAnnotationContent_PList& operator=(const DVPSAnnotationContent_PList&);
00159   
00165   DVPSAnnotationContent *getAnnotationBox(size_t idx); 
00166 
00169   OFList<DVPSAnnotationContent *> list_;
00170 
00173   OFConsole *logstream;
00174 
00177   OFBool verboseMode;
00178    
00181   OFBool debugMode;
00182 };
00183 
00184 
00185 #endif
00186 
00187 /*
00188  *  $Log: dvpsabl.h,v $
00189  *  Revision 1.7  2005/12/08 16:03:33  meichel
00190  *  Changed include path schema for all DCMTK header files
00191  *
00192  *  Revision 1.6  2003/06/04 10:18:06  meichel
00193  *  Replaced private inheritance from template with aggregation
00194  *
00195  *  Revision 1.5  2001/09/26 15:36:08  meichel
00196  *  Adapted dcmpstat to class OFCondition
00197  *
00198  *  Revision 1.4  2001/06/01 15:50:12  meichel
00199  *  Updated copyright header
00200  *
00201  *  Revision 1.3  2000/06/02 16:00:42  meichel
00202  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00203  *
00204  *  Revision 1.2  2000/03/08 16:28:48  meichel
00205  *  Updated copyright header.
00206  *
00207  *  Revision 1.1  1999/10/19 14:46:05  meichel
00208  *  added support for the Basic Annotation Box SOP Class
00209  *    as well as access methods for Max Density and Min Density.
00210  *
00211  *
00212  */
00213 


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