BBTK_BLACK_BOX_IMPLEMENTATION(ImageActor,bbtk::AtomicBlackBox);
void ImageActor::Process()
{
-
-printf("EED ImageActor::Process Start\n");
-
//JCP 04/04/09
vtkRenderer *render = bbGetInputRenderer();
vtkImageData *img = bbGetInputIn();
vtkLinearTransform* transform = bbGetInputTransform();
-
- if(img != NULL)
+
+
+ if(img != NULL)
{
if (bbGetInputLookupTable()==NULL)
{
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
imageactor->SetInput( img );
+#else
+ imageactor->SetInputData( img );
+#endif
} else {
/*
vtkLookupTable *table = vtkLookupTable::New();
// imageshiftscale->SetOutputScalarTypeToUnsignedChar();
// color->SetInput( imageshiftscale->GetOutput() );
+
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
color->SetInput( img );
color->Update();
imageactor->GetMapper()->SetInput( color->GetOutput() );
+#else
+ color->SetInputData( img );
+ color->Update();
+ imageactor->GetMapper()->SetInputData( color->GetOutput() );
+#endif
imageactor->GetProperty()->SetInterpolationTypeToNearest();
+ imageactor->SetForceOpaque(true);
}
if (transform!=NULL)
} // render
bbSetOutputOut(imageactor);
} // img
-
-
+
// Interface Update
if ((firsttime==true) && (bbGetInputRenderer()!=NULL ))
{
firsttime=false;
bbGetInputRenderer()->AddActor( imageactor );
}
-
imageactor->GetProperty()->SetOpacity( bbGetInputOpacity() );
- bbSetOutputOut(imageactor);
-
-
-printf("EED ImageActor::Process End\n");
-
-
+ bbSetOutputOut(imageactor);
}
+
void ImageActor::bbUserSetDefaultValues()
{
firsttime = true;