]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/HistogramDialogComboBox.h
{
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / HistogramDialogComboBox.h
index 71f6d4aea9e7390972206f0b04494f204c0b4860..ee5b947e8a7a5b1b9804dd6784dcd95c0dc8db64 100644 (file)
 #include <wx/bmpcbox.h>
 #include "vtkImageData.h"
 
-
-#define FILENAME "/Data/colorsfunction.txt"
+#ifdef WIN32
+#define FILENAME "/data/colorsfunction.txt"
+#else
+#define FILENAME "~/.creaMaracasVisu/data/colorsfunction.txt"
+#endif
 
 
 class HistogramDialogComboBox : public wxPanel
@@ -45,6 +48,9 @@ public:
        void OnEditBitmapCombo(wxCommandEvent& event);
        void OnBitmapComboItemSelected(wxCommandEvent& event);
 
+       void OnColorLevelChanged(wxCommandEvent& event);        
+       void OnWindowLevelChanged(wxCommandEvent& event);       
+
        void setImageData(vtkImageData* img);
 
        /**
@@ -61,6 +67,9 @@ public:
                                                                        std::vector<double>& green,
                                                                        std::vector<double>& blue);
 
+       double GetWindowLevel();
+       double GetColorLevel();
+
 private:
 
        std::vector<double> _greyvect;
@@ -77,15 +86,21 @@ private:
        * Represents the color of the backGround. Default color is the parent color. 
        */              
 
-       wxBitmapComboBox*       _bitmapcombo;   
+       wxBitmapComboBox*       _bitmapcombo;
+       wxSlider*       _slidercolor;
+       wxSlider*       _sliderwindowlevel;
        std::vector<HistogramDialogComboBoxItem*> _bitmapsitems;
        wxBitmap* colorBar_Bitmap;
        wxSizer* _bitmapsizer;
 
        wxSizer* getBitmapCombo();
+       wxSizer* getSlidersWlCo();
        wxBitmapComboBox* getBitmapComboElements();
        void OnLoadComboBoxData(std::vector<HistogramDialogComboBoxItem*>& itembitmaps,std::string filename);
        void saveCurrentConfiguration(std::vector<HistogramDialogComboBoxItem*>& itembitmaps,std::string filename);
+       void setSlidersValue();
+
+
        
 };