-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEditColorMap.h
65 lines (55 loc) · 1.59 KB
/
EditColorMap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/**
* @file EditColorMap.h
* @author Dan R. Lipsa
* @date 23 August 2010
* @brief Dialog to choose and clamp a color map.
* @ingroup ui
*/
#ifndef __EDIT_COLOR_MAP_H__
#define __EDIT_COLOR_MAP_H__
#include "ui_EditColorMap.h"
#include "ColorBarModel.h"
/**
* @brief Dialog to choose and clamp a color map.
*/
class EditColorMap :
public QDialog, private Ui::EditColorMap
{
public:
EditColorMap (QWidget* parent);
void SetData (const QwtIntervalData& histogram, double maxValue,
const ColorBarModel& colorBarModel, bool gridEnabled = true);
const ColorBarModel& GetColorMap () const
{
return m_colorMap;
}
void SetDefaultFont ();
public Q_SLOTS:
void HighlightedPalette (int index);
void SetClampMax (double value);
void SetClampMin (double value);
void ClampClear ();
void ToggledColorCodedHistogram (bool checked);
void ToggledLog10Values (bool checked);
void CurrentIndexChangedType (int i);
void ClickedHighlight0 ();
void ClickedHighlight1 ();
void ClickedHighlight2 ();
private:
void clickedHighlight (HighlightNumber::Enum highlightNumber);
void setHighlightColors ();
void setCombos (Palette palette);
void fillCombo (PaletteSequential::Enum paletteSequential);
void fillCombo (PaletteDiverging::Enum paletteDiverging);
void setPalette (Palette palette);
private:
static const char* HIGHLIGHT_LABEL_TEXT;
private:
Q_OBJECT
ColorBarModel m_colorMap;
boost::array<QLabel*, HighlightNumber::COUNT> m_labelHighlight;
};
#endif //__EDIT_COLOR_MAP_H__
// Local Variables:
// mode: c++
// End: