dvpsab.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
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:03:32 $
00027  *  CVS/RCS Revision: $Revision: 1.6 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 #ifndef __DVPSAB_H__
00035 #define __DVPSAB_H__
00036 
00037 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00038 #include "dcmtk/ofstd/ofstring.h"
00039 #include "dcmtk/dcmdata/dctk.h"
00040 #include "dcmtk/dcmpstat/dvpstyp.h"     /* for enum types */
00041 
00045 class DVPSAnnotationContent
00046 {
00047 public:
00049   DVPSAnnotationContent();
00050   
00052   DVPSAnnotationContent(const DVPSAnnotationContent& copy);
00053 
00058   DVPSAnnotationContent *clone() { return new DVPSAnnotationContent(*this); }
00059 
00061   virtual ~DVPSAnnotationContent();
00062 
00067   void clear();
00068 
00078   OFCondition read(DcmItem &dset);
00079   
00086   OFCondition write(DcmItem &dset);
00087   
00094   OFCondition setContent(
00095     const char *instanceuid,
00096     const char *text,
00097     Uint16 position);
00098     
00102   const char *getSOPInstanceUID();
00103 
00108   OFCondition setSOPInstanceUID(const char *value);
00109 
00117   OFCondition prepareBasicAnnotationBox(DcmItem &dset);
00118 
00124   void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00125  
00126 private:
00128   DVPSAnnotationContent& operator=(const DVPSAnnotationContent&);
00129 
00131   DcmUniqueIdentifier      sOPInstanceUID;
00133   DcmUnsignedShort         annotationPosition;
00135   DcmLongString            textString;
00136 
00139   OFConsole *logstream;
00140 
00143   OFBool verboseMode;
00144    
00147   OFBool debugMode;
00148   
00149 };
00150 
00151 #endif
00152 
00153 /*
00154  *  $Log: dvpsab.h,v $
00155  *  Revision 1.6  2005/12/08 16:03:32  meichel
00156  *  Changed include path schema for all DCMTK header files
00157  *
00158  *  Revision 1.5  2001/09/26 15:36:08  meichel
00159  *  Adapted dcmpstat to class OFCondition
00160  *
00161  *  Revision 1.4  2001/06/01 15:50:11  meichel
00162  *  Updated copyright header
00163  *
00164  *  Revision 1.3  2000/06/02 16:00:42  meichel
00165  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00166  *
00167  *  Revision 1.2  2000/03/08 16:28:48  meichel
00168  *  Updated copyright header.
00169  *
00170  *  Revision 1.1  1999/10/19 14:46:05  meichel
00171  *  added support for the Basic Annotation Box SOP Class
00172  *    as well as access methods for Max Density and Min Density.
00173  *
00174  *
00175  */
00176 


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