ddt 1.4.0
 
Loading...
Searching...
No Matches
ddtCPLInversGraphicsItem.hpp
Go to the documentation of this file.
1
10
11#ifndef DATAVISUALISATION_TESTVIEWER_SRC_INCLUDE_DDT_DDTCPLINVGRAPHITEM_HPP_
12#define DATAVISUALISATION_TESTVIEWER_SRC_INCLUDE_DDT_DDTCPLINVGRAPHITEM_HPP_
13
15#include "ddt/imageColor.hpp"
16
17#include <cpl.h>
18
23 public:
28
33 explicit DdtCPLInversGraphicsItem(cpl_image* const in_image);
34
41 DdtCPLInversGraphicsItem(cpl_image* const in_image,
42 ddt::colorMap_t* const color_map,
43 ddt::scalingLut_t* scaling_lut);
44
52 DdtCPLInversGraphicsItem(cpl_image* const in_image,
53 ddt::colorMapARGB_t* const color_map,
54 ddt::scalingLut_t* scaling_lut);
55
60
65 QRectF boundingRect() const override;
66
73 void paint(QPainter* painter, const QStyleOptionGraphicsItem* option,
74 QWidget* widget) override;
75
80 QImage* GetImage() override;
81
87 enum { ITEM_TYPE = 66036 };
88
93 int type() const override;
94
95 protected:
99 cpl_image* cimage;
100
104 QImage* qimage;
105
106 private:
107 int width;
108 int height;
109
113 void Init();
114
119 void loadImageGrayColor(cpl_image* const in_image);
120
126 void loadImageGrayColorInt(cpl_image* const in_image);
127
133 void loadImageGrayColorFloat(cpl_image* const in_image);
134
140 void loadImageGrayColorDouble(cpl_image* const in_image);
141
148 void loadImageColor(const cpl_image* const in_image,
149 ddt::colorMap_t* color_map,
150 ddt::scalingLut_t* scaling_lut);
151
158 void loadImageColor(const cpl_image* const in_image,
159 ddt::colorMapARGB_t* const color_map,
160 ddt::scalingLut_t* const scaling_lut);
161
169 void loadImageColorInt(cpl_image* const in_image,
170 ddt::colorMap_t* const color_map,
171 ddt::scalingLut_t* const scaling_lut);
172
180 void loadImageColorInt(cpl_image* const in_image,
181 ddt::colorMapARGB_t* const color_map,
182 ddt::scalingLut_t* const scaling_lut);
183
191 void loadImageColorFloat(cpl_image* const in_image,
192 ddt::colorMap_t* const color_map,
193 ddt::scalingLut_t* const scaling_lut);
194
202 void loadImageColorFloat(cpl_image* const in_image,
203 ddt::colorMapARGB_t* const color_map,
204 ddt::scalingLut_t* const scaling_lut);
205
213 void loadImageColorDouble(cpl_image* const in_image,
214 ddt::colorMap_t* const color_map,
215 ddt::scalingLut_t* const scaling_lut);
216
224 void loadImageColorDouble(cpl_image* const in_image,
225 ddt::colorMapARGB_t* const color_map,
226 ddt::scalingLut_t* const scaling_lut);
227};
228
229#endif /* DATAVISUALISATION_TESTVIEWER_SRC_INCLUDE_DDT_DDTCPLINVGRAPHITEM_HPP_ \
230 */
@ ITEM_TYPE
Definition ddtCPLInversGraphicsItem.hpp:87
~DdtCPLInversGraphicsItem() override
Definition ddtCPLInversGraphicsItem.cpp:64
DdtCPLInversGraphicsItem()
Definition ddtCPLInversGraphicsItem.cpp:17
int type() const override
Definition ddtCPLInversGraphicsItem.cpp:77
QImage * qimage
Definition ddtCPLInversGraphicsItem.hpp:104
cpl_image * cimage
Definition ddtCPLInversGraphicsItem.hpp:99
QRectF boundingRect() const override
Definition ddtCPLInversGraphicsItem.cpp:72
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
Definition ddtCPLInversGraphicsItem.cpp:82
QImage * GetImage() override
Definition ddtCPLInversGraphicsItem.cpp:90
DdtImageGraphicsItem()
Definition ddtImageGraphicsItem.cpp:12
DDT Widgets. Class for Image Graphics Items. Class derived from QGraphicsItem. Base class for all typ...
Image Color class, offers access to color map related functions. This file is part of the DDT Image H...
std::array< std::array< float, COLOR_MAP_ENTRY_SIZE >, MAX_COLOR_MAP_ENTRIES > colorMap_t
Definition imageColor.hpp:48
std::array< unsigned int, MAX_COLOR_MAP_ENTRIES > colorMapARGB_t
Definition imageColor.hpp:58
Definition imageColor.hpp:68