GDCM 3.2.1

gdcmFileDecompressLookupTable.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 GDCMFILEDECOMPRESSLOOKUPTABLE_H
15#define GDCMFILEDECOMPRESSLOOKUPTABLE_H
16
17#include "gdcmSubject.h"
18#include "gdcmFile.h"
19#include "gdcmPixmap.h"
20
21 namespace gdcm
22{
23
24 class DataElement;
30 class GDCM_EXPORT FileDecompressLookupTable : public Subject
31{
32 public:
33 FileDecompressLookupTable() = default;
34 ~FileDecompressLookupTable() override = default;
35
37 bool Change();
38
40 void SetFile(const File& f) { F = f; }
41 File &GetFile() { return *F; }
42
43 const Pixmap& GetPixmap() const { return *PixelData; }
44 Pixmap& GetPixmap() { return *PixelData; }
45 void SetPixmap(Pixmap const &img) { PixelData = img; }
46
47 protected:
48
49 private:
50 SmartPointer<File> F;
51 SmartPointer<Pixmap> PixelData;
52};
53
54} // end namespace gdcm
55
56#endif //GDCMFILEDECOMPRESSLOOKUPTABLE_H
gdcm::DataElement
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
gdcm::FileDecompressLookupTable::GetPixmap
const Pixmap & GetPixmap() const
Definition gdcmFileDecompressLookupTable.h:43
gdcm::FileDecompressLookupTable::GetPixmap
Pixmap & GetPixmap()
Definition gdcmFileDecompressLookupTable.h:44
gdcm::FileDecompressLookupTable::SetPixmap
void SetPixmap(Pixmap const &img)
Definition gdcmFileDecompressLookupTable.h:45
gdcm::FileDecompressLookupTable::SetFile
void SetFile(const File &f)
Set/Get File.
Definition gdcmFileDecompressLookupTable.h:40
gdcm::FileDecompressLookupTable::GetFile
File & GetFile()
Definition gdcmFileDecompressLookupTable.h:41
gdcm::FileDecompressLookupTable::Change
bool Change()
Decompress.
gdcm::FileDecompressLookupTable::~FileDecompressLookupTable
~FileDecompressLookupTable() override=default
gdcm::FileDecompressLookupTable::FileDecompressLookupTable
FileDecompressLookupTable()=default
gdcm::File
a DICOM File
Definition gdcmFile.h:34
gdcm::Pixmap
Pixmap class.
Definition gdcmPixmap.h:33
gdcm::SmartPointer
Class for Smart Pointer.
Definition gdcmSmartPointer.h:40
gdcm::Subject::Subject
Subject()
gdcmFile.h
gdcmPixmap.h
gdcmSubject.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21