]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuHistogramView.cxx
*** empty log message ***
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuHistogramView.cxx
index 7eab1516f77a2b2f6cea74c8f4a9764e9ff75299..bd1e1f5413cf467fc228649d7379514c4fb5fb2a 100644 (file)
@@ -1,44 +1,58 @@
 #include "bbmaracasvisuHistogramView.h"
-#include "bbmaracasvisuPackage.h"
+#include "bbcreaMaracasVisuPackage.h"
 
-#include "Histogram.h"
 
-namespace bbmaracasvisu
+namespace bbcreaMaracasVisu
 {
 
-BBTK_ADD_BLACK_BOX_TO_PACKAGE(maracasvisu,HistogramView)
+BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,HistogramView)
 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()
+void HistogramView::CreateWidget(wxWindow* parent)
 {
+       firsttime=true;
        bbtkDebugMessageInc("Core",9,"HistogramViewWindow::CreateWidget()"<<std::endl);
-       Histogram *wxwidget = new Histogram( bbGetWxParent() , -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 );
 }
 
-//------------------------------------------------
-void HistogramView::bbUserConstructor()
-{
-}
-
-//------------------------------------------------
-void HistogramView::bbUserCopyConstructor()
-{
-}
-
-//------------------------------------------------
-void HistogramView::bbUserDestructor()
-{
-}
+       //-----------------------------------------------------------------     
+       void HistogramView::bbUserSetDefaultValues()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
+       void HistogramView::bbUserInitializeProcessing()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
+       void HistogramView::bbUserFinalizeProcessing()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
 
 }
-// EO namespace bbmaracasvisu
+// EO namespace bbcreaMaracasVisu