+
+ printf("EED ViewerNV::Process start \n");
+
+ vtkImageData* img = bbGetInputIn();
+/*
+ double spc[3];
+ img->GetSpacing(spc);
+ printf ("EED ViewerNV::Process A %f %f %f \n", spc[0], spc[1], spc[2] );
+ img->SetSpacing( 1,1,1 );
+ img->Update( );
+ img->GetSpacing(spc);
+ img->PrintSelf(std::cout,(vtkIndent)2);
+ img->Print(std::cout);
+ printf ("EED ViewerNV::Process B %f %f %f \n", spc[0], spc[1], spc[2] );
+*/
+ std::vector<int> type = bbGetInputnTypeView();
+
+
+ if(img != NULL && mwxwidget != NULL){
+ if(!compareVectors(type, currenttype)){
+ mwxwidget->SetType(&type);
+ mwxwidget->UpdateLayout(img);
+ }else if (img != currentimg){
+ mwxwidget->SetImage(img);
+ //mwxwidget->UpdateLayout(img);
+ }
+
+// if (firsttime==true) // EED 21 aout 2010
+// {
+// firsttime=false;
+// mwxwidget->ConfigureVTK();
+// }
+
+ mwxwidget->RefreshView();
+
+ currenttype = type;
+ currentimg = img;
+