dvpsga.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: DVPSGraphicAnnotation
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:03:43 $
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 __DVPSGA_H__
00035 #define __DVPSGA_H__
00036 
00037 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00038 #include "dcmtk/dcmdata/dctk.h"
00039 
00040 #include "dcmtk/dcmpstat/dvpstxl.h"     /* for DVPSTextObject_PList */
00041 #include "dcmtk/dcmpstat/dvpsgrl.h"     /* for DVPSGraphicObject_PList */
00042 #include "dcmtk/dcmpstat/dvpsril.h"     /* for DVPSReferencedImage_PList */
00043 #include "dcmtk/dcmpstat/dvpstyp.h"     /* for enum types */
00044 
00050 class DVPSGraphicAnnotation
00051 {
00052 public:
00054   DVPSGraphicAnnotation();
00055   
00057   DVPSGraphicAnnotation(const DVPSGraphicAnnotation& copy);
00058 
00063   DVPSGraphicAnnotation *clone() { return new DVPSGraphicAnnotation(*this); }
00064 
00066   virtual ~DVPSGraphicAnnotation();
00067 
00077   OFCondition read(DcmItem &dset);
00078 
00085   OFCondition write(DcmItem &dset);
00086 
00090   const char *getAnnotationLayer();
00091 
00095   void setAnnotationLayer(const char *aLayer);
00096 
00107   OFCondition addImageReference(
00108     const char *sopclassUID,
00109     const char *instanceUID, 
00110     unsigned long frame,
00111     DVPSObjectApplicability applicability);
00112     
00117   OFBool isEmpty();
00118 
00126   OFBool isApplicable(    
00127     const char *instanceUID, 
00128     unsigned long frame,
00129     DVPSObjectApplicability applicability=DVPSB_currentFrame);
00130     
00134   size_t getNumberOfTextObjects();
00135   
00139   size_t getNumberOfGraphicObjects();
00140   
00146   DVPSTextObject *getTextObject(size_t idx);
00147 
00153   DVPSGraphicObject *getGraphicObject(size_t idx);
00154 
00159   void addTextObject(DVPSTextObject *text);
00160 
00165   void addGraphicObject(DVPSGraphicObject *graphic);
00166   
00172   DVPSTextObject *removeTextObject(size_t idx);
00173 
00179   DVPSGraphicObject *removeGraphicObject(size_t idx);
00180 
00186   void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00187   
00188 private:
00189 
00191   DVPSGraphicAnnotation& operator=(const DVPSGraphicAnnotation&);
00192 
00194   DVPSReferencedImage_PList referencedImageList;
00196   DcmCodeString             graphicAnnotationLayer;
00198   DVPSTextObject_PList      textObjectList;
00200   DVPSGraphicObject_PList   graphicObjectList;
00201 
00204   OFConsole *logstream;
00205 
00208   OFBool verboseMode;
00209    
00212   OFBool debugMode;
00213 
00214 };
00215 
00216 #endif
00217 
00218 /*
00219  *  $Log: dvpsga.h,v $
00220  *  Revision 1.8  2005/12/08 16:03:43  meichel
00221  *  Changed include path schema for all DCMTK header files
00222  *
00223  *  Revision 1.7  2001/09/26 15:36:10  meichel
00224  *  Adapted dcmpstat to class OFCondition
00225  *
00226  *  Revision 1.6  2001/06/01 15:50:15  meichel
00227  *  Updated copyright header
00228  *
00229  *  Revision 1.5  2000/06/02 16:00:45  meichel
00230  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00231  *
00232  *  Revision 1.4  2000/03/08 16:28:51  meichel
00233  *  Updated copyright header.
00234  *
00235  *  Revision 1.3  1999/07/22 16:39:06  meichel
00236  *  Adapted dcmpstat data structures and API to supplement 33 letter ballot text.
00237  *
00238  *  Revision 1.2  1998/12/14 16:10:27  meichel
00239  *  Implemented Presentation State interface for graphic layers,
00240  *    text and graphic annotations, presentation LUTs.
00241  *
00242  *  Revision 1.1  1998/11/27 14:50:26  meichel
00243  *  Initial Release.
00244  *
00245  *
00246  */
00247 


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