dcmpstat/include/dcmtk/dcmpstat/dvpsga.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: DVPSGraphicAnnotation
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 DVPSGA_H
00031 #define DVPSGA_H
00032 
00033 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00034 
00035 #include "dcmtk/dcmdata/dcvrcs.h"       /* for DcmCodeString */
00036 #include "dcmtk/dcmpstat/dvpstxl.h"     /* for DVPSTextObject_PList */
00037 #include "dcmtk/dcmpstat/dvpsgrl.h"     /* for DVPSGraphicObject_PList */
00038 #include "dcmtk/dcmpstat/dvpsril.h"     /* for DVPSReferencedImage_PList */
00039 #include "dcmtk/dcmpstat/dvpstyp.h"     /* for enum types */
00040 
00046 class DVPSGraphicAnnotation
00047 {
00048 public:
00050   DVPSGraphicAnnotation();
00051   
00053   DVPSGraphicAnnotation(const DVPSGraphicAnnotation& copy);
00054 
00059   DVPSGraphicAnnotation *clone() { return new DVPSGraphicAnnotation(*this); }
00060 
00062   virtual ~DVPSGraphicAnnotation();
00063 
00073   OFCondition read(DcmItem &dset);
00074 
00081   OFCondition write(DcmItem &dset);
00082 
00086   const char *getAnnotationLayer();
00087 
00091   void setAnnotationLayer(const char *aLayer);
00092 
00103   OFCondition addImageReference(
00104     const char *sopclassUID,
00105     const char *instanceUID, 
00106     unsigned long frame,
00107     DVPSObjectApplicability applicability);
00108     
00113   OFBool isEmpty();
00114 
00122   OFBool isApplicable(    
00123     const char *instanceUID, 
00124     unsigned long frame,
00125     DVPSObjectApplicability applicability=DVPSB_currentFrame);
00126     
00130   size_t getNumberOfTextObjects();
00131   
00135   size_t getNumberOfGraphicObjects();
00136   
00142   DVPSTextObject *getTextObject(size_t idx);
00143 
00149   DVPSGraphicObject *getGraphicObject(size_t idx);
00150 
00155   void addTextObject(DVPSTextObject *text);
00156 
00161   void addGraphicObject(DVPSGraphicObject *graphic);
00162   
00168   DVPSTextObject *removeTextObject(size_t idx);
00169 
00175   DVPSGraphicObject *removeGraphicObject(size_t idx);
00176 
00177 private:
00178 
00180   DVPSGraphicAnnotation& operator=(const DVPSGraphicAnnotation&);
00181 
00183   DVPSReferencedImage_PList referencedImageList;
00185   DcmCodeString             graphicAnnotationLayer;
00187   DVPSTextObject_PList      textObjectList;
00189   DVPSGraphicObject_PList   graphicObjectList;
00190 
00191 };
00192 
00193 #endif
00194 
00195 /*
00196  *  $Log: dvpsga.h,v $
00197  *  Revision 1.12  2010-10-14 13:16:36  joergr
00198  *  Updated copyright header. Added reference to COPYRIGHT file.
00199  *
00200  *  Revision 1.11  2010-10-07 14:31:35  joergr
00201  *  Removed leading underscore characters from preprocessor symbols (reserved).
00202  *
00203  *  Revision 1.10  2009-11-24 14:12:57  uli
00204  *  Switched to logging mechanism provided by the "new" oflog module.
00205  *
00206  *  Revision 1.9  2009-09-30 10:42:38  uli
00207  *  Make dcmpstat's include headers self-sufficient by including all
00208  *  needed headers directly and stop using dctk.h
00209  *
00210  *  Revision 1.8  2005-12-08 16:03:43  meichel
00211  *  Changed include path schema for all DCMTK header files
00212  *
00213  *  Revision 1.7  2001/09/26 15:36:10  meichel
00214  *  Adapted dcmpstat to class OFCondition
00215  *
00216  *  Revision 1.6  2001/06/01 15:50:15  meichel
00217  *  Updated copyright header
00218  *
00219  *  Revision 1.5  2000/06/02 16:00:45  meichel
00220  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00221  *
00222  *  Revision 1.4  2000/03/08 16:28:51  meichel
00223  *  Updated copyright header.
00224  *
00225  *  Revision 1.3  1999/07/22 16:39:06  meichel
00226  *  Adapted dcmpstat data structures and API to supplement 33 letter ballot text.
00227  *
00228  *  Revision 1.2  1998/12/14 16:10:27  meichel
00229  *  Implemented Presentation State interface for graphic layers,
00230  *    text and graphic annotations, presentation LUTs.
00231  *
00232  *  Revision 1.1  1998/11/27 14:50:26  meichel
00233  *  Initial Release.
00234  *
00235  *
00236  */


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