]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/HistogramDialogComboBoxItem.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / HistogramDialogComboBoxItem.h
1
2 #ifndef __HistogramDialogComboBoxItem__
3 #define __HistogramDialogComboBoxItem__
4
5
6 // ----------------------------------------------------------------------------
7 // wx headers inclusion.
8 // For compilers that support precompilation, includes <wx/wx.h>.
9 // ----------------------------------------------------------------------------
10
11 #ifdef __BORLANDC__
12 #pragma hdrstop
13 #endif
14
15 #include <wx/wx.h>
16 #include <vector>
17
18 class HistogramDialogComboBoxItem
19 {
20 public:
21         /*
22          Constructor
23         */
24         HistogramDialogComboBoxItem();
25         HistogramDialogComboBoxItem(int bar_width,int bar_height);
26         ~HistogramDialogComboBoxItem();
27
28         void SetColors(std::vector<double> greyvect, std::vector<double> redvect, std::vector<double> greenvect, std::vector<double> bluevect);
29         void SetTransferFunction(std::vector<double> greyvect, std::vector<double> value);
30         wxBitmap GetBitmap();
31
32         std::vector<double> getGreyVector(){return _greyvect;}
33         std::vector<double> getRedVector(){return _redvect;}
34         std::vector<double> getGreenVector(){return _greenvect;}
35         std::vector<double> getBlueVector(){return _bluevect;}
36
37         std::vector<double> getGreyVectorTransfer(){return _greyvecttransfunct;}
38         std::vector<double> getValueVector(){return _value;}
39 private:
40         
41
42         std::vector<double> _greyvect;
43         std::vector<double> _redvect;
44         std::vector<double> _greenvect;
45         std::vector<double> _bluevect;
46
47         std::vector<double> _greyvecttransfunct;
48         std::vector<double> _value;
49
50         /*
51         * Represents the color of the backGround. Default color is the parent color. 
52         */
53         wxColour        colourParent;
54
55         int _bar_width;
56         int _bar_height;
57
58         wxBitmap* colorBar_Bitmap;
59         
60 };
61
62 #endif
63
64
65