#include "bbmaracasvisuHistogramView.h"
#include "bbcreaMaracasVisuPackage.h"
-#include "Histogram.h"
namespace bbcreaMaracasVisu
{
//------------------------------------------------
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()"<<std::endl);
- Histogram *wxwidget = new Histogram( parent , -1, wxPoint(0,0), wxSize(400,400),wxNO_BORDER ,bbGetInputIn());
+
+//EED 07Mai2009
+// 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 );
+
bbtkDebugDecTab("Core",9);
- bbSetOutputWidget( wxwidget );
+ bbSetOutputWidget( histogram_wxwidget );
+// bbSetOutputWidget( wxpanel );
}
//------------------------------------------------
#include "bbtkWxBlackBox.h"
#include "vtkImageData.h"
+#include "Histogram.h"
+
namespace bbcreaMaracasVisu
{
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);