X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuHistogramView.cxx;h=a3101688aea46ff005d287fcd95816e711111bb7;hb=3283472f764535492122c3b2ade020a749c1bd2a;hp=f41c189f4618ff12f364b988e1d0ef8c8ef270e1;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuHistogramView.cxx b/bbtk/src/bbmaracasvisuHistogramView.cxx index f41c189..a310168 100644 --- a/bbtk/src/bbmaracasvisuHistogramView.cxx +++ b/bbtk/src/bbmaracasvisuHistogramView.cxx @@ -36,11 +36,14 @@ BBTK_BLACK_BOX_IMPLEMENTATION(HistogramView,bbtk::WxBlackBox); //------------------------------------------------ void HistogramView::Process() { - if (firsttime==true){ +printf("EED HistogramView::Process Start \n"); + if (firsttime==true) + { firsttime=false; // histogram_wxwidget = new Histogram( wxpanel , -1, wxPoint(0,0), wxSize(400,400),wxNO_BORDER ); - histogram_wxwidget->Configure( bbGetInputIn() ); + _histogramMinMaxLevel->Configure( bbGetInputIn() ); } +printf("EED HistogramView::Process End \n"); } //------------------------------------------------ @@ -53,10 +56,15 @@ void HistogramView::CreateWidget(wxWindow* parent) // histogram_wxwidget = new Histogram( parent , -1, wxPoint(0,0), wxSize(400,400),wxNO_BORDER ,bbGetInputIn()); wxPanel *wxpanel =new wxPanel(parent); wxpanel->SetSize(400,400); - histogram_wxwidget = new Histogram( parent , -1, wxPoint(0,0), wxSize(400,400),wxNO_BORDER ); + +//Borrame +// histogram_wxwidget = new Histogram( parent , -1, wxPoint(0,0), wxSize(400,400),wxNO_BORDER ); - bbtkDebugDecTab("Core",9); - bbSetOutputWidget( histogram_wxwidget ); + Histogram* histogram = new Histogram( parent , -1, wxPoint(0,0), wxSize(400,400), /*wxNO_BORDER*/ wxBORDER_DEFAULT ); + _histogramMinMaxLevel = new HistogramMinMaxLevel( (HistogramBase*)histogram ); + + bbtkDebugDecTab("Core",9); + bbSetOutputWidget( _histogramMinMaxLevel->GetWindow() ); // bbSetOutputWidget( wxpanel ); }