GDCM: gdcmImageFragmentSplitter.h Source File

GDCM 3.2.8

gdcmImageFragmentSplitter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMIMAGEFRAGMENTSPLITTER_H
15#define GDCMIMAGEFRAGMENTSPLITTER_H
16
17#include "gdcmImageToImageFilter.h"
18
19namespace gdcm
20{
21
22class DataElement;
27 class GDCM_EXPORT ImageFragmentSplitter : public ImageToImageFilter
28{
29public:
30 ImageFragmentSplitter():FragmentSizeMax(0),Force(false) {}
31 ~ImageFragmentSplitter() = default;
32
34 bool Split();
35
37 void SetFragmentSizeMax(unsigned int fragsize);
38 unsigned int GetFragmentSizeMax() const { return FragmentSizeMax; }
39
42 void SetForce( bool f ) { Force = f; }
43
44protected:
45
46private:
47 unsigned int FragmentSizeMax;
48 bool Force;
49};
50
51} // end namespace gdcm
52
53#endif //GDCMIMAGEFRAGMENTSPLITTER_H
gdcm::DataElement
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
gdcm::ImageFragmentSplitter::~ImageFragmentSplitter
~ImageFragmentSplitter()=default
gdcm::ImageFragmentSplitter::SetFragmentSizeMax
void SetFragmentSizeMax(unsigned int fragsize)
FragmentSizeMax needs to be an even number.
gdcm::ImageFragmentSplitter::ImageFragmentSplitter
ImageFragmentSplitter()
Definition gdcmImageFragmentSplitter.h:30
gdcm::ImageFragmentSplitter::Split
bool Split()
Split.
gdcm::ImageFragmentSplitter::GetFragmentSizeMax
unsigned int GetFragmentSizeMax() const
Definition gdcmImageFragmentSplitter.h:38
gdcm::ImageFragmentSplitter::SetForce
void SetForce(bool f)
Definition gdcmImageFragmentSplitter.h:42
gdcm::ImageToImageFilter::ImageToImageFilter
ImageToImageFilter()
gdcmImageToImageFilter.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21