GDCM 2.2.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

gdcmImageWriter.h
Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program: GDCM (Grassroots DICOM). A DICOM library
    00004
    00005   Copyright (c) 2006-2011 Mathieu Malaterre
    00006   All rights reserved.
    00007   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
    00008
    00009      This software is distributed WITHOUT ANY WARRANTY; without even
    00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00011      PURPOSE.  See the above copyright notice for more information.
    00012
    00013 =========================================================================*/
    00014 #ifndef GDCMIMAGEWRITER_H
    00015 #define GDCMIMAGEWRITER_H
    00016
    00017 #include "gdcmPixmapWriter.h"
    00018 #include "gdcmImage.h"
    00019
    00020 namespace gdcm
    00021 {
    00022
    00023 class Image;
    00027 class GDCM_EXPORT ImageWriter : public PixmapWriter
    00028 {
    00029 public:
    00030   ImageWriter();
    00031   ~ImageWriter();
    00032
    00036   const Image& GetImage() const { return dynamic_cast<const Image&>(*PixelData); }
    00037   Image& GetImage() { return dynamic_cast<Image&>(*PixelData); } // FIXME
    00038   //void SetImage(Image const &img);
    00039
    00041   bool Write(); // Execute()
    00042
    00043 protected:
    00044
    00045 private:
    00046 };
    00047
    00048 } // end namespace gdcm
    00049
    00050 #endif //GDCMIMAGEWRITER_H