X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FpPlotter%2FHistogram.cxx;h=c84931f0c2038f46765ac2d0c7861de2030805c8;hb=65c158dc171f8d3114ee3544b2a94a1f41880df0;hp=5e56df749aa00e14124ef295a266f22c39059870;hpb=c5feadbb145eecf6d73f793535b7e23eb18db2cb;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/Histogram.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/Histogram.cxx index 5e56df7..c84931f 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/Histogram.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/Histogram.cxx @@ -33,12 +33,15 @@ END_EVENT_TABLE() // Constructor //---------------------- - Histogram::Histogram( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag,vtkImageData* imageData): +//EED Borrame 07Mai2009 +//Histogram::Histogram( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag,vtkImageData* imageData): + Histogram::Histogram( wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, int flag): wxPanel(parent,id,pos,size,flag) { SetBackgroundColour(wxColour(255,255,255)); //histogram - histogram= new pHistogram(imageData); +//EED Borrame 07Mai2009 +// histogram= new pHistogram(imageData); //plotter plotter=new pPlotterWindow(this, -1, wxPoint(0,0), wxSize(742,476), wxSUNKEN_BORDER ); @@ -53,8 +56,9 @@ END_EVENT_TABLE() idHistogram=-1; +//EED Borrame 07Mai2009 //drawing - drawHistogram(); +// drawHistogram(); } @@ -65,6 +69,13 @@ END_EVENT_TABLE() delete plotter; } + + void Histogram::Configure(vtkImageData* imageData) + { + histogram= new pHistogram(imageData); + drawHistogram(); + } + /* Draw the histogram in the plotter */