GDCM 2.2.0

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

- File List
- File Members

gdcmImageFragmentSplitter.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 GDCMIMAGEFRAGMENTSPLITTER_H
    00015 #define GDCMIMAGEFRAGMENTSPLITTER_H
    00016
    00017 #include "gdcmImageToImageFilter.h"
    00018
    00019 namespace gdcm
    00020 {
    00021
    00022 class DataElement;
    00027 class GDCM_EXPORT ImageFragmentSplitter : public ImageToImageFilter
    00028 {
    00029 public:
    00030   ImageFragmentSplitter():FragmentSizeMax(0),Force(false) {}
    00031   ~ImageFragmentSplitter() {}
    00032
    00034   bool Split();
    00035
    00037   void SetFragmentSizeMax(unsigned int fragsize);
    00038   unsigned int GetFragmentSizeMax() const { return FragmentSizeMax; }
    00039
    00042   void SetForce( bool f ) { Force = f; }
    00043
    00044 protected:
    00045
    00046 private:
    00047   unsigned int FragmentSizeMax;
    00048   bool Force;
    00049 };
    00050
    00051 } // end namespace gdcm
    00052
    00053 #endif //GDCMIMAGEFRAGMENTSPLITTER_H