//=====
void RescaleSlopeIntercept::Process()
{
+printf("RescaleSlopeIntercept::Process Start\n");
// THE MAIN PROCESSING METHOD BODY
// Here we simply set the input 'In' value to the output 'Out'
shift= A + (range[1]*newdifrange/difrange);
} // if type 3
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
filter1->SetInput( bbGetInputIn() );
+#else
+ filter1->SetInputData( bbGetInputIn() );
+#endif
+
filter1->SetOutputScalarType( VTK_DOUBLE );
filter1->SetShift( 0 );
filter1->SetScale( scale );
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
filter2->SetInput( filter1->GetOutput() );
+#else
+ filter2->SetInputData( filter1->GetOutput() );
+#endif
+
filter2->SetOutputScalarType( outputformat );
filter2->SetShift( shift );
filter2->SetScale( 1 );
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
mchange->SetInput( filter2->GetOutput() );
+#else
+ mchange->SetInputData( filter2->GetOutput() );
+#endif
+
mchange->SetExtentTranslation( -ext[0], -ext[2], -ext[4] );
mchange->SetOutputSpacing (spc);
+ filter1->Update(); //important
+ filter2->Update(); //important
mchange->Update(); //important
bbSetOutputOut( mchange->GetOutput() );
+printf("RescaleSlopeIntercept::Process A\n");
} else {
+printf("RescaleSlopeIntercept::Process B\n");
bbSetOutputOut( NULL );
} // if bbGetInputIn
+printf("RescaleSlopeIntercept::Process End\n");
+
}