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