]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/HistogramDialogComboBox.h
#2844 creaMaracasVisu Feature New Normal - ManualPaint_model box, Refresh TransferF...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / HistogramDialogComboBox.h
index c50d11a3d1f9902e45fbed243dd2254690ed422a..0eb2cb343f23bb24a76c5e5f779acd1564b68eda 100644 (file)
 
 #include "HistogramDialogComboBoxItem.h"
 #include <fstream>
+
 #include <wx/bmpcbox.h>
+#include <wx/checkbox.h>
 #include "vtkImageData.h"
 
-#ifdef WIN32
-#define FILENAME "/data/colorsfunction.txt"
-#else
-#define FILENAME "colorsfunction.txt"
-#endif
-
+#define COLORSFUNCTIONFILENAME "colorsfunction.txt"
 
 class HistogramDialogComboBox : public wxPanel
 {
@@ -72,9 +69,11 @@ public:
 
        void OnEditBitmapCombo(wxCommandEvent& event);
        void OnBitmapComboItemSelected(wxCommandEvent& event);
+       void BitmapComboItemSelect(int value);
 
        void OnColorLevelChanged(wxCommandEvent& event);        
        void OnWindowLevelChanged(wxCommandEvent& event);       
+       void OnChkBoxActive(wxCommandEvent& event);
 
        void setImageData(vtkImageData* img);
 
@@ -92,8 +91,11 @@ public:
                                                                        std::vector<double>& green,
                                                                        std::vector<double>& blue);
 
-       double GetWindowLevel();
-       double GetColorLevel();
+       double  GetWindowLevel();
+       double  GetColorLevel();
+       bool    GetActive();
+       void    InitCurrentPathColorsFuntion();
+       std::string GetFileNameOfColorsFunction();
 
 private:
 
@@ -107,16 +109,19 @@ private:
        double _maxgreyvalue;
        int _currentitem;       
 
+       std::string _currentpathColorsFuntion;
+
        /*
        * Represents the color of the backGround. Default color is the parent color. 
        */              
 
-       wxBitmapComboBox*       _bitmapcombo;
-       wxSlider*       _slidercolor;
-       wxSlider*       _sliderwindowlevel;
-       std::vector<HistogramDialogComboBoxItem*> _bitmapsitems;
-       wxBitmap* colorBar_Bitmap;
-       wxSizer* _bitmapsizer;
+       wxBitmapComboBox                                                        *_bitmapcombo;
+       wxCheckBox                                                                      *_ckboxActive;
+       wxSlider                                                                        *_slidercolor;
+       wxSlider                                                                        *_sliderwindowlevel;
+       std::vector<HistogramDialogComboBoxItem*>       _bitmapsitems;
+       wxBitmap                                                                        *colorBar_Bitmap;
+       wxSizer                                                                         *_bitmapsizer;
 
        wxSizer* getBitmapCombo();
        wxSizer* getSlidersWlCo();