dcmimage/include/dcmtk/dcmimage/dipipng.h

00001 /*
00002  *
00003  *  Copyright (C) 2003-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:  dcmimage
00015  *
00016  *  Author:  Alexander Haderer
00017  *
00018  *  Purpose: Implements PNG interface for plugable image formats
00019  *
00020  *  Last Update:      $Author: joergr $
00021  *  Update Date:      $Date: 2010-10-14 13:16:29 $
00022  *  CVS/RCS Revision: $Revision: 1.7 $
00023  *  Status:           $State: Exp $
00024  *
00025  *  CVS/RCS Log at end of file
00026  *
00027  */
00028 
00029 
00030 #ifndef DIPIPNG_H
00031 #define DIPIPNG_H
00032 
00033 #include "dcmtk/config/osconfig.h"
00034 
00035 #ifdef WITH_LIBPNG
00036 
00037 #include "dcmtk/ofstd/ofstring.h"
00038 
00039 #include "dcmtk/dcmimgle/diplugin.h"
00040 
00041 
00042 /*------------------------*
00043  *  forward declarations  *
00044  *------------------------*/
00045 
00046 class DiImage;
00047 
00048 
00049 /*--------------------*
00050  *  type definitions  *
00051  *--------------------*/
00052 
00057 enum DiPNGInterlace
00058 {
00060   E_pngInterlaceAdam7,
00061 
00063   E_pngInterlaceNone
00064 };
00065 
00069 enum DiPNGMetainfo
00070 {
00072   E_pngNoMetainfo,
00073 
00075   E_pngFileMetainfo
00076 };
00077 
00078 
00079 /*---------------------*
00080  *  class declaration  *
00081  *---------------------*/
00082 
00085 class DiPNGPlugin
00086   : public DiPluginFormat
00087 {
00088 
00089   public:
00090 
00093     DiPNGPlugin();
00094 
00097     virtual ~DiPNGPlugin();
00098 
00105     virtual int write(DiImage *image,
00106                       FILE *stream,
00107                       const unsigned long frame = 0) const;
00108 
00112     void setInterlaceType(DiPNGInterlace inter);
00113 
00117     void setMetainfoType(DiPNGMetainfo minfo);
00118 
00123     static OFString getLibraryVersionString();
00124 
00125 
00126  private:
00127 
00129     DiPNGInterlace interlaceType;
00130 
00132     DiPNGMetainfo metainfoType;
00133 };
00134 
00135 #endif
00136 #endif
00137 
00138 
00139 /*
00140  * CVS/RCS Log:
00141  * $Log: dipipng.h,v $
00142  * Revision 1.7  2010-10-14 13:16:29  joergr
00143  * Updated copyright header. Added reference to COPYRIGHT file.
00144  *
00145  * Revision 1.6  2010-03-01 09:08:46  uli
00146  * Removed some unnecessary include directives in the headers.
00147  *
00148  * Revision 1.5  2005-12-08 16:01:42  meichel
00149  * Changed include path schema for all DCMTK header files
00150  *
00151  * Revision 1.4  2004/04/07 12:06:28  joergr
00152  * Removed comma at end of enumerator list.
00153  *
00154  * Revision 1.3  2003/12/23 12:09:24  joergr
00155  * Updated documentation to get rid of doxygen warnings.
00156  *
00157  * Revision 1.2  2003/12/17 18:18:08  joergr
00158  * Removed leading underscore characters from preprocessor symbols (reserved
00159  * symbols).
00160  *
00161  * Revision 1.1  2003/02/11 13:18:38  meichel
00162  * Added PNG export option to dcm2pnm and dcmj2pnm
00163  *
00164  *
00165  */


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