# 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-2010 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  */
    00038 class GDCM_EXPORT SplitMosaicFilter
    00039 {
    00040 public:
    00041   SplitMosaicFilter();
    00042   ~SplitMosaicFilter();
    00043
    00045   bool Split();
    00046
    00049   bool ComputeMOSAICDimensions(unsigned int dims[3]);
    00050
    00051   void SetImage(const Image& image);
    00052   const Image &GetImage() const { return *I; }
    00053   Image &GetImage() { return *I; }
    00054
    00055   void SetFile(const File& f) { F = f; }
    00056   File &GetFile() { return *F; }
    00057   const File &GetFile() const { return *F; }
    00058
    00059 protected:
    00060
    00061 private:
    00062   SmartPointer<File> F;
    00063   SmartPointer<Image> I;
    00064 };
    00065
    00066 } // end namespace gdcm
    00067
    00068 #endif //GDCMSPLITMOSAICFILTER_H