ddt  0.1
ddtRenderingPluginCPLInvers.hpp
Go to the documentation of this file.
1 // @copyright
2 // (c) Copyright ESO 2020
3 // All Rights Reserved
4 // ESO (eso.org) is an Intergovernmental Organization, and therefore special
5 // legal conditions apply.
6 //
7 // @file ddtRenderingPluginCPLInvers.hpp
8 // @brief Example for a different rendering plugin
9 //
10 // This is an example for a different rendering engine. It will use CPL images
11 // and render them as inverted image
12 //
13 // @author Carsten Mannel, CGI
14 // @since 2021/09/08
15 
16 #ifndef DATAVISUALISATION_TESTVIEWER_SRC_INCLUDE_DDT_DDTRENDPLUGINCPLINV_HPP_
17 #define DATAVISUALISATION_TESTVIEWER_SRC_INCLUDE_DDT_DDTRENDPLUGINCPLINV_HPP_
18 
21 
26  public:
30  explicit DdtRenderingPluginCPLInvers();
35  explicit DdtRenderingPluginCPLInvers(QPixmap pixmap);
40 
48  cpl_image* const in_image, ddt::colorMap_t* const color_map,
49  ddt::scalingLut_t* const scaling_lut) override;
50 
58  cpl_image* const in_image, ddt::colorMapARGB_t* const color_map,
59  ddt::scalingLut_t* const scaling_lut) override;
60 
67  DdtImageGraphicsItem* CreateImageFromFile(const QString filename,
68  const int width,
69  const int height) override;
70 
77  DdtImageGraphicsItem* CreateImage(std::vector<uint16_t> image_data,
78  const int width, const int height) override;
79 
84  int GetRenderingPluginID() override;
85 
89  void set_logger(ddt::DdtLogger* const in_logger) override;
90 
91  private:
92  cpl_image* image = nullptr;
93 
97  void Init() const;
98 };
99 
100 #endif /* DATAVISUALISATION_TESTVIEWER_SRC_INCLUDE_DDT_DDTRENDPLUGINCPLINV_HPP_ \
101  */
DdtRenderingPluginCPLInvers
Definition: ddtRenderingPluginCPLInvers.hpp:25
ddt::scalingLut_t
Definition: imageColor.hpp:76
DdtRenderingPluginCPLInvers::CreateImageFromFile
DdtImageGraphicsItem * CreateImageFromFile(const QString filename, const int width, const int height) override
Definition: ddtRenderingPluginCPLInvers.cpp:80
ddt::DdtLogger
Definition: ddtLogger.hpp:48
DdtImageGraphicsItem
Definition: ddtImageGraphicsItem.hpp:25
ddt::colorMapARGB_t
std::array< unsigned int, MAX_COLOR_MAP_ENTRIES > colorMapARGB_t
Definition: imageColor.hpp:66
DdtRenderingPluginCPLInvers::CreateImage
DdtImageGraphicsItem * CreateImage(std::vector< uint16_t > image_data, const int width, const int height) override
Definition: ddtRenderingPluginCPLInvers.cpp:101
DdtRenderingPluginCPLInvers::CreateGraphicsItem
DdtImageGraphicsItem * CreateGraphicsItem(cpl_image *const in_image, ddt::colorMap_t *const color_map, ddt::scalingLut_t *const scaling_lut) override
Definition: ddtRenderingPluginCPLInvers.cpp:40
DdtRenderingPluginCPLInvers::~DdtRenderingPluginCPLInvers
~DdtRenderingPluginCPLInvers() override
DdtRenderingPluginCPLInvers::set_logger
void set_logger(ddt::DdtLogger *const in_logger) override
Definition: ddtRenderingPluginCPLInvers.cpp:31
DdtRenderingPlugin
Definition: ddtRenderingPlugin.hpp:38
DdtRenderingPluginCPLInvers::DdtRenderingPluginCPLInvers
DdtRenderingPluginCPLInvers()
Definition: ddtRenderingPluginCPLInvers.cpp:18
ddtCPLInversGraphicsItem.hpp
ddtRenderingPlugin.hpp
DdtRenderingPluginCPLInvers::DdtRenderingPluginCPLInvers
DdtRenderingPluginCPLInvers(QPixmap pixmap)
ddt::colorMap_t
std::array< std::array< float, COLOR_MAP_ENTRY_SIZE >, MAX_COLOR_MAP_ENTRIES > colorMap_t
Definition: imageColor.hpp:56
DdtRenderingPluginCPLInvers::GetRenderingPluginID
int GetRenderingPluginID() override
Definition: ddtRenderingPluginCPLInvers.cpp:26