dcmpstat/include/dcmtk/dcmpstat/dvpsall.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: DVPSOverlayCurveActivationLayer
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:36 $
00023  *  CVS/RCS Revision: $Revision: 1.13 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 #ifndef DVPSALL_H
00031 #define DVPSALL_H
00032 
00033 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00034 #include "dcmtk/dcmdata/dcitem.h"
00035 #include "dcmtk/dcmpstat/dvpstyp.h"     /* for enum types */
00036 
00037 class DVPSGraphicLayer_PList;
00038 class DVPSOverlay_PList;
00039 class DVPSOverlayCurveActivationLayer;
00040 
00049 class DVPSOverlayCurveActivationLayer_PList
00050 {
00051 public:
00053   DVPSOverlayCurveActivationLayer_PList();
00054   
00056   DVPSOverlayCurveActivationLayer_PList(const DVPSOverlayCurveActivationLayer_PList& copy);
00057 
00062   DVPSOverlayCurveActivationLayer_PList *clone() { return new DVPSOverlayCurveActivationLayer_PList(*this); }
00063 
00065   virtual ~DVPSOverlayCurveActivationLayer_PList();
00066 
00073   OFCondition read(DcmItem &dset);
00074   
00081    OFCondition write(DcmItem &dset);
00082 
00087   void clear();
00088   
00103   OFCondition createFromImage(DcmItem &dset,
00104     DVPSGraphicLayer_PList &gLayerList,
00105     DVPSOverlay_PList &overlayList,
00106     DVPSoverlayActivation overlayActivation,
00107     OFBool                curveActivation,
00108     DVPSGraphicLayering   layering);
00109     
00116   OFCondition setActivation(Uint16 group, const char *layer);
00117 
00120   void removeActivation(Uint16 group);
00121 
00125   const char *getActivationLayer(Uint16 group);
00126   
00134   void renameLayer(const char *oldName, const char *newName);
00135 
00140   void removeLayer(const char *name);
00141 
00147   OFBool usesLayerName(const char *name);
00148 
00158   size_t getNumberOfActivations(const char *layer, OFBool isCurve);
00159 
00168   Uint16 getActivationGroup(const char *layer, size_t idx, OFBool isCurve);
00169 
00170 private:
00171 
00173   DVPSOverlayCurveActivationLayer_PList& operator=(const DVPSOverlayCurveActivationLayer_PList&);
00174 
00177   OFList<DVPSOverlayCurveActivationLayer *> list_;
00178 
00179 };
00180 
00181 #endif
00182 
00183 /*
00184  *  $Log: dvpsall.h,v $
00185  *  Revision 1.13  2010-10-14 13:16:36  joergr
00186  *  Updated copyright header. Added reference to COPYRIGHT file.
00187  *
00188  *  Revision 1.12  2010-10-07 14:31:35  joergr
00189  *  Removed leading underscore characters from preprocessor symbols (reserved).
00190  *
00191  *  Revision 1.11  2009-11-24 14:12:57  uli
00192  *  Switched to logging mechanism provided by the "new" oflog module.
00193  *
00194  *  Revision 1.10  2009-09-30 10:42:38  uli
00195  *  Make dcmpstat's include headers self-sufficient by including all
00196  *  needed headers directly and stop using dctk.h
00197  *
00198  *  Revision 1.9  2005-12-08 16:03:35  meichel
00199  *  Changed include path schema for all DCMTK header files
00200  *
00201  *  Revision 1.8  2003/06/04 10:18:06  meichel
00202  *  Replaced private inheritance from template with aggregation
00203  *
00204  *  Revision 1.7  2001/09/26 15:36:08  meichel
00205  *  Adapted dcmpstat to class OFCondition
00206  *
00207  *  Revision 1.6  2001/06/01 15:50:12  meichel
00208  *  Updated copyright header
00209  *
00210  *  Revision 1.5  2000/06/02 16:00:43  meichel
00211  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00212  *
00213  *  Revision 1.4  2000/03/08 16:28:49  meichel
00214  *  Updated copyright header.
00215  *
00216  *  Revision 1.3  1998/12/22 17:57:04  meichel
00217  *  Implemented Presentation State interface for overlays,
00218  *    VOI LUTs, VOI windows, curves. Added test program that
00219  *    allows to add curve data to DICOM images.
00220  *
00221  *  Revision 1.2  1998/12/14 16:10:26  meichel
00222  *  Implemented Presentation State interface for graphic layers,
00223  *    text and graphic annotations, presentation LUTs.
00224  *
00225  *  Revision 1.1  1998/11/27 14:50:25  meichel
00226  *  Initial Release.
00227  *
00228  *
00229  */


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