ddt 1.2.1
Loading...
Searching...
No Matches
ddtCPLInversGraphicsItem.hpp
Go to the documentation of this file.
1
20#ifndef DATAVISUALISATION_TESTVIEWER_SRC_INCLUDE_DDT_DDTCPLINVGRAPHITEM_HPP_
21#define DATAVISUALISATION_TESTVIEWER_SRC_INCLUDE_DDT_DDTCPLINVGRAPHITEM_HPP_
22
24#include "ddt/imageColor.hpp"
25
26#include <cpl.h>
27
32 public:
37
42 explicit DdtCPLInversGraphicsItem(cpl_image* const in_image);
43
50 DdtCPLInversGraphicsItem(cpl_image* const in_image,
51 ddt::colorMap_t* const color_map,
52 ddt::scalingLut_t* scaling_lut);
53
61 DdtCPLInversGraphicsItem(cpl_image* const in_image,
62 ddt::colorMapARGB_t* const color_map,
63 ddt::scalingLut_t* scaling_lut);
64
69
74 QRectF boundingRect() const override;
75
82 void paint(QPainter* painter, const QStyleOptionGraphicsItem* option,
83 QWidget* widget) override;
84
89 QImage* GetImage() override;
90
96 enum { ITEM_TYPE = 66036 };
97
102 int type() const override;
103
104 protected:
108 cpl_image* cimage;
109
113 QImage* qimage;
114
115 private:
116 int width;
117 int height;
118
122 void Init();
123
128 void loadImageGrayColor(cpl_image* const in_image);
129
135 void loadImageGrayColorInt(cpl_image* const in_image);
136
142 void loadImageGrayColorFloat(cpl_image* const in_image);
143
149 void loadImageGrayColorDouble(cpl_image* const in_image);
150
157 void loadImageColor(const cpl_image* const in_image,
158 ddt::colorMap_t* color_map,
159 ddt::scalingLut_t* scaling_lut);
160
167 void loadImageColor(const cpl_image* const in_image,
168 ddt::colorMapARGB_t* const color_map,
169 ddt::scalingLut_t* const scaling_lut);
170
178 void loadImageColorInt(cpl_image* const in_image,
179 ddt::colorMap_t* const color_map,
180 ddt::scalingLut_t* const scaling_lut);
181
189 void loadImageColorInt(cpl_image* const in_image,
190 ddt::colorMapARGB_t* const color_map,
191 ddt::scalingLut_t* const scaling_lut);
192
200 void loadImageColorFloat(cpl_image* const in_image,
201 ddt::colorMap_t* const color_map,
202 ddt::scalingLut_t* const scaling_lut);
203
211 void loadImageColorFloat(cpl_image* const in_image,
212 ddt::colorMapARGB_t* const color_map,
213 ddt::scalingLut_t* const scaling_lut);
214
222 void loadImageColorDouble(cpl_image* const in_image,
223 ddt::colorMap_t* const color_map,
224 ddt::scalingLut_t* const scaling_lut);
225
233 void loadImageColorDouble(cpl_image* const in_image,
234 ddt::colorMapARGB_t* const color_map,
235 ddt::scalingLut_t* const scaling_lut);
236};
237
238#endif /* DATAVISUALISATION_TESTVIEWER_SRC_INCLUDE_DDT_DDTCPLINVGRAPHITEM_HPP_ \
239 */
240
Definition ddtCPLInversGraphicsItem.hpp:31
@ ITEM_TYPE
Definition ddtCPLInversGraphicsItem.hpp:96
~DdtCPLInversGraphicsItem() override
Definition ddtCPLInversGraphicsItem.cpp:72
DdtCPLInversGraphicsItem()
Definition ddtCPLInversGraphicsItem.cpp:25
int type() const override
Definition ddtCPLInversGraphicsItem.cpp:85
QImage * qimage
Definition ddtCPLInversGraphicsItem.hpp:113
cpl_image * cimage
Definition ddtCPLInversGraphicsItem.hpp:108
QRectF boundingRect() const override
Definition ddtCPLInversGraphicsItem.cpp:80
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
Definition ddtCPLInversGraphicsItem.cpp:90
QImage * GetImage() override
Definition ddtCPLInversGraphicsItem.cpp:98
Definition ddtImageGraphicsItem.hpp:28
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:57
std::array< unsigned int, MAX_COLOR_MAP_ENTRIES > colorMapARGB_t
Definition imageColor.hpp:67
Definition imageColor.hpp:77