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 MARACASVISULIB_EXPORTS Histogram:public wxPanel
34 //---------------------
36 //----------------------
38 //HistogramWidget( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag );
41 Histogram( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag,vtkImageData* imageData);
46 Draw the histogram in the plotter
50 if the user resize the window
52 void OnSize( wxSizeEvent &WXUNUSED(event) );
53 //---------------------------------------
54 // Get Information from the widget
55 //---------------------------------------
58 get a point of the Histogram
61 int getHistogramPoint(int gValue);
62 int getHistogramSize();
67 pHistogram* histogram;
68 pPlotterWindow* plotter;
73 DECLARE_CLASS(Histogram);
74 //----------------------------------------------------------------------------
75 // wxWidget macro use declaration for handdling events
76 //----------------------------------------------------------------------------