]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageViewPanel.cxx
#2864 creaMaracasVisu Feature New Normal - Manual Paint , modifies external image...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / ColorLayerImageViewPanel.cxx
index 7763924fdad8c41fcf58465913689da140dc1997..371951cf4411b4fb5eccae9138f044e129be3e64 100644 (file)
@@ -304,6 +304,15 @@ void ColorLayerImageViewPanel::SetImage(vtkImageData *img)
                    _sl_SliceImageZ->SetRange( 0 , dim[2] );
                }
 
+printf("EED ColorLayerImageViewPanel::SetImage  UUPPSS----------------------\n"  );
+printf("EED ColorLayerImageViewPanel::SetImage  UUPPSS----------------------\n"  );
+printf("EED ColorLayerImageViewPanel::SetImage  UUPPSS----------------------\n"  );
+printf("EED ColorLayerImageViewPanel::SetImage  UUPPSS----------------------\n"  );
+printf("  Here I have to analyse the spacing and size image to calculate new spacingvv\n"  );
+printf("  I need the caracteristics of the base image\n"  );
+//                     GetColorLayerImageViewManager()->GetwxVtkBaseView(0);
+
+
         if ( (spc[0]!=_spcBase[0]) || (spc[1]!=_spcBase[1]) || (spc[2]!=_spcBase[2]) ||
              (dim[0]!=_dimBase[0]) || (spc[1]!=_spcBase[1]) || (spc[2]!=_spcBase[2])
             )
@@ -316,7 +325,7 @@ void ColorLayerImageViewPanel::SetImage(vtkImageData *img)
                                bool transformOkDlg;
                        wxString msg = _T("The image resolution of both images are not compatible. Do you want to tranform it? ");
                        wxDlgTransformByDimensionBySpacingByPixel dlg;
-                       dlg.GetTransformType(this,spc,spc,dim,dim,msg,typeOfTransformation,transformOkDlg);
+                       dlg.GetTransformType(this,_spcBase,spc,_dimBase,dim,msg,typeOfTransformation,transformOkDlg);
                        // CM Reset the default value (Pixel i.e. 3) if the dialog box returned an inappropriate value.
                        if (transformOkDlg == false)
                                {