# gdcmSplitMosaicFilter.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program: GDCM (Grassroots DICOM). A DICOM library
    00004   Module:  $URL$
    00005
    00006   Copyright (c) 2006-2009 Mathieu Malaterre
    00007   All rights reserved.
    00008   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
    00009
    00010      This software is distributed WITHOUT ANY WARRANTY; without even
    00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00012      PURPOSE.  See the above copyright notice for more information.
    00013
    00014 =========================================================================*/
    00015 #ifndef __gdcmSplitMosaicFilter_h
    00016 #define __gdcmSplitMosaicFilter_h
    00017
    00018 #include "gdcmFile.h"
    00019 #include "gdcmImage.h"
    00020
    00021 namespace gdcm
    00022 {
    00023
    00024 /*
    00025  * Everything done in this code is for the sole purpose of writing interoperable
    00026  * software under Sect. 1201 (f) Reverse Engineering exception of the DMCA.
    00027  * If you believe anything in this code violates any law or any of your rights,
    00028  * please contact us (gdcm-developers@lists.sourceforge.net) so that we can
    00029  * find a solution.
    00030  */
    00037 class GDCM_EXPORT SplitMosaicFilter
    00038 {
    00039 public:
    00040   SplitMosaicFilter();
    00041   ~SplitMosaicFilter();
    00042
    00044   bool Split();
    00045
    00046   void SetImage(const Image& image);
    00047   const Image &GetImage() const { return *I; }
    00048   Image &GetImage() { return *I; }
    00049
    00050   void SetFile(const File& f) { F = f; }
    00051   File &GetFile() { return *F; }
    00052   const File &GetFile() const { return *F; }
    00053
    00054 protected:
    00055
    00056 private:
    00057   SmartPointer<File> F;
    00058   SmartPointer<Image> I;
    00059 };
    00060
    00061 } // end namespace gdcm
    00062
    00063 #endif //__gdcmSplitMosaicFilter_h
    00064