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>
19 #include "pPlotterWindow.h"
20 #include "pFunctionPoint.h"
21 #include "vtkImageData.h"
22 #include "pHistogram.h"
23 #include "pPlotterScaleY.h"
24 #include "pPlotterScaleX.h"
27 #define NUM_POINTS 100
28 #define WINDOW_SIZE 10
30 class Histogram:public wxPanel
33 //---------------------
35 //----------------------
37 //HistogramWidget( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag );
40 Histogram( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag,vtkImageData* imageData);
45 Draw the histogram in the plotter
49 if the user resize the window
51 void OnSize( wxSizeEvent &WXUNUSED(event) );
52 //---------------------------------------
53 // Get Information from the widget
54 //---------------------------------------
57 get a point of the Histogram
60 int getHistogramPoint(int gValue);
61 int getHistogramSize();
66 pHistogram* histogram;
67 pPlotterWindow* plotter;
72 DECLARE_CLASS(Histogram);
73 //----------------------------------------------------------------------------
74 // wxWidget macro use declaration for handdling events
75 //----------------------------------------------------------------------------