dvpsall.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: DVPSOverlayCurveActivationLayer
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:03:35 $
00027  *  CVS/RCS Revision: $Revision: 1.9 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 #ifndef __DVPSALL_H__
00035 #define __DVPSALL_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 
00041 #include "dcmtk/dcmpstat/dvpstyp.h"     /* for enum types */
00042 
00043 class DVPSGraphicLayer_PList;
00044 class DVPSOverlay_PList;
00045 class DVPSOverlayCurveActivationLayer;
00046 
00055 class DVPSOverlayCurveActivationLayer_PList
00056 {
00057 public:
00059   DVPSOverlayCurveActivationLayer_PList();
00060   
00062   DVPSOverlayCurveActivationLayer_PList(const DVPSOverlayCurveActivationLayer_PList& copy);
00063 
00068   DVPSOverlayCurveActivationLayer_PList *clone() { return new DVPSOverlayCurveActivationLayer_PList(*this); }
00069 
00071   virtual ~DVPSOverlayCurveActivationLayer_PList();
00072 
00079   OFCondition read(DcmItem &dset);
00080   
00087    OFCondition write(DcmItem &dset);
00088 
00093   void clear();
00094   
00109   OFCondition createFromImage(DcmItem &dset,
00110     DVPSGraphicLayer_PList &gLayerList,
00111     DVPSOverlay_PList &overlayList,
00112     DVPSoverlayActivation overlayActivation,
00113     OFBool                curveActivation,
00114     DVPSGraphicLayering   layering);
00115     
00122   OFCondition setActivation(Uint16 group, const char *layer);
00123 
00126   void removeActivation(Uint16 group);
00127 
00131   const char *getActivationLayer(Uint16 group);
00132   
00140   void renameLayer(const char *oldName, const char *newName);
00141 
00146   void removeLayer(const char *name);
00147 
00153   OFBool usesLayerName(const char *name);
00154 
00164   size_t getNumberOfActivations(const char *layer, OFBool isCurve);
00165 
00174   Uint16 getActivationGroup(const char *layer, size_t idx, OFBool isCurve);
00175 
00181   void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00182 
00183 private:
00184 
00186   DVPSOverlayCurveActivationLayer_PList& operator=(const DVPSOverlayCurveActivationLayer_PList&);
00187 
00190   OFList<DVPSOverlayCurveActivationLayer *> list_;
00191 
00194   OFConsole *logstream;
00195 
00198   OFBool verboseMode;
00199    
00202   OFBool debugMode;
00203 };
00204 
00205 #endif
00206 
00207 /*
00208  *  $Log: dvpsall.h,v $
00209  *  Revision 1.9  2005/12/08 16:03:35  meichel
00210  *  Changed include path schema for all DCMTK header files
00211  *
00212  *  Revision 1.8  2003/06/04 10:18:06  meichel
00213  *  Replaced private inheritance from template with aggregation
00214  *
00215  *  Revision 1.7  2001/09/26 15:36:08  meichel
00216  *  Adapted dcmpstat to class OFCondition
00217  *
00218  *  Revision 1.6  2001/06/01 15:50:12  meichel
00219  *  Updated copyright header
00220  *
00221  *  Revision 1.5  2000/06/02 16:00:43  meichel
00222  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00223  *
00224  *  Revision 1.4  2000/03/08 16:28:49  meichel
00225  *  Updated copyright header.
00226  *
00227  *  Revision 1.3  1998/12/22 17:57:04  meichel
00228  *  Implemented Presentation State interface for overlays,
00229  *    VOI LUTs, VOI windows, curves. Added test program that
00230  *    allows to add curve data to DICOM images.
00231  *
00232  *  Revision 1.2  1998/12/14 16:10:26  meichel
00233  *  Implemented Presentation State interface for graphic layers,
00234  *    text and graphic annotations, presentation LUTs.
00235  *
00236  *  Revision 1.1  1998/11/27 14:50:25  meichel
00237  *  Initial Release.
00238  *
00239  *
00240  */
00241 


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