dcmpstat/include/dcmtk/dcmpstat/dvpsab.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: DVPSAnnotationContent
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:35 $
00023  *  CVS/RCS Revision: $Revision: 1.10 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 #ifndef DVPSAB_H
00031 #define DVPSAB_H
00032 
00033 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00034 #include "dcmtk/dcmdata/dcvrus.h"     /* for class DcmUnsignedShort */
00035 #include "dcmtk/dcmdata/dcvrlo.h"     /* for class DcmLongString */
00036 #include "dcmtk/dcmdata/dcvrui.h"     /* for class DcmUniqueIdentifier */
00037 #include "dcmtk/dcmpstat/dvpstyp.h"   /* for enum types */
00038 
00042 class DVPSAnnotationContent
00043 {
00044 public:
00046   DVPSAnnotationContent();
00047   
00049   DVPSAnnotationContent(const DVPSAnnotationContent& copy);
00050 
00055   DVPSAnnotationContent *clone() { return new DVPSAnnotationContent(*this); }
00056 
00058   virtual ~DVPSAnnotationContent();
00059 
00064   void clear();
00065 
00075   OFCondition read(DcmItem &dset);
00076   
00083   OFCondition write(DcmItem &dset);
00084   
00091   OFCondition setContent(
00092     const char *instanceuid,
00093     const char *text,
00094     Uint16 position);
00095     
00099   const char *getSOPInstanceUID();
00100 
00105   OFCondition setSOPInstanceUID(const char *value);
00106 
00114   OFCondition prepareBasicAnnotationBox(DcmItem &dset);
00115 
00116 private:
00118   DVPSAnnotationContent& operator=(const DVPSAnnotationContent&);
00119 
00121   DcmUniqueIdentifier      sOPInstanceUID;
00123   DcmUnsignedShort         annotationPosition;
00125   DcmLongString            textString;
00126 
00127 };
00128 
00129 #endif
00130 
00131 /*
00132  *  $Log: dvpsab.h,v $
00133  *  Revision 1.10  2010-10-14 13:16:35  joergr
00134  *  Updated copyright header. Added reference to COPYRIGHT file.
00135  *
00136  *  Revision 1.9  2010-10-07 14:31:35  joergr
00137  *  Removed leading underscore characters from preprocessor symbols (reserved).
00138  *
00139  *  Revision 1.8  2009-11-24 14:12:57  uli
00140  *  Switched to logging mechanism provided by the "new" oflog module.
00141  *
00142  *  Revision 1.7  2009-09-30 10:42:38  uli
00143  *  Make dcmpstat's include headers self-sufficient by including all
00144  *  needed headers directly and stop using dctk.h
00145  *
00146  *  Revision 1.6  2005-12-08 16:03:32  meichel
00147  *  Changed include path schema for all DCMTK header files
00148  *
00149  *  Revision 1.5  2001/09/26 15:36:08  meichel
00150  *  Adapted dcmpstat to class OFCondition
00151  *
00152  *  Revision 1.4  2001/06/01 15:50:11  meichel
00153  *  Updated copyright header
00154  *
00155  *  Revision 1.3  2000/06/02 16:00:42  meichel
00156  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00157  *
00158  *  Revision 1.2  2000/03/08 16:28:48  meichel
00159  *  Updated copyright header.
00160  *
00161  *  Revision 1.1  1999/10/19 14:46:05  meichel
00162  *  added support for the Basic Annotation Box SOP Class
00163  *    as well as access methods for Max Density and Min Density.
00164  *
00165  *
00166  */


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