]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/Histogram.cxx
creaButtonContainer & creaPanelButtonContainer: Updates in doxygen documentation...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / pPlotter / Histogram.cxx
index 5e56df749aa00e14124ef295a266f22c39059870..c84931f0c2038f46765ac2d0c7861de2030805c8 100644 (file)
@@ -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
        */