]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuManualPaint.cxx
*** empty log message ***
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuManualPaint.cxx
index f84fe8fd3cdf5dcf3e5b2d9043917a2bbc76188e..3ff6fbee8187444cd024e25405bf1a4bd5486f35 100644 (file)
@@ -56,11 +56,11 @@ void ManualPaint::Process()
     {
         firsttime=false;
 
-        ManualPaintPanel        *mpPanel        = (ManualPaintPanel*)bbGetOutputWidget();
-
         ManualPaintModel        *mpModel        = new ManualPaintModel();
         mpModel->SetImage( bbGetInputIn() );
 
+        wxManualPaintPanel        *mpPanel        = (wxManualPaintPanel*)bbGetOutputWidget();
+        mpPanel->SetManualPaintModel(mpModel);
 
         ManualPaintControler    *mpControler    = new ManualPaintControler();
         mpControler->SetManualPaintModel(mpModel);
@@ -69,17 +69,6 @@ void ManualPaint::Process()
         mpControler->Config();
     }
 
-
-/*
-    if (_imp==NULL)
-    {
-        _imp=new vtkInteractorManualPaint();
-        _imp->SetImage( bbGetInputIn() );
-        vtkInteractorStyleBaseView *isbv = (vtkInteractorStyleBaseView*)(bbGetInputWxVtkBaseView()->GetInteractorStyleBaseView());
-        isbv->AddInteractorStyleMaracas(_imp);
-    }
-*/
-
 }
 //=====
 // Don't edit this file. This file is generated from xml description..