Histogram.h

Go to the documentation of this file.
00001 
00002 
00003 #ifndef __HISTOGRAMW1__
00004 #define __HISTOGRAMW1__
00005 
00006 
00007 // ----------------------------------------------------------------------------
00008 // wx headers inclusion.
00009 // For compilers that support precompilation, includes <wx/wx.h>.
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 //#define MAX 500
00028 #define NUM_POINTS 100
00029 #define WINDOW_SIZE 10
00030 
00031 class creaMaracasVisu_EXPORT Histogram:public wxPanel
00032 {
00033 public:
00034         //---------------------
00035         // Constructor
00036         //----------------------
00037 
00038         //HistogramWidget( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag );
00039         
00040  
00041 //EED Borrame 07Mai2009
00042 //      Histogram( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag,vtkImageData* imageData);
00043         Histogram( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag);
00044         
00045         ~Histogram();
00046 
00047         /*
00048         Draw the histogram in the plotter
00049         */
00050         void drawHistogram();
00051         /*
00052                 if the user resize the window   
00053         */
00054         void OnSize( wxSizeEvent &WXUNUSED(event) );
00055         //---------------------------------------
00056         // Get Information from the widget
00057         //---------------------------------------
00058         
00059         /*
00060                 get a point of the Histogram
00061                 given the grey value
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         // wxWidget macro use declaration for handdling events
00078         //----------------------------------------------------------------------------
00079         DECLARE_EVENT_TABLE()
00080         
00081 };
00082 #endif
00083 
00084 

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1