X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuHistogramView.cxx;h=f9c399481a5045b8635e65d305bd48db13e8c95d;hb=d79fc05657cfa43ed1cd6937a5acaeaf70e09b45;hp=c510b41105c9279a9fbe95a1e09310d967ede91b;hpb=f2db891d132e926233f6a4d7f1b5a8e615cc7c4b;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuHistogramView.cxx b/bbtk/src/bbmaracasvisuHistogramView.cxx index c510b41..f9c3994 100644 --- a/bbtk/src/bbmaracasvisuHistogramView.cxx +++ b/bbtk/src/bbmaracasvisuHistogramView.cxx @@ -36,13 +36,12 @@ BBTK_BLACK_BOX_IMPLEMENTATION(HistogramView,bbtk::WxBlackBox); //------------------------------------------------ void HistogramView::Process() { -printf("EED HistogramView::Process Start \n"); - if (firsttime==true){ + 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"); } //------------------------------------------------ @@ -55,10 +54,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 ); } @@ -82,4 +86,3 @@ void HistogramView::CreateWidget(wxWindow* parent) } // EO namespace bbcreaMaracasVisu -