#include <vtkVolumeRayCastMapper.h>
#include <vtkVolume.h>
#include "../wxMPRWidget.h"
+#include "HistogramDialogComboBoxItem.h"
+
+#include <wx/bmpcbox.h>
+
+
+#define FILENAME "/Data/colorsfunction.txt"
class HistogramDialog:public wxDialog
{
void OnSaveData(wxCommandEvent& event);
void OnLoadData(wxCommandEvent& event);
void OnRefreshBtn(wxCommandEvent& event);
+ void OnEditBitmapCombo(wxCommandEvent& event);
/**
** Initialize the histogram
std::vector<double>& green,
std::vector<double>& blue);
void SetFunctions(vtkPiecewiseFunction* _opac, vtkColorTransferFunction* _color);
+
+ void OnBitmapComboItemSelected(wxCommandEvent& event);
private:
/*
Histogram Widget
*/
HistogramWidget* histogramW;
-
+/**
+**
+**/
+ double _maxgreyvalue;
/*
ok Button
*/
- wxButton *okBtn;
+ //wxButton *okBtn;
+ wxBitmapButton *okBtn;
/*
cancel Button
*/
- wxButton *cancelBtn;
+ //wxButton *cancelBtn;
+ wxBitmapButton *cancelBtn;
/*
save Button
*/
*/
wxButton *refreshBtn;
-
+ wxSizer* _bitmapsizer;
// the user had pressed refresh
bool refreshed;
//things to refresh
wxVtkMPR3DView *wxvtkmpr3Dview;
wxVtkClipping3DView *wxvtkclipping3Dview;
-
-
+
+ wxBitmapComboBox* _bitmapcombo;
+ std::vector<HistogramDialogComboBoxItem*> _bitmapsitems;
+ wxSizer* getControls();
+ wxSizer* getBitmapCombo();
+ wxBitmapComboBox* getBitmapComboElements();
+ void OnLoadComboBoxData(std::vector<HistogramDialogComboBoxItem*>& itembitmaps, std::string filename,std::vector<double>& greyvect, std::vector<int>& redvect, std::vector<int>& greenvect, std::vector<int>& bluevect);
+ std::vector<wxBitmap*> GetBitmapsList(std::vector<double> greyvect, std::vector<int> redvect, std::vector<int> greenvect, std::vector<int> bluevect);
// DECLARE_CLASS(HistogramDialog);
// any class wishing to process wxWindows events must use this macro
//DECLARE_EVENT_TABLE()
+
+ void initializeHistogramDialog();
};
#endif