GDCM 3.2.1

gdcmFileChangeTransferSyntax.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 GDCMFILECHANGETRANSFERSYNTAX_H
15#define GDCMFILECHANGETRANSFERSYNTAX_H
16
17#include "gdcmSubject.h"
18#include "gdcmSmartPointer.h"
19
20 namespace gdcm
21{
22 class FileChangeTransferSyntaxInternals;
23 class ImageCodec;
24 class TransferSyntax;
25
39 class GDCM_EXPORT FileChangeTransferSyntax : public Subject
40{
41 public:
42 FileChangeTransferSyntax();
43 ~FileChangeTransferSyntax() override;
44
46 void SetInputFileName(const char *filename_native);
47
49 void SetOutputFileName(const char *filename_native);
50
52 bool Change();
53
55 void SetTransferSyntax( TransferSyntax const & ts );
56
59 ImageCodec * GetCodec();
60
62 static SmartPointer<FileChangeTransferSyntax> New() { return new FileChangeTransferSyntax; }
63
64 private:
65 bool InitializeCopy();
66 bool UpdateCompressionLevel(double level);
67 FileChangeTransferSyntaxInternals *Internals;
68};
69
70} // end namespace gdcm
71
72#endif //GDCMFILEANONYMIZER_H
gdcm::FileChangeTransferSyntax::FileChangeTransferSyntax
FileChangeTransferSyntax()
gdcm::FileChangeTransferSyntax::Change
bool Change()
Change the transfer syntax.
gdcm::FileChangeTransferSyntax::~FileChangeTransferSyntax
~FileChangeTransferSyntax() override
gdcm::FileChangeTransferSyntax::SetOutputFileName
void SetOutputFileName(const char *filename_native)
Set output filename (target compressed DICOM)
gdcm::FileChangeTransferSyntax::New
static SmartPointer< FileChangeTransferSyntax > New()
for wrapped language: instantiate a reference counted object
Definition gdcmFileChangeTransferSyntax.h:62
gdcm::FileChangeTransferSyntax::SetInputFileName
void SetInputFileName(const char *filename_native)
Set input filename (raw DICOM)
gdcm::FileChangeTransferSyntax::SetTransferSyntax
void SetTransferSyntax(TransferSyntax const &ts)
Specify the Target Transfer Syntax.
gdcm::FileChangeTransferSyntax::GetCodec
ImageCodec * GetCodec()
gdcm::ImageCodec
ImageCodec.
Definition gdcmImageCodec.h:31
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcm::Subject::Subject
Subject()
gdcm::TransferSyntax
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
gdcmSmartPointer.h
gdcmSubject.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21