Change black body color map to use linear lightness and saturation.
[gencolormap.git] / gui.hpp
1 /*
2  * Copyright (C) 2015, 2016 Computer Graphics Group, University of Siegen
3  * Written by Martin Lambers <martin.lambers@uni-siegen.de>
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy
6  * of this software and associated documentation files (the "Software"), to deal
7  * in the Software without restriction, including without limitation the rights
8  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9  * copies of the Software, and to permit persons to whom the Software is
10  * furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in
13  * all copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
18  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21  * SOFTWARE.
22  */
23
24 #ifndef GUI_HPP
25 #define GUI_HPP
26
27 #include <QMainWindow>
28
29 class ColorMapWidget;
30 class ColorMapBrewerSequentialWidget;
31 class ColorMapBrewerDivergingWidget;
32 class ColorMapBrewerQualitativeWidget;
33 class ColorMapIsoluminantSequentialWidget;
34 class ColorMapIsoluminantDivergingWidget;
35 class ColorMapIsoluminantQualitativeWidget;
36 class ColorMapUniformRainbowWidget;
37 class ColorMapBlackBodyWidget;
38 class ColorMapCubeHelixWidget;
39 class ColorMapMorelandWidget;
40 class ColorMapMcNamesWidget;
41 class QTabWidget;
42 class QLabel;
43
44
45 class GUI : public QMainWindow
46 {
47 Q_OBJECT
48
49 public:
50     GUI();
51     ~GUI();
52
53 private:
54     ColorMapBrewerSequentialWidget* _brewerseq_widget;
55     ColorMapBrewerDivergingWidget* _brewerdiv_widget;
56     ColorMapBrewerQualitativeWidget* _brewerqual_widget;
57     ColorMapIsoluminantSequentialWidget* _isolumseq_widget;
58     ColorMapIsoluminantDivergingWidget* _isolumdiv_widget;
59     ColorMapIsoluminantQualitativeWidget* _isolumqual_widget;
60     ColorMapUniformRainbowWidget* _unirainbow_widget;
61     ColorMapBlackBodyWidget* _blackbody_widget;
62     ColorMapCubeHelixWidget* _cubehelix_widget;
63     ColorMapMorelandWidget* _moreland_widget;
64     ColorMapMcNamesWidget* _mcnames_widget;
65     QTabWidget* _category_widget;
66     QTabWidget* _category_seq_widget;
67     QTabWidget* _category_div_widget;
68     QTabWidget* _category_qual_widget;
69     QLabel* _reference_label;
70     QLabel* _colormap_label;
71
72     ColorMapWidget* currentWidget();
73
74 private slots:
75     void update();
76
77     void file_export_png();
78     void file_export_csv();
79     void edit_reset();
80     void edit_copy_as_img();
81     void edit_copy_as_txt();
82     void help_about();
83 };
84
85 #endif