From cc20770ee090848c31a8f18c277d89f2b904e087 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Thu, 14 May 2009 12:44:55 +0000 Subject: [PATCH] BUG macOs --- bbtk/src/bbmaracasvisuHistogramView.cxx | 18 +++++++++++++++--- bbtk/src/bbmaracasvisuHistogramView.h | 7 +++++++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/bbtk/src/bbmaracasvisuHistogramView.cxx b/bbtk/src/bbmaracasvisuHistogramView.cxx index ebe3d76..35b832c 100644 --- a/bbtk/src/bbmaracasvisuHistogramView.cxx +++ b/bbtk/src/bbmaracasvisuHistogramView.cxx @@ -1,7 +1,6 @@ #include "bbmaracasvisuHistogramView.h" #include "bbcreaMaracasVisuPackage.h" -#include "Histogram.h" namespace bbcreaMaracasVisu { @@ -12,15 +11,28 @@ BBTK_BLACK_BOX_IMPLEMENTATION(HistogramView,bbtk::WxBlackBox); //------------------------------------------------ void HistogramView::Process() { + if (firsttime==true){ + firsttime=false; + // histogram_wxwidget = new Histogram( wxpanel , -1, wxPoint(0,0), wxSize(400,400),wxNO_BORDER ); + histogram_wxwidget->Configure( bbGetInputIn() ); + } } //------------------------------------------------ void HistogramView::CreateWidget(wxWindow* parent) { + firsttime=true; bbtkDebugMessageInc("Core",9,"HistogramViewWindow::CreateWidget()"<SetSize(400,400); + histogram_wxwidget = new Histogram( parent , -1, wxPoint(0,0), wxSize(400,400),wxNO_BORDER ); + bbtkDebugDecTab("Core",9); - bbSetOutputWidget( wxwidget ); + bbSetOutputWidget( histogram_wxwidget ); +// bbSetOutputWidget( wxpanel ); } //------------------------------------------------ diff --git a/bbtk/src/bbmaracasvisuHistogramView.h b/bbtk/src/bbmaracasvisuHistogramView.h index 761446a..28faf0e 100644 --- a/bbtk/src/bbmaracasvisuHistogramView.h +++ b/bbtk/src/bbmaracasvisuHistogramView.h @@ -4,6 +4,8 @@ #include "bbtkWxBlackBox.h" #include "vtkImageData.h" +#include "Histogram.h" + namespace bbcreaMaracasVisu { @@ -26,6 +28,11 @@ virtual void bbUserDestructor(); void Process(); BBTK_CREATE_WIDGET(CreateWidget); void CreateWidget(wxWindow*); + +private: + bool firsttime; + Histogram *histogram_wxwidget; + wxPanel *wxpanel; }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(HistogramView,bbtk::WxBlackBox); -- 2.46.2