OFFIS DCMTK  Version 3.6.0
dcrlecp.h
1 /*
2  *
3  * Copyright (C) 1994-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmdata
15  *
16  * Author: Marco Eichelberg
17  *
18  * Purpose: codec parameter for RLE
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:15:42 $
22  * CVS/RCS Revision: $Revision: 1.6 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 #ifndef DCRLECP_H
30 #define DCRLECP_H
31 
32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/dcmdata/dccodec.h" /* for DcmCodecParameter */
34 
38 {
39 public:
40 
53  OFBool pCreateSOPInstanceUID = OFFalse,
54  Uint32 pFragmentSize = 0,
55  OFBool pCreateOffsetTable = OFTrue,
56  OFBool pConvertToSC = OFFalse,
57  OFBool pReverseDecompressionByteOrder = OFFalse);
58 
61 
63  virtual ~DcmRLECodecParameter();
64 
69  virtual DcmCodecParameter *clone() const;
70 
74  virtual const char *className() const;
75 
79  Uint32 getFragmentSize() const
80  {
81  return fragmentSize;
82  }
83 
87  OFBool getCreateOffsetTable() const
88  {
89  return createOffsetTable;
90  }
91 
95  OFBool getConvertToSC() const
96  {
97  return convertToSC;
98  }
99 
103  OFBool getUIDCreation() const
104  {
105  return createInstanceUID;
106  }
107 
112  {
114  }
115 
116 
117 private:
118 
121 
123  Uint32 fragmentSize;
124 
127 
129  OFBool convertToSC;
130 
133 
138 };
139 
140 
141 #endif
142 
143 /*
144  * CVS/RCS Log
145  * $Log: dcrlecp.h,v $
146  * Revision 1.6 2010-10-14 13:15:42 joergr
147  * Updated copyright header. Added reference to COPYRIGHT file.
148  *
149  * Revision 1.5 2009-11-04 09:58:07 uli
150  * Switched to logging mechanism provided by the "new" oflog module
151  *
152  * Revision 1.4 2008-06-23 12:09:13 joergr
153  * Fixed inconsistencies in Doxygen API documentation.
154  *
155  * Revision 1.3 2005/12/08 16:28:35 meichel
156  * Changed include path schema for all DCMTK header files
157  *
158  * Revision 1.2 2005/07/26 17:08:33 meichel
159  * Added option to RLE decoder that allows to correctly decode images with
160  * incorrect byte order of byte segments (LSB instead of MSB).
161  *
162  * Revision 1.1 2002/06/06 14:52:35 meichel
163  * Initial release of the new RLE codec classes
164  * and the dcmcrle/dcmdrle tools in module dcmdata
165  *
166  *
167  */
OFBool createInstanceUID
create new Instance UID during compression/decompression?
Definition: dcrlecp.h:132
virtual DcmCodecParameter * clone() const
this methods creates a copy of type DcmCodecParameter * it must be overweritten in every subclass...
OFBool getUIDCreation() const
returns mode for SOP Instance UID creation
Definition: dcrlecp.h:103
codec parameter for RLE codec
Definition: dcrlecp.h:37
OFBool getReverseDecompressionByteOrder() const
returns reverse decompression byte order mode
Definition: dcrlecp.h:111
OFBool reverseDecompressionByteOrder
enable reverse byte order of RLE segments during decompression, needed to decompress certain incorrec...
Definition: dcrlecp.h:137
virtual const char * className() const
returns the class name as string.
DcmRLECodecParameter(OFBool pCreateSOPInstanceUID=OFFalse, Uint32 pFragmentSize=0, OFBool pCreateOffsetTable=OFTrue, OFBool pConvertToSC=OFFalse, OFBool pReverseDecompressionByteOrder=OFFalse)
constructor.
OFBool convertToSC
flag indicating whether image should be converted to Secondary Capture upon compression ...
Definition: dcrlecp.h:129
Uint32 getFragmentSize() const
returns maximum fragment size (in kbytes) for compression, 0 for unlimited.
Definition: dcrlecp.h:79
abstract base class for a codec parameter object that describes the settings (modes of operations) fo...
Definition: dccodec.h:49
DcmRLECodecParameter & operator=(const DcmRLECodecParameter &)
private undefined copy assignment operator
OFBool getConvertToSC() const
returns secondary capture conversion flag
Definition: dcrlecp.h:95
OFBool getCreateOffsetTable() const
returns offset table creation flag
Definition: dcrlecp.h:87
OFBool createOffsetTable
create offset table during image compression
Definition: dcrlecp.h:126
Uint32 fragmentSize
maximum fragment size (in kbytes) for compression, 0 for unlimited.
Definition: dcrlecp.h:123
virtual ~DcmRLECodecParameter()
destructor


Generated on Thu Aug 27 2015 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.9.1