#include <wx/bmpcbox.h>
#include "vtkImageData.h"
-
-#define FILENAME "/Data/colorsfunction.txt"
+#ifdef WIN32
+#define FILENAME "/data/colorsfunction.txt"
+#else
+#define FILENAME "colorsfunction.txt"
+#endif
class HistogramDialogComboBox : public wxPanel
void OnEditBitmapCombo(wxCommandEvent& event);
void OnBitmapComboItemSelected(wxCommandEvent& event);
+ void OnColorLevelChanged(wxCommandEvent& event);
+ void OnWindowLevelChanged(wxCommandEvent& event);
+
void setImageData(vtkImageData* img);
/**
std::vector<double>& green,
std::vector<double>& blue);
+ double GetWindowLevel();
+ double GetColorLevel();
+
private:
std::vector<double> _greyvect;
* 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();
+
+
};