GDCM 2.2.0

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

- File List
- File Members

gdcmSplitMosaicFilter.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 GDCMSPLITMOSAICFILTER_H
    00015 #define GDCMSPLITMOSAICFILTER_H
    00016
    00017 #include "gdcmFile.h"
    00018 #include "gdcmImage.h"
    00019
    00020 namespace gdcm
    00021 {
    00022
    00023 /*
    00024  * Everything done in this code is for the sole purpose of writing interoperable
    00025  * software under Sect. 1201 (f) Reverse Engineering exception of the DMCA.
    00026  * If you believe anything in this code violates any law or any of your rights,
    00027  * please contact us (gdcm-developers@lists.sourceforge.net) so that we can
    00028  * find a solution.
    00029  */
    00037 class GDCM_EXPORT SplitMosaicFilter
    00038 {
    00039 public:
    00040   SplitMosaicFilter();
    00041   ~SplitMosaicFilter();
    00042
    00044   bool Split();
    00045
    00048   bool ComputeMOSAICDimensions(unsigned int dims[3]);
    00049
    00050   void SetImage(const Image& image);
    00051   const Image &GetImage() const { return *I; }
    00052   Image &GetImage() { return *I; }
    00053
    00054   void SetFile(const File& f) { F = f; }
    00055   File &GetFile() { return *F; }
    00056   const File &GetFile() const { return *F; }
    00057
    00058 protected:
    00059
    00060 private:
    00061   SmartPointer<File> F;
    00062   SmartPointer<Image> I;
    00063 };
    00064
    00065 } // end namespace gdcm
    00066
    00067 #endif //GDCMSPLITMOSAICFILTER_H