3 #ifndef __HISTOGRAMW1__
4 #define __HISTOGRAMW1__
7 // ----------------------------------------------------------------------------
8 // wx headers inclusion.
9 // For compilers that support precompilation, includes <wx/wx.h>.
10 // ----------------------------------------------------------------------------
11 #include <wx/wxprec.h>
20 #include "pPlotterWindow.h"
21 #include "pFunctionPoint.h"
22 #include "vtkImageData.h"
23 #include "pHistogram.h"
24 #include "pPlotterScaleY.h"
25 #include "pPlotterScaleX.h"
28 #define NUM_POINTS 100
29 #define WINDOW_SIZE 10
31 class creaMaracasVisu_EXPORT Histogram:public wxPanel
34 //---------------------
36 //----------------------
38 //HistogramWidget( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag );
41 //EED Borrame 07Mai2009
42 // Histogram( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag,vtkImageData* imageData);
43 Histogram( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag);
48 Draw the histogram in the plotter
52 if the user resize the window
54 void OnSize( wxSizeEvent &WXUNUSED(event) );
55 //---------------------------------------
56 // Get Information from the widget
57 //---------------------------------------
60 get a point of the Histogram
63 int getHistogramPoint(int gValue);
64 int getHistogramSize();
65 void Configure(vtkImageData* imageData);
69 pHistogram* histogram;
70 pPlotterWindow* plotter;
75 DECLARE_CLASS(Histogram);
76 //----------------------------------------------------------------------------
77 // wxWidget macro use declaration for handdling events
78 //----------------------------------------------------------------------------