]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbtkStaticLecture.cxx
Clean code
[bbtk.git] / packages / vtk / src / bbtkStaticLecture.cxx
index fc1f9af7dd468b35ef8e0356f093ade9510f5bb3..583edb3e4e6c583ac6656373b57870a43966e9a3 100755 (executable)
 
 int bbtkStaticLecture::GetTypeFormat( std::string formatStr , vtkImageData* image )
 {
+    printf("EED bbtkStaticLecture::GetTypeFormat Start \n");
        int outputformat = VTK_UNSIGNED_CHAR;
        if (formatStr=="SAME")
-       {                                               
+       {
+        printf("EED bbtkStaticLecture::GetTypeFormat 1  image=%p\n",image);
                if (image!=NULL) outputformat = image->GetScalarType();
+        printf("EED bbtkStaticLecture::GetTypeFormat 2 \n");
        }
        else if (formatStr=="VTK_BIT")                          outputformat = VTK_BIT;                         // 1
        else if (formatStr=="VTK_CHAR")                         outputformat = VTK_CHAR;                        // 2
@@ -56,6 +59,8 @@ int bbtkStaticLecture::GetTypeFormat( std::string formatStr , vtkImageData* imag
        else if (formatStr=="MET_FLOAT")                        outputformat = VTK_FLOAT;               // 10
        else if (formatStr=="MET_DOUBLE")                       outputformat = VTK_DOUBLE;              // 11  
 
+    printf("EED bbtkStaticLecture::GetTypeFormat outputformat=%d End\n", outputformat);
+
     return outputformat;
 }