]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkTransform.cxx
#3120 BBTK Bug New Normal - merge branch changestoITK3and4 FROM master
[bbtk.git] / packages / vtk / src / bbvtkTransform.cxx
index 829cd7e60ec3b100f4eb00aa09d72f5237e7d468..fd0d369cde740fa8a3318d603806dec4422732cf 100644 (file)
@@ -67,6 +67,7 @@ namespace bbvtk
        {
                bbUserFinalizeProcessing();
                result = vtkTransform::New();
+               result->Update();
        }
 
        // --------------------------------------------------------------       
@@ -79,40 +80,33 @@ namespace bbvtk
                }
        }
 
+
        // --------------------------------------------------------------       
   void Transform::Process()
   {
-         printf("EED %p Transform::Process() 1\n", this);
          bbUserInitializeProcessing();
          if (bbGetInputIn()!=NULL)
       {
                  result->Concatenate( bbGetInputIn()->GetMatrix() );
-                 printf("EED %p Transform::Process() 2\n", this);
       }
 
-         if (bbGetInputScale().size()>=3)
-      {
-                 result->Scale(bbGetInputScale()[0], bbGetInputScale()[1], bbGetInputScale()[2]);
-                 printf("EED %p Transform::Process() 3\n", this);
-      }
          if ((bbGetInputTranslate().size()>=3) && (bbGetInputSpacing().size()>=3))
       {
                  double tx = bbGetInputTranslate()[0] * bbGetInputSpacing()[0];
                  double ty = bbGetInputTranslate()[1] * bbGetInputSpacing()[1];
                  double tz = bbGetInputTranslate()[2] * bbGetInputSpacing()[2];
                  result->Translate(tx,ty,tz);
-                 printf("EED %p Transform::Process() 4\n", this);
+      }
+
+         if (bbGetInputScale().size()>=3)
+      {
+                 result->Scale(bbGetInputScale()[0], bbGetInputScale()[1], bbGetInputScale()[2]);
       }
 
          if (bbGetInputRotateWXYZ().size()>=4)
       {
                  result->RotateWXYZ(bbGetInputRotateWXYZ()[0],bbGetInputRotateWXYZ()[1], bbGetInputRotateWXYZ()[2], bbGetInputRotateWXYZ()[3]);
-                 printf("EED %p Transform::Process() 5\n", this);
       }
-
-         result->Update();
-         printf("EED %p Transform::Process() 6\n", this);
  
          bbSetOutputOut(result);
   }