10#ifndef DDT_DATAVISUALISATION_DDTWIDGETS_COLOURMAPWIDGET_HPP
11#define DDT_DATAVISUALISATION_DDTWIDGETS_COLOURMAPWIDGET_HPP
13#include <QtUiPlugin/QDesignerExportWidget>
57 QLabel* colourbar_label;
58 QLabel* colourscale_label;
59 QVector<QRgb> orig_colourmap;
60 QVector<QRgb> current_colourmap;
61 int colourbar_clicked_pos_x;
62 const int MAX_COLOR_MAP_ENTRIES = 256;
63 const int MAX_COLOR_MAP_VALUE = 255;
64 const int PIXMAP_HEIGHT = 20;
66 std::atomic<bool> inverted;
81 void ConvertAndEmit();
86 void ShiftColourmap();
91 void RotateColourmap();
96 void ScaleColourmap();
101 void UpdateColourmap(QVector<QRgb> colourmap);
106 void ResetColourmap();
108 int GetPosX(
const QPoint pos)
const;
110 void UpdateColourscale(
double min_value,
double max_value,
111 int scaling_function);
112 void DrawScale(
double min_value,
double max_value, QPainter& painter,
113 int scaling_function);
114 void DrawScaleLog(
double min_value,
double max_value, QPainter& painter);
115 int CalculateTickPositionLinear(
double tick,
double min_value,
double width,
117 int CalculateTickPositionSqrt(
double tick,
double min_value,
double width,
120#if QT_VERSION_MAJOR==5
121 void enterEvent(QEvent*
const event)
override;
123 void enterEvent(QEnterEvent*
const event)
override;
126 void leaveEvent(QEvent*
const event)
override;
143 int scaling_function);
Image Handling class, offers access to image handling 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