GDCM  2.4.5
gdcmFileExplicitFilter.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 GDCMFILEEXPLICITFILTER_H
15 #define GDCMFILEEXPLICITFILTER_H
16 
17 #include "gdcmFile.h"
18 
19 namespace gdcm
20 {
21 class Dicts;
22 
39 {
40 public:
41  FileExplicitFilter():F(new File),ChangePrivateTags(false),UseVRUN(true),RecomputeItemLength(false),RecomputeSequenceLength(false) {}
43 
45  void SetChangePrivateTags(bool b) { ChangePrivateTags = b;}
46 
48  void SetUseVRUN(bool b) { UseVRUN = b; }
49 
51  void SetRecomputeItemLength(bool b);
52  void SetRecomputeSequenceLength(bool b);
53 
55 
57  bool Change();
58 
60  void SetFile(const File& f) { F = f; }
61  File &GetFile() { return *F; }
62 
63 protected:
64  bool ProcessDataSet(DataSet &ds, Dicts const & dicts);
65  bool ChangeFMI();
66 
67 private:
69  bool ChangePrivateTags;
70  bool UseVRUN;
71  bool RecomputeItemLength;
72  bool RecomputeSequenceLength;
73 };
74 
75 
76 } // end namespace gdcm
77 
78 #endif //GDCMFILEEXPLICITFILTER_H
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a r...
Definition: gdcmDataSet.h:55
FileExplicitFilter class After changing a file from Implicit to Explicit representation (see ImageCha...
Definition: gdcmFileExplicitFilter.h:38
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
void SetChangePrivateTags(bool b)
Decide whether or not to VR'ify private tags.
Definition: gdcmFileExplicitFilter.h:45
FileExplicitFilter()
Definition: gdcmFileExplicitFilter.h:41
File & GetFile()
Definition: gdcmFileExplicitFilter.h:61
void SetFile(const File &f)
Set/Get File.
Definition: gdcmFileExplicitFilter.h:60
Class for Smart Pointer.
Definition: gdcmObject.h:26
a DICOM File See PS 3.10 File: A File is an ordered string of zero or more bytes, where the first byt...
Definition: gdcmFile.h:33
Class to manipulate the sum of knowledge (all the dict user load)
Definition: gdcmDicts.h:28
~FileExplicitFilter()
Definition: gdcmFileExplicitFilter.h:42
Definition: gdcmASN1.h:20
void SetUseVRUN(bool b)
When VR=16bits in explicit but Implicit has a 32bits length, use VR=UN.
Definition: gdcmFileExplicitFilter.h:48

Generated on Fri Sep 25 2015 17:58:23 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo