gdcmFileExplicitFilter.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 GDCMFILEEXPLICITFILTER_H
#define GDCMFILEEXPLICITFILTER_H
#include "gdcmFile.h"
namespace gdcm
{
class Dicts;
class GDCM_EXPORT FileExplicitFilter
{
public:
FileExplicitFilter():F(new File),ChangePrivateTags(false),UseVRUN(true),RecomputeItemLength(false),RecomputeSequenceLength(false) {}
~FileExplicitFilter() = default;
void SetChangePrivateTags(bool b) { ChangePrivateTags = b;}
void SetUseVRUN(bool b) { UseVRUN = b; }
void SetRecomputeItemLength(bool b);
void SetRecomputeSequenceLength(bool b);
bool Change();
void SetFile(const File& f) { F = f; }
File &GetFile() { return *F; }
protected:
bool ProcessDataSet(DataSet &ds, Dicts const & dicts);
bool ChangeFMI();
private:
SmartPointer<File> F;
bool ChangePrivateTags;
bool UseVRUN;
bool RecomputeItemLength;
bool RecomputeSequenceLength;
};
} // end namespace gdcm
#endif //GDCMFILEEXPLICITFILTER_H
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements).
Definition gdcmDataSet.h:56
gdcm::Dicts
Class to manipulate the sum of knowledge (all the dict user load).
Definition gdcmDicts.h:29
gdcm::FileExplicitFilter::ChangeFMI
bool ChangeFMI()
gdcm::FileExplicitFilter::ProcessDataSet
bool ProcessDataSet(DataSet &ds, Dicts const &dicts)
gdcm::FileExplicitFilter::SetRecomputeSequenceLength
void SetRecomputeSequenceLength(bool b)
gdcm::FileExplicitFilter::SetChangePrivateTags
void SetChangePrivateTags(bool b)
Decide whether or not to VR'ify private tags.
Definition gdcmFileExplicitFilter.h:45
gdcm::FileExplicitFilter::SetUseVRUN
void SetUseVRUN(bool b)
When VR=16bits in explicit but Implicit has a 32bits length, use VR=UN.
Definition gdcmFileExplicitFilter.h:48
gdcm::FileExplicitFilter::~FileExplicitFilter
~FileExplicitFilter()=default
gdcm::FileExplicitFilter::FileExplicitFilter
FileExplicitFilter()
Definition gdcmFileExplicitFilter.h:41
gdcm::FileExplicitFilter::SetRecomputeItemLength
void SetRecomputeItemLength(bool b)
By default set Sequence & Item length to Undefined to avoid recomputing length:
gdcm::FileExplicitFilter::GetFile
File & GetFile()
Definition gdcmFileExplicitFilter.h:61
gdcm::FileExplicitFilter::SetFile
void SetFile(const File &f)
Set/Get File.
Definition gdcmFileExplicitFilter.h:60
gdcm::FileExplicitFilter::Change
bool Change()
Set FMI Transfer Syntax.
gdcm::File
a DICOM File
Definition gdcmFile.h:34
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcmFile.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21