GDCM: gdcmImageWriter.h Source File

GDCM 3.2.6

gdcmImageWriter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMIMAGEWRITER_H
15#define GDCMIMAGEWRITER_H
16
17#include "gdcmPixmapWriter.h"
18#include "gdcmImage.h"
19
20namespace gdcm
21{
22
23class Image;
32 class GDCM_EXPORT ImageWriter : public PixmapWriter
33{
34public:
35 ImageWriter();
36 ~ImageWriter() override;
37
41 const Image& GetImage() const override { return dynamic_cast<const Image&>(*PixelData); }
42 Image& GetImage() override { return dynamic_cast<Image&>(*PixelData); } // FIXME
43 //void SetImage(Image const &img);
44
46 bool Write() override; // Execute()
47
50 MediaStorage ComputeTargetMediaStorage();
51protected:
52
53private:
54};
55
56} // end namespace gdcm
57
58#endif //GDCMIMAGEWRITER_H
gdcm::ImageWriter::ComputeTargetMediaStorage
MediaStorage ComputeTargetMediaStorage()
gdcm::ImageWriter::ImageWriter
ImageWriter()
gdcm::ImageWriter::~ImageWriter
~ImageWriter() override
gdcm::ImageWriter::Write
bool Write() override
Write.
gdcm::ImageWriter::GetImage
Image & GetImage() override
Definition gdcmImageWriter.h:42
gdcm::ImageWriter::GetImage
const Image & GetImage() const override
Definition gdcmImageWriter.h:41
gdcm::Image
Image.
Definition gdcmImage.h:47
gdcm::MediaStorage
MediaStorage.
Definition gdcmMediaStorage.h:44
gdcm::PixmapWriter::PixmapWriter
PixmapWriter()
gdcmImage.h
gdcmPixmapWriter.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21