gdcmImageFragmentSplitter.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMIMAGEFRAGMENTSPLITTER_H
#define GDCMIMAGEFRAGMENTSPLITTER_H
#include "gdcmImageToImageFilter.h"
namespace gdcm
{
class DataElement;
class GDCM_EXPORT ImageFragmentSplitter : public ImageToImageFilter
{
public:
ImageFragmentSplitter():FragmentSizeMax(0),Force(false) {}
~ImageFragmentSplitter() = default;
bool Split();
void SetFragmentSizeMax(unsigned int fragsize);
unsigned int GetFragmentSizeMax() const { return FragmentSizeMax; }
void SetForce( bool f ) { Force = f; }
protected:
private:
unsigned int FragmentSizeMax;
bool Force;
};
} // end namespace gdcm
#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