]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuManualPaint_Model.cxx
#3335 creaMaracasVisu Feature New Normal - Manual Paint Model Undo Redo from box
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuManualPaint_Model.cxx
index 856a509587e02650d95d5e00199a78336d7c5807..5ff2df72310c391dd2a8ea588ca2ab52a9f8b676 100644 (file)
@@ -51,6 +51,7 @@ void ManualPaint_Model::Process()
                if (bbGetInputPoint().size()==3)
                {
                        manualpaintmodel->PaintImage( bbGetInputPoint()[0] , bbGetInputPoint()[1] , bbGetInputPoint()[2] );
+                       manualpaintmodel->SetUndoImage();
                } // if Points
                if ( bbGetInputByLstPointsX().size()!=0 )
                {
@@ -58,6 +59,7 @@ void ManualPaint_Model::Process()
                        for (i=0;i<size;i++)
                        {
                                manualpaintmodel->PaintImage( bbGetInputByLstPointsX()[i] , bbGetInputByLstPointsY()[i] , bbGetInputByLstPointsZ()[i] );
+//                     _manualPaintModel->SetUndoImage();     // Probably needed.   Here is ok.
                        } // for
                }// if ByLstPointsX
                if ((bbGetInputByImagePoints()!=NULL) && (bbGetInputImage2()!=NULL) )
@@ -95,6 +97,7 @@ void ManualPaint_Model::Process()
                                                        if (vI2==0)
                                                        {
                                                                manualpaintmodel->PaintImage(i,j,k);
+//                                                             manualpaintmodel->SetUndoImage();     // Probably needed.   Here is ok.
                                                        } // vI2                
                                                } // vBIP 
                                                pBIP = pBIP + sSBIP;                            
@@ -116,6 +119,7 @@ void ManualPaint_Model::Process()
        } else { 
                bbSetOutputOut( NULL );
        } 
+       bbSetOutputManualpaintmodel( manualpaintmodel );
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)