GDCM 3.2.1

gdcmIconImage.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 GDCMICONIMAGE_H
15#define GDCMICONIMAGE_H
16
17#if 0
18#include "gdcmObject.h"
19#include "gdcmDataElement.h"
20#include "gdcmPhotometricInterpretation.h"
21#include "gdcmPixelFormat.h"
22#include "gdcmTransferSyntax.h"
23
24#include <vector>
25
26 namespace gdcm
27{
28
32 class GDCM_EXPORT IconImage : public Object
33{
34 public:
35 IconImage();
36 ~IconImage();
37 void Print(std::ostream &) const {}
38
40 void SetTransferSyntax(TransferSyntax const &ts) {
41 TS = ts;
42 }
43 const TransferSyntax &GetTransferSyntax() const {
44 return TS;
45 }
46 void SetDataElement(DataElement const &de) {
47 PixelData = de;
48 }
49 const DataElement& GetDataElement() const { return PixelData; }
50
51 void SetColumns(unsigned int col) { SetDimension(0,col); }
52 void SetRows(unsigned int rows) { SetDimension(1,rows); }
53 void SetDimension(unsigned int idx, unsigned int dim);
54 int GetColumns() const { return Dimensions[0]; }
55 int GetRows() const { return Dimensions[1]; }
56 // Get/Set PixelFormat
57 const PixelFormat &GetPixelFormat() const
58 {
59 return PF;
60 }
61 void SetPixelFormat(PixelFormat const &pf)
62 {
63 PF = pf;
64 }
65
66 const PhotometricInterpretation &GetPhotometricInterpretation() const;
67 void SetPhotometricInterpretation(PhotometricInterpretation const &pi);
68
69 bool IsEmpty() const { return Dimensions.size() == 0; }
70 void Clear();
71
72 bool GetBuffer(char *buffer) const;
73
74 private:
75 TransferSyntax TS;
76 PixelFormat PF; // SamplesPerPixel, BitsAllocated, BitsStored, HighBit, PixelRepresentation
77 PhotometricInterpretation PI;
78 std::vector<unsigned int> Dimensions; // Col/Row
79 std::vector<double> Spacing; // PixelAspectRatio ?
80 DataElement PixelData; // copied from 7fe0,0010
81 static const unsigned int NumberOfDimensions = 2;
82};
83
84} // end namespace gdcm
85#endif
86#include "gdcmBitmap.h"
87
88 namespace gdcm
89{
90 //class GDCM_EXPORT IconImage : public Pixmap {};
91 typedef Bitmap IconImage;
92}
93
94#endif //GDCMICONIMAGE_H
gdcm::Bitmap
Bitmap class.
Definition gdcmBitmap.h:39
gdcm::Object
Object.
Definition gdcmObject.h:37
gdcmBitmap.h
gdcmDataElement.h
gdcmObject.h
gdcmPhotometricInterpretation.h
gdcmPixelFormat.h
gdcmTransferSyntax.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::IconImage
Bitmap IconImage
Definition gdcmIconImage.h:91