Histogram.h
Go to the documentation of this file.00001
00002
00003 #ifndef __HISTOGRAMW1__
00004 #define __HISTOGRAMW1__
00005
00006
00007
00008
00009
00010
00011 #include <wx/wxprec.h>
00012 #ifdef __BORLANDC__
00013 #pragma hdrstop
00014 #endif
00015 #ifndef WX_PRECOMP
00016 #include <wx/wx.h>
00017 #endif
00018
00019 #include "marTypes.h"
00020 #include "pPlotterWindow.h"
00021 #include "pFunctionPoint.h"
00022 #include "vtkImageData.h"
00023 #include "pHistogram.h"
00024 #include "pPlotterScaleY.h"
00025 #include "pPlotterScaleX.h"
00026
00027
00028 #define NUM_POINTS 100
00029 #define WINDOW_SIZE 10
00030
00031 class creaMaracasVisu_EXPORT Histogram:public wxPanel
00032 {
00033 public:
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 Histogram( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag);
00044
00045 ~Histogram();
00046
00047
00048
00049
00050 void drawHistogram();
00051
00052
00053
00054 void OnSize( wxSizeEvent &WXUNUSED(event) );
00055
00056
00057
00058
00059
00060
00061
00062
00063 int getHistogramPoint(int gValue);
00064 int getHistogramSize();
00065 void Configure(vtkImageData* imageData);
00066
00067 private:
00068
00069 pHistogram* histogram;
00070 pPlotterWindow* plotter;
00071 int histogramSize;
00072 int idHistogram;
00073
00074
00075 DECLARE_CLASS(Histogram);
00076
00077
00078
00079 DECLARE_EVENT_TABLE()
00080
00081 };
00082 #endif
00083
00084