dcmpstat/include/dcmtk/dcmpstat/dvpsdal.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: DVPSDisplayedArea_PList
00020  *
00021  *  Last Update:      $Author: joergr $
00022  *  Update Date:      $Date: 2010-10-14 13:16:36 $
00023  *  CVS/RCS Revision: $Revision: 1.12 $
00024  *  Status:           $State: Exp $
00025  *
00026  *  CVS/RCS Log at end of file
00027  *
00028  */
00029 
00030 #ifndef DVPSDAL_H
00031 #define DVPSDAL_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 DVPSDisplayedArea;
00038 class DVPSReferencedSeries_PList;
00039 
00045 class DVPSDisplayedArea_PList
00046 {
00047 public:
00049   DVPSDisplayedArea_PList();
00050   
00052   DVPSDisplayedArea_PList(const DVPSDisplayedArea_PList& copy);
00053 
00058   DVPSDisplayedArea_PList *clone() { return new DVPSDisplayedArea_PList(*this); }
00059 
00061   virtual ~DVPSDisplayedArea_PList();
00062 
00071   OFCondition read(DcmItem &dset);
00072   
00079   OFCondition write(DcmItem &dset);
00080 
00085   void clear();
00086       
00090   size_t size() const { return list_.size(); }
00091 
00097   DVPSDisplayedArea *findDisplayedArea(const char *instanceUID, unsigned long frame);
00098 
00114   DVPSDisplayedArea *createDisplayedArea(
00115     DVPSReferencedSeries_PList& allReferences,
00116     const char *sopclassUID, 
00117     const char *instanceUID, 
00118     unsigned long frame, 
00119     unsigned long numberOfFrames, 
00120     DVPSObjectApplicability applicability);
00121 
00129   void rotateAndFlip(
00130     DVPSRotationType rotationFrom, 
00131     OFBool isFlippedFrom,
00132     DVPSRotationType rotationTo, 
00133     OFBool isFlippedTo);
00134 
00135 private:
00136 
00139   DVPSDisplayedArea_PList& operator=(const DVPSDisplayedArea_PList&);
00140 
00143   OFList<DVPSDisplayedArea *> list_;
00144 
00145 };
00146 
00147 
00148 #endif
00149 
00150 /*
00151  *  $Log: dvpsdal.h,v $
00152  *  Revision 1.12  2010-10-14 13:16:36  joergr
00153  *  Updated copyright header. Added reference to COPYRIGHT file.
00154  *
00155  *  Revision 1.11  2010-10-07 14:31:35  joergr
00156  *  Removed leading underscore characters from preprocessor symbols (reserved).
00157  *
00158  *  Revision 1.10  2009-11-24 14:12:57  uli
00159  *  Switched to logging mechanism provided by the "new" oflog module.
00160  *
00161  *  Revision 1.9  2009-09-30 10:42:38  uli
00162  *  Make dcmpstat's include headers self-sufficient by including all
00163  *  needed headers directly and stop using dctk.h
00164  *
00165  *  Revision 1.8  2005-12-08 16:03:40  meichel
00166  *  Changed include path schema for all DCMTK header files
00167  *
00168  *  Revision 1.7  2003/09/05 14:30:06  meichel
00169  *  Introduced new API methods that allow Displayed Areas to be queried
00170  *    and set either relative to the image (ignoring rotation and flip) or
00171  *    in absolute values as defined in the standard.  Rotate and flip methods
00172  *    now adjust displayed areas in the presentation state.
00173  *
00174  *  Revision 1.6  2003/06/04 10:18:06  meichel
00175  *  Replaced private inheritance from template with aggregation
00176  *
00177  *  Revision 1.5  2001/09/26 15:36:10  meichel
00178  *  Adapted dcmpstat to class OFCondition
00179  *
00180  *  Revision 1.4  2001/06/01 15:50:14  meichel
00181  *  Updated copyright header
00182  *
00183  *  Revision 1.3  2000/06/02 16:00:45  meichel
00184  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00185  *
00186  *  Revision 1.2  2000/03/08 16:28:51  meichel
00187  *  Updated copyright header.
00188  *
00189  *  Revision 1.1  1999/07/22 16:39:06  meichel
00190  *  Adapted dcmpstat data structures and API to supplement 33 letter ballot text.
00191  *
00192  *
00193  */


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